diff --git a/Dockerfile b/Dockerfile index 19d78235ce34fa886c8b0601ec5752cdd57d63f9..4c0efd17c718819e88de0dc842563b90ea78be66 100755 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,7 @@ COPY entry.py /app/entry.py COPY dashboard.html /app/dashboard.html COPY plugins/pollinations/ /root/.hermes/plugins/image_gen/pollinations/ COPY scripts/ /app/scripts/ +COPY webui/ /app/webui/ RUN chmod 600 /root/.hermes/.env diff --git a/entry.py b/entry.py index b1392014ceb17673e9ec6e888471b2022c401d7f..6f6c7d35200b850e85976734facef6da1dc7262e 100755 --- a/entry.py +++ b/entry.py @@ -3,6 +3,7 @@ Serves a real-time monitoring dashboard on port 7860 and runs the Hermes Gateway (Feishu WebSocket bot) in a background thread. +Also serves hermes-web-ui (Vue SPA) at /webui """ import json @@ -14,6 +15,7 @@ import threading import time import logging import psutil +import mimetypes from datetime import datetime, timezone from http.server import HTTPServer, BaseHTTPRequestHandler from socketserver import ThreadingMixIn @@ -38,6 +40,7 @@ CONFIG_FILE = os.path.join(HERMES_HOME, "config.yaml") ENV_FILE = os.path.join(HERMES_HOME, ".env") DASHBOARD_HTML = "/app/dashboard.html" DEPLOY_HTML = "/app/deploy.html" +WEBUI_DIR = "/app/webui" # --------------------------------------------------------------------------- # Logging @@ -263,33 +266,70 @@ class DashboardHandler(BaseHTTPRequestHandler): length = int(self.headers.get("Content-Length", 0)) return self.rfile.read(length) if length > 0 else b"" + def _send_file(self, filepath: str, content_type: str = None): + """Serve a static file (JS, CSS, images, etc.).""" + try: + with open(filepath, "rb") as f: + body = f.read() + if content_type is None: + content_type = mimetypes.guess_type(filepath)[0] or "application/octet-stream" + self.send_response(200) + self.send_header("Content-Type", content_type) + self.send_header("Content-Length", str(len(body))) + self.send_header("Cache-Control", "public, max-age=86400") + self.end_headers() + self.wfile.write(body) + except FileNotFoundError: + self.send_error(404) + + def _send_webui_html(self): + """Serve WebUI SPA index.html.""" + index_path = os.path.join(WEBUI_DIR, "index.html") + if os.path.isfile(index_path): + self._send_html(index_path) + else: + self.send_error(404, "WebUI not installed") + # ── GET routes ── def do_GET(self): parsed = urlparse(self.path) - - # Dashboard - if parsed.path in ("/", "/index.html"): + path = parsed.path + + # ── WebUI SPA routes ── + if path == "/webui" or path == "/webui/": + return self._send_webui_html() + + if path.startswith("/webui/"): + # Try serving static file first + static_path = os.path.join(WEBUI_DIR, path[len("/webui/"):]) + if os.path.isfile(static_path): + return self._send_file(static_path) + # SPA fallback: serve index.html for client-side routing + return self._send_webui_html() + + # ── Dashboard ── + if path in ("/", "/index.html"): return self._send_html(DASHBOARD_HTML) # Deploy overview - if parsed.path == "/deploy": + if path == "/deploy": return self._send_html(DEPLOY_HTML) # SSE log stream - if parsed.path == "/api/logs/stream": + if path == "/api/logs/stream": return self._handle_sse() # Status - if parsed.path == "/api/status": + if path == "/api/status": return self._send_json(self._get_status()) # Sessions - if parsed.path == "/api/sessions": + if path == "/api/sessions": return self._send_json(_get_session_list()) # Log history (REST, not SSE) - if parsed.path == "/api/logs": + if path == "/api/logs": return self._send_json(self._get_log_history(parsed.query)) self.send_error(404) @@ -485,6 +525,7 @@ class DashboardHandler(BaseHTTPRequestHandler): def main(): logger.info("=== Hermes Agent — HuggingFace Space Entry ===") + logger.info("WebUI at /webui (static preview)") # Setup persistent storage _ensure_persistent_storage() diff --git a/webui/assets/Add-D070kowG.js b/webui/assets/Add-D070kowG.js new file mode 100644 index 0000000000000000000000000000000000000000..e697b0dc332a9d639a6d72b998c38dd69d979f24 --- /dev/null +++ b/webui/assets/Add-D070kowG.js @@ -0,0 +1 @@ +import{Fr as e,Lr as t}from"./index-Cl8-DFW_.js";var n=e({name:`Add`,render(){return t(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t}; \ No newline at end of file diff --git a/webui/assets/ChannelsView-Br2GRhTp.js b/webui/assets/ChannelsView-Br2GRhTp.js new file mode 100644 index 0000000000000000000000000000000000000000..5c94fd18da8200263d7082017d462c7572074d4b --- /dev/null +++ b/webui/assets/ChannelsView-Br2GRhTp.js @@ -0,0 +1 @@ +import{t as e}from"./Switch-CDXAYhwk.js";import{Ar as t,Dr as n,Fr as r,Gr as i,I as a,Jr as o,N as s,Nr as c,Or as l,Pr as u,Qr as d,Ur as f,Wr as p,Yr as m,ai as h,c as g,ci as _,ei as v,jr as y,k as b,kr as x,lr as S,ni as C,oi as w,qr as T,u as E,wr as D,y as O}from"./index-Cl8-DFW_.js";import{a as k,i as A,n as j,r as M,t as N}from"./settings-Cxn8gJl1.js";import{t as P}from"./SettingRow-BACRFGe8.js";var F={class:`platform-info`},I=[`innerHTML`],L={class:`platform-name`},R={key:0,class:`platform-card-body`},z=g(r({__name:`PlatformCard`,props:{name:{},icon:{},config:{},credentials:{}},setup(e){let r=e,s=C(!0),{t:f}=S(),p=n(()=>{let e=r.credentials;if(!e)return!1;let t=[`token`,`api_key`,`app_id`,`client_id`,`secret`,`app_secret`,`client_secret`,`access_token`,`bot_id`,`account_id`,`enabled`];return[e,e.extra].filter(Boolean).some(e=>t.some(t=>{let n=e[t];return n!=null&&n!==``&&n!==!1}))});return(n,r)=>(i(),y(`div`,{class:w([`platform-card`,{configured:p.value}])},[l(`div`,{class:`platform-card-header`,onClick:r[0]||=e=>s.value=!s.value},[l(`div`,F,[l(`span`,{class:`platform-icon`,innerHTML:e.icon},null,8,I),l(`span`,L,_(e.name),1),u(h(a),{type:p.value?`success`:`default`,size:`small`,round:``},{default:d(()=>[c(_(p.value?h(f)(`common.configured`):h(f)(`common.notConfigured`)),1)]),_:1},8,[`type`])]),l(`span`,{class:w([`expand-icon`,{expanded:s.value}])},`▾`,2)]),s.value?(i(),y(`div`,R,[o(n.$slots,`default`,{},void 0,!0)])):t(``,!0)],2))}}),[[`__scopeId`,`data-v-cee18614`]]),B={class:`settings-section`},V={class:`weixin-qr-section`},H={key:1,class:`weixin-qr-loading`},U={key:2,class:`weixin-qr-hint`},W=g(r({__name:`PlatformSettings`,setup(n){let r=N(),a=O(),{t:o}=S(),f=v({});function g(e,t){return`${e}.${t}`}function w(e,t){return!!f[g(e,t)]}async function E(e,t,n){let r=g(e,t);f[r]=!0;try{await n(),a.success(o(`settings.saved`))}catch{a.error(o(`settings.saveFailed`))}finally{f[r]=!1}}async function F(e,t,n){E(e,t,()=>r.saveSection(e,n))}async function I(e,t,n){E(e,t,async()=>{await A(e,n),await r.fetchSettings()})}function L(e){return r.platforms[e]||{}}let R=C(``),W=C(``),G=C(`idle`),K=null;async function q(){G.value=`loading`,R.value=``,W.value=``,Y();try{let e=await j();W.value=e.qrcode,R.value=e.qrcode_url,window.open(e.qrcode_url,`_blank`),G.value=`waiting`,J()}catch(e){G.value=`error`,a.error(e.message||o(`platform.qrFetching`))}}function J(){W.value&&(K=setTimeout(async()=>{try{let e=await M(W.value);e.status===`wait`?J():e.status===`scaned`?(G.value=`scaned`,J()):e.status===`expired`?G.value=`expired`:e.status===`confirmed`&&(G.value=`confirmed`,await k({account_id:e.account_id,token:e.token,base_url:e.base_url}),await r.fetchSettings(),a.success(o(`settings.saved`)))}catch{J()}},3e3))}function Y(){K&&=(clearTimeout(K),null)}p(()=>{Y()});let X=[{key:`telegram`,name:`Telegram`,icon:``},{key:`discord`,name:`Discord`,icon:``},{key:`slack`,name:`Slack`,icon:``},{key:`whatsapp`,name:`WhatsApp`,icon:``},{key:`matrix`,name:`Matrix`,icon:``},{key:`feishu`,name:`Feishu`,icon:``},{key:`weixin`,name:`Weixin`,icon:``},{key:`wecom`,name:`WeCom`,icon:``}];return(n,a)=>{let f=m(`NSpin`);return i(),y(`section`,B,[(i(),y(D,null,T(X,n=>u(z,{key:n.key,name:n.name,icon:n.icon,config:h(r)[n.key],credentials:L(n.key)},{default:d(()=>[n.key===`telegram`?(i(),y(D,{key:0},[u(P,{label:h(o)(`platform.botToken`),hint:h(o)(`platform.botTokenHint`)},{default:d(()=>[u(h(s),{"default-value":L(`telegram`).token||``,loading:w(`telegram`,`token`),clearable:``,size:`small`,class:`input-lg`,placeholder:`123456:ABC-DEF...`,onChange:a[0]||=e=>I(`telegram`,`token`,{token:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.requireMention`),hint:h(o)(`platform.requireMentionGroup`)},{default:d(()=>[u(h(e),{value:h(r).telegram.require_mention,loading:w(`telegram`,`require_mention`),"onUpdate:value":a[1]||=e=>F(`telegram`,`require_mention`,{require_mention:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.reactions`),hint:h(o)(`platform.reactionsHint`)},{default:d(()=>[u(h(e),{value:h(r).telegram.reactions,loading:w(`telegram`,`reactions`),"onUpdate:value":a[2]||=e=>F(`telegram`,`reactions`,{reactions:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.freeResponseChats`),hint:h(o)(`platform.freeResponseChatsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).telegram.free_response_chats||``,loading:w(`telegram`,`free_response_chats`),size:`small`,placeholder:`chat_id1,chat_id2`,onChange:a[3]||=e=>F(`telegram`,`free_response_chats`,{free_response_chats:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.mentionPatterns`),hint:h(o)(`platform.mentionPatternsHint`)},{default:d(()=>[u(h(s),{"default-value":(h(r).telegram.mention_patterns||[]).join(`, `),loading:w(`telegram`,`mention_patterns`),size:`small`,placeholder:`pattern1, pattern2`,onChange:a[4]||=e=>F(`telegram`,`mention_patterns`,{mention_patterns:e?e.split(`,`).map(e=>e.trim()):[]})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0),n.key===`discord`?(i(),y(D,{key:1},[u(P,{label:h(o)(`platform.botToken`),hint:h(o)(`platform.botTokenHint`)},{default:d(()=>[u(h(s),{"default-value":L(`discord`).token||``,loading:w(`discord`,`token`),clearable:``,size:`small`,class:`input-lg`,placeholder:`Bot token...`,onChange:a[5]||=e=>I(`discord`,`token`,{token:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.requireMention`),hint:h(o)(`platform.requireMentionChannel`)},{default:d(()=>[u(h(e),{value:h(r).discord.require_mention,loading:w(`discord`,`require_mention`),"onUpdate:value":a[6]||=e=>F(`discord`,`require_mention`,{require_mention:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.autoThread`),hint:h(o)(`platform.autoThreadHint`)},{default:d(()=>[u(h(e),{value:h(r).discord.auto_thread,loading:w(`discord`,`auto_thread`),"onUpdate:value":a[7]||=e=>F(`discord`,`auto_thread`,{auto_thread:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.reactions`),hint:h(o)(`platform.reactionsHint`)},{default:d(()=>[u(h(e),{value:h(r).discord.reactions,loading:w(`discord`,`reactions`),"onUpdate:value":a[8]||=e=>F(`discord`,`reactions`,{reactions:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.freeResponseChannels`),hint:h(o)(`platform.freeResponseChannelsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).discord.free_response_channels||``,loading:w(`discord`,`free_response_channels`),size:`small`,placeholder:`channel_id1,channel_id2`,onChange:a[9]||=e=>F(`discord`,`free_response_channels`,{free_response_channels:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.allowedChannels`),hint:h(o)(`platform.allowedChannelsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).discord.allowed_channels||``,loading:w(`discord`,`allowed_channels`),size:`small`,placeholder:`channel_id1,channel_id2`,onChange:a[10]||=e=>F(`discord`,`allowed_channels`,{allowed_channels:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.ignoredChannels`),hint:h(o)(`platform.ignoredChannelsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).discord.ignored_channels||``,loading:w(`discord`,`ignored_channels`),size:`small`,placeholder:`channel_id1,channel_id2`,onChange:a[11]||=e=>F(`discord`,`ignored_channels`,{ignored_channels:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.noThreadChannels`),hint:h(o)(`platform.noThreadChannelsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).discord.no_thread_channels||``,loading:w(`discord`,`no_thread_channels`),size:`small`,placeholder:`channel_id1,channel_id2`,onChange:a[12]||=e=>F(`discord`,`no_thread_channels`,{no_thread_channels:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0),n.key===`slack`?(i(),y(D,{key:2},[u(P,{label:h(o)(`platform.botToken`),hint:h(o)(`platform.botTokenHint`)},{default:d(()=>[u(h(s),{"default-value":L(`slack`).token||``,loading:w(`slack`,`token`),clearable:``,size:`small`,class:`input-lg`,placeholder:`xoxb-...`,onChange:a[13]||=e=>I(`slack`,`token`,{token:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.requireMention`),hint:h(o)(`platform.requireMentionChannel`)},{default:d(()=>[u(h(e),{value:h(r).slack.require_mention,loading:w(`slack`,`require_mention`),"onUpdate:value":a[14]||=e=>F(`slack`,`require_mention`,{require_mention:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.allowBots`),hint:h(o)(`platform.allowBotsHint`)},{default:d(()=>[u(h(e),{value:h(r).slack.allow_bots,loading:w(`slack`,`allow_bots`),"onUpdate:value":a[15]||=e=>F(`slack`,`allow_bots`,{allow_bots:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.freeResponseChannels`),hint:h(o)(`platform.freeResponseChannelsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).slack.free_response_channels||``,loading:w(`slack`,`free_response_channels`),size:`small`,placeholder:`channel_id1,channel_id2`,onChange:a[16]||=e=>F(`slack`,`free_response_channels`,{free_response_channels:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0),n.key===`whatsapp`?(i(),y(D,{key:3},[u(P,{label:h(o)(`platform.waEnabled`),hint:h(o)(`platform.waEnabledHint`)},{default:d(()=>[u(h(e),{value:L(`whatsapp`).enabled,loading:w(`whatsapp`,`enabled`),"onUpdate:value":a[17]||=e=>I(`whatsapp`,`enabled`,{enabled:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.requireMention`),hint:h(o)(`platform.requireMentionGroup`)},{default:d(()=>[u(h(e),{value:h(r).whatsapp.require_mention,loading:w(`whatsapp`,`require_mention`),"onUpdate:value":a[18]||=e=>F(`whatsapp`,`require_mention`,{require_mention:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.freeResponseChats`),hint:h(o)(`platform.freeResponseChatsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).whatsapp.free_response_chats||``,loading:w(`whatsapp`,`free_response_chats`),size:`small`,placeholder:`chat_id1,chat_id2`,onChange:a[19]||=e=>F(`whatsapp`,`free_response_chats`,{free_response_chats:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.mentionPatterns`),hint:h(o)(`platform.mentionPatternsHint`)},{default:d(()=>[u(h(s),{"default-value":(h(r).whatsapp.mention_patterns||[]).join(`, `),loading:w(`whatsapp`,`mention_patterns`),size:`small`,placeholder:`pattern1, pattern2`,onChange:a[20]||=e=>F(`whatsapp`,`mention_patterns`,{mention_patterns:e?e.split(`,`).map(e=>e.trim()):[]})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0),n.key===`matrix`?(i(),y(D,{key:4},[u(P,{label:h(o)(`platform.accessToken`),hint:h(o)(`platform.accessTokenHint`)},{default:d(()=>[u(h(s),{"default-value":L(`matrix`).token||``,loading:w(`matrix`,`token`),clearable:``,size:`small`,class:`input-lg`,placeholder:`syt_...`,onChange:a[21]||=e=>I(`matrix`,`token`,{token:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.homeserver`),hint:h(o)(`platform.homeserverHint`)},{default:d(()=>[u(h(s),{"default-value":L(`matrix`).extra?.homeserver||``,loading:w(`matrix`,`homeserver`),clearable:``,size:`small`,class:`input-lg`,placeholder:`https://matrix.org`,onChange:a[22]||=e=>I(`matrix`,`homeserver`,{extra:{...L(`matrix`).extra,homeserver:e}})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.requireMention`),hint:h(o)(`platform.requireMentionRoom`)},{default:d(()=>[u(h(e),{value:h(r).matrix.require_mention,loading:w(`matrix`,`require_mention`),"onUpdate:value":a[23]||=e=>F(`matrix`,`require_mention`,{require_mention:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.autoThread`),hint:h(o)(`platform.autoThreadHintRoom`)},{default:d(()=>[u(h(e),{value:h(r).matrix.auto_thread,loading:w(`matrix`,`auto_thread`),"onUpdate:value":a[24]||=e=>F(`matrix`,`auto_thread`,{auto_thread:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.dmMentionThreads`),hint:h(o)(`platform.dmMentionThreadsHint`)},{default:d(()=>[u(h(e),{value:h(r).matrix.dm_mention_threads,loading:w(`matrix`,`dm_mention_threads`),"onUpdate:value":a[25]||=e=>F(`matrix`,`dm_mention_threads`,{dm_mention_threads:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.freeResponseRooms`),hint:h(o)(`platform.freeResponseRoomsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).matrix.free_response_rooms||``,loading:w(`matrix`,`free_response_rooms`),size:`small`,placeholder:`room_id1,room_id2`,onChange:a[26]||=e=>F(`matrix`,`free_response_rooms`,{free_response_rooms:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0),n.key===`feishu`?(i(),y(D,{key:5},[u(P,{label:h(o)(`platform.appId`),hint:h(o)(`platform.appIdHint`)},{default:d(()=>[u(h(s),{"default-value":L(`feishu`).extra?.app_id||``,loading:w(`feishu`,`app_id`),clearable:``,size:`small`,class:`input-lg`,placeholder:`cli_...`,onChange:a[27]||=e=>I(`feishu`,`app_id`,{extra:{...L(`feishu`).extra,app_id:e}})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.appSecret`),hint:h(o)(`platform.appSecretHint`)},{default:d(()=>[u(h(s),{"default-value":L(`feishu`).extra?.app_secret||``,loading:w(`feishu`,`app_secret`),clearable:``,size:`small`,class:`input-lg`,placeholder:`App Secret`,onChange:a[28]||=e=>I(`feishu`,`app_secret`,{extra:{...L(`feishu`).extra,app_secret:e}})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.requireMention`),hint:h(o)(`platform.requireMentionGroup`)},{default:d(()=>[u(h(e),{value:h(r).feishu.require_mention,loading:w(`feishu`,`require_mention`),"onUpdate:value":a[29]||=e=>F(`feishu`,`require_mention`,{require_mention:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.freeResponseChats`),hint:h(o)(`platform.freeResponseChatsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).feishu.free_response_chats||``,loading:w(`feishu`,`free_response_chats`),size:`small`,placeholder:`chat_id1,chat_id2`,onChange:a[30]||=e=>F(`feishu`,`free_response_chats`,{free_response_chats:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0),n.key===`dingtalk`?(i(),y(D,{key:6},[u(P,{label:h(o)(`platform.clientId`),hint:h(o)(`platform.clientIdHint`)},{default:d(()=>[u(h(s),{"default-value":L(`dingtalk`).extra?.client_id||``,loading:w(`dingtalk`,`client_id`),clearable:``,size:`small`,class:`input-lg`,placeholder:`Client ID`,onChange:a[31]||=e=>I(`dingtalk`,`client_id`,{extra:{...L(`dingtalk`).extra,client_id:e}})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.clientSecret`),hint:h(o)(`platform.clientSecretHint`)},{default:d(()=>[u(h(s),{"default-value":L(`dingtalk`).extra?.client_secret||``,loading:w(`dingtalk`,`client_secret`),clearable:``,size:`small`,class:`input-lg`,placeholder:`Client Secret`,onChange:a[32]||=e=>I(`dingtalk`,`client_secret`,{extra:{...L(`dingtalk`).extra,client_secret:e}})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.requireMention`),hint:h(o)(`platform.requireMentionGroup`)},{default:d(()=>[u(h(e),{value:h(r).dingtalk.require_mention,loading:w(`dingtalk`,`require_mention`),"onUpdate:value":a[33]||=e=>F(`dingtalk`,`require_mention`,{require_mention:e})},null,8,[`value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.freeResponseChats`),hint:h(o)(`platform.freeResponseChatsHint`)},{default:d(()=>[u(h(s),{"default-value":h(r).dingtalk.free_response_chats||``,loading:w(`dingtalk`,`free_response_chats`),size:`small`,placeholder:`chat_id1,chat_id2`,onChange:a[34]||=e=>F(`dingtalk`,`free_response_chats`,{free_response_chats:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0),n.key===`weixin`?(i(),y(D,{key:7},[l(`div`,V,[G.value===`idle`||G.value===`error`||G.value===`expired`||G.value===`confirmed`?(i(),x(h(b),{key:0,type:`primary`,size:`small`,onClick:q},{default:d(()=>[c(_(G.value===`confirmed`?h(o)(`platform.qrRelogin`):h(o)(`platform.qrLogin`)),1)]),_:1})):t(``,!0),G.value===`loading`?(i(),y(`div`,H,[u(f,{size:`small`}),l(`span`,null,_(h(o)(`platform.qrFetching`)),1)])):t(``,!0),G.value===`waiting`||G.value===`scaned`?(i(),y(`div`,U,_(G.value===`scaned`?h(o)(`platform.qrScanedHint`):h(o)(`platform.qrScanHint`)),1)):t(``,!0)]),u(P,{label:h(o)(`platform.weixinToken`),hint:h(o)(`platform.weixinTokenHint`)},{default:d(()=>[u(h(s),{"default-value":L(`weixin`).token||``,loading:w(`weixin`,`token`),clearable:``,size:`small`,class:`input-lg`,placeholder:`Token`,onChange:a[35]||=e=>I(`weixin`,`token`,{token:e})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.accountId`),hint:h(o)(`platform.accountIdHint`)},{default:d(()=>[u(h(s),{"default-value":L(`weixin`).extra?.account_id||``,loading:w(`weixin`,`account_id`),clearable:``,size:`small`,class:`input-lg`,placeholder:`Account ID`,onChange:a[36]||=e=>I(`weixin`,`account_id`,{extra:{...L(`weixin`).extra,account_id:e}})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0),n.key===`wecom`?(i(),y(D,{key:8},[u(P,{label:h(o)(`platform.botId`),hint:h(o)(`platform.botIdHint`)},{default:d(()=>[u(h(s),{"default-value":L(`wecom`).extra?.bot_id||``,loading:w(`wecom`,`bot_id`),clearable:``,size:`small`,class:`input-lg`,placeholder:`Bot ID`,onChange:a[37]||=e=>I(`wecom`,`bot_id`,{extra:{...L(`wecom`).extra,bot_id:e}})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`]),u(P,{label:h(o)(`platform.appSecret`),hint:h(o)(`platform.wecomSecretHint`)},{default:d(()=>[u(h(s),{"default-value":L(`wecom`).extra?.secret||``,loading:w(`wecom`,`secret`),clearable:``,size:`small`,class:`input-lg`,placeholder:`Secret`,onChange:a[38]||=e=>I(`wecom`,`secret`,{extra:{...L(`wecom`).extra,secret:e}})},null,8,[`default-value`,`loading`])]),_:1},8,[`label`,`hint`])],64)):t(``,!0)]),_:2},1032,[`name`,`icon`,`config`,`credentials`])),64))])}}}),[[`__scopeId`,`data-v-c7999829`]]),G={class:`channels-view`},K={class:`page-header`},q={class:`header-title`},J={class:`channels-content`},Y=g(r({__name:`ChannelsView`,setup(e){let n=N(),{t:r}=S();return f(()=>{n.fetchSettings()}),(e,a)=>(i(),y(`div`,G,[l(`header`,K,[l(`h2`,q,_(h(r)(`sidebar.channels`)),1)]),l(`div`,J,[u(h(E),{show:h(n).loading||h(n).saving,size:`large`,description:h(r)(`common.loading`)},{default:d(()=>[h(n).loading?t(``,!0):(i(),x(W,{key:0}))]),_:1},8,[`show`,`description`])])]))}}),[[`__scopeId`,`data-v-e25dbf6c`]]);export{Y as default}; \ No newline at end of file diff --git a/webui/assets/ChannelsView-DIBfwpcR.css b/webui/assets/ChannelsView-DIBfwpcR.css new file mode 100644 index 0000000000000000000000000000000000000000..5a737d0043ed7151efc8b111eea72033b657666b --- /dev/null +++ b/webui/assets/ChannelsView-DIBfwpcR.css @@ -0,0 +1 @@ +[data-v-cee18614]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-cee18614]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.platform-card[data-v-cee18614]{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;margin-bottom:12px;overflow:hidden}.platform-card.configured[data-v-cee18614]{border-color:rgba(var(--success-rgb), .2)}.platform-card-header[data-v-cee18614]{cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.platform-card-header[data-v-cee18614]:hover{background-color:rgba(var(--text-primary-rgb), .03)}.platform-info[data-v-cee18614]{align-items:center;gap:10px;display:flex}.platform-icon[data-v-cee18614]{width:18px;height:18px;color:var(--text-secondary);flex-shrink:0}.platform-name[data-v-cee18614]{color:var(--text-primary);font-size:14px;font-weight:500}.expand-icon[data-v-cee18614]{color:var(--text-muted);font-size:12px;transition:transform .2s}.expand-icon.expanded[data-v-cee18614]{transform:rotate(0)}.expand-icon[data-v-cee18614]:not(.expanded){transform:rotate(-90deg)}.platform-card-body[data-v-cee18614]{border-top:1px solid var(--border-light);padding:0 16px 12px}[data-v-c7999829]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-c7999829]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.settings-section[data-v-c7999829]{margin-top:16px}.weixin-qr-section[data-v-c7999829]{margin-top:12px;margin-bottom:12px}.weixin-qr-loading[data-v-c7999829]{color:var(--text-muted);align-items:center;gap:8px;font-size:13px;display:flex}.weixin-qr-hint[data-v-c7999829]{color:var(--text-secondary);font-size:13px}[data-v-e25dbf6c]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-e25dbf6c]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.channels-view[data-v-e25dbf6c]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.channels-content[data-v-e25dbf6c]{flex:1;padding:20px;position:relative;overflow-y:auto} diff --git a/webui/assets/ChatView-BYd7bMKt.js b/webui/assets/ChatView-BYd7bMKt.js new file mode 100644 index 0000000000000000000000000000000000000000..c9de7106de30454872554b90502657da5c67cb30 --- /dev/null +++ b/webui/assets/ChatView-BYd7bMKt.js @@ -0,0 +1,5 @@ +import{t as e}from"./Dropdown-ReirMLrI.js";import{t}from"./Tooltip-DQzh27d-.js";import{t as n}from"./Popconfirm-ClpYjEYd.js";import{n as r}from"./app-IytcAxLh.js";import{$r as i,Ar as a,Br as o,Dr as s,Fr as c,Gr as l,Hr as u,N as d,Nr as f,Or as p,Pr as m,Qr as h,Sr as g,Tr as _,Ur as ee,Wr as v,Xr as y,Zr as b,_r as x,ai as S,b as C,c as w,ci as T,cr as E,i as D,jr as O,k,kr as A,l as j,lr as M,n as N,ni as P,o as F,oi as I,pr as L,qr as R,r as z,s as B,si as V,t as te,wr as H,xr as ne,y as re,yr as ie}from"./index-Cl8-DFW_.js";import{t as ae}from"./settings-Cxn8gJl1.js";import{t as oe}from"./session-browser-prefs-D7bVorU0.js";import{t as se}from"./clipboard-BulqpJ4r.js";import{a as ce,i as U,n as le,r as ue,t as de}from"./MarkdownRenderer-P3bVUblX.js";var W={telegram:`Telegram`,api_server:`API Server`,cli:`CLI`,discord:`Discord`,slack:`Slack`,matrix:`Matrix`,whatsapp:`WhatsApp`,signal:`Signal`,email:`Email`,sms:`SMS`,dingtalk:`DingTalk`,feishu:`Feishu`,wecom:`WeCom`,weixin:`WeChat`,bluebubbles:`iMessage`,mattermost:`Mattermost`,cron:`Cron`};function G(e){return e?W[e]||e:``}function K(e){if(!e)return``;let t=new Date(e),n=new Date;return t.toDateString()===n.toDateString()?t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}):t.toLocaleDateString([],{month:`short`,day:`numeric`})}function q(e){return K(e*1e3)}var fe={class:`chat-input-area`},J={class:`input-top-bar`},Y={key:1,class:`context-bar`},pe={key:0,class:`attachment-previews`},X=[`src`,`alt`],Z={key:1,class:`attachment-file`},Q={class:`file-name`},$={class:`file-size`},me=[`onClick`],he=[`placeholder`],ge={class:`input-actions`},_e=2e5,ve=w(c({__name:`ChatInput`,setup(e){let n=te(),{t:o}=M(),c=P(``),u=P(),d=P(),g=P([]),_=P(!1),v=P(0),b=P(!1),x=s(()=>c.value.trim()||g.value.length>0),C=P(2e5);async function w(){try{C.value=await D(B().activeProfileName||void 0)}catch{C.value=_e}}ee(w),y(()=>B().activeProfileName,w),y(()=>r().selectedModel,w);let E=s(()=>(n.activeSession?.inputTokens??0)+(n.activeSession?.outputTokens??0)),j=s(()=>Math.max(0,C.value-E.value)),N=s(()=>Math.min(E.value/C.value*100,100));function F(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`k`:String(e)}function L(e){if(g.value.find(t=>t.name===e.name))return;let t=Date.now().toString(36)+Math.random().toString(36).slice(2,8),n=URL.createObjectURL(e);g.value.push({id:t,name:e.name,type:e.type,size:e.size,url:n,file:e})}function z(){d.value?.click()}function ne(e){let t=e.target;if(t.files){for(let e of t.files)L(e);t.value=``}}function re(e){let t=Array.from(e.clipboardData?.items||[]).filter(e=>e.type.startsWith(`image/`));if(t.length){e.preventDefault();for(let e of t){let t=e.getAsFile();if(!t)continue;let n=e.type.split(`/`)[1]||`png`;L(new File([t],`pasted-${Date.now()}.${n}`,{type:e.type}))}}}function ae(e){e.preventDefault()}function oe(e){e.preventDefault(),e.dataTransfer?.types.includes(`Files`)&&(v.value++,_.value=!0)}function se(){v.value--,v.value<=0&&(v.value=0,_.value=!1)}function ce(e){e.preventDefault(),v.value=0,_.value=!1;let t=Array.from(e.dataTransfer?.files||[]);if(t.length){for(let e of t)L(e);u.value?.focus()}}function U(){let e=c.value.trim();!e&&g.value.length===0||(n.sendMessage(e,g.value.length>0?g.value:void 0),c.value=``,g.value=[],u.value&&(u.value.style.height=`auto`))}function le(){b.value=!0}function ue(){requestAnimationFrame(()=>{b.value=!1})}function de(e){return b.value||e.isComposing||e.keyCode===229}function W(e){e.key!==`Enter`||e.shiftKey||de(e)||(e.preventDefault(),U())}function G(e){let t=e.target;t.style.height=`auto`,t.style.height=Math.min(t.scrollHeight,100)+`px`}function K(e){let t=g.value.findIndex(t=>t.id===e);t!==-1&&(URL.revokeObjectURL(g.value[t].url),g.value.splice(t,1))}function q(e){return e<1024?e+` B`:e<1024*1024?(e/1024).toFixed(1)+` KB`:(e/(1024*1024)).toFixed(1)+` MB`}function ve(e){return e.startsWith(`image/`)}return(e,r)=>(l(),O(`div`,fe,[p(`div`,J,[m(S(t),{trigger:`hover`},{trigger:h(()=>[m(S(k),{quaternary:``,size:`tiny`,onClick:z,circle:``},{icon:h(()=>[...r[2]||=[p(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[p(`path`,{d:`M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48`})],-1)]]),_:1})]),default:h(()=>[f(` `+T(S(o)(`chat.attachFiles`)),1)]),_:1}),E.value>0?(l(),O(`span`,{key:0,class:I([`context-info`,{"context-warning":N.value>80}])},T(F(E.value))+` / `+T(F(C.value))+` · `+T(S(o)(`chat.contextRemaining`))+` `+T(F(j.value)),3)):a(``,!0),E.value>0?(l(),O(`div`,Y,[p(`div`,{class:I([`context-bar-fill`,{"context-bar-warn":N.value>60&&N.value<=80,"context-bar-danger":N.value>80}]),style:V({width:`${N.value}%`})},null,6)])):a(``,!0)]),g.value.length>0?(l(),O(`div`,pe,[(l(!0),O(H,null,R(g.value,e=>(l(),O(`div`,{key:e.id,class:I([`attachment-preview`,{image:ve(e.type)}])},[ve(e.type)?(l(),O(`img`,{key:0,src:e.url,alt:e.name,class:`attachment-thumb`},null,8,X)):(l(),O(`div`,Z,[r[3]||=p(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[p(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),p(`polyline`,{points:`14 2 14 8 20 8`})],-1),p(`span`,Q,T(e.name),1),p(`span`,$,T(q(e.size)),1)])),p(`button`,{class:`attachment-remove`,onClick:t=>K(e.id)},[...r[4]||=[p(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),p(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,me)],2))),128))])):a(``,!0),p(`div`,{class:I([`input-wrapper`,{"drag-over":_.value}]),onDragover:ae,onDragenter:oe,onDragleave:se,onDrop:ce},[p(`input`,{ref_key:`fileInputRef`,ref:d,type:`file`,multiple:``,class:`file-input-hidden`,onChange:ne},null,544),i(p(`textarea`,{ref_key:`textareaRef`,ref:u,"onUpdate:modelValue":r[0]||=e=>c.value=e,class:`input-textarea`,placeholder:S(o)(`chat.inputPlaceholder`),rows:`1`,onKeydown:W,onCompositionstart:le,onCompositionend:ue,onInput:G,onPaste:re},null,40,he),[[ie,c.value]]),p(`div`,ge,[S(n).isStreaming?(l(),A(S(k),{key:0,size:`small`,type:`error`,onClick:r[1]||=e=>S(n).stopStreaming()},{default:h(()=>[f(T(S(o)(`chat.stop`)),1)]),_:1})):a(``,!0),m(S(k),{size:`small`,type:`primary`,disabled:!x.value||S(n).isStreaming,onClick:U},{icon:h(()=>[...r[5]||=[p(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`line`,{x1:`22`,y1:`2`,x2:`11`,y2:`13`}),p(`polygon`,{points:`22 2 15 22 11 13 2 9 22 2`})],-1)]]),default:h(()=>[f(` `+T(S(o)(`chat.send`)),1)]),_:1},8,[`disabled`])])],34)]))}}),[[`__scopeId`,`data-v-e8019954`]]);async function ye(e={}){let t=new URLSearchParams;return e.humanOnly===!1&&t.set(`humanOnly`,`false`),e.source&&t.set(`source`,e.source),e.limit!=null&&t.set(`limit`,String(e.limit)),(await L(`/api/hermes/sessions/conversations${t.toString()?`?${t.toString()}`:``}`)).sessions}async function be(e,t={}){let n=new URLSearchParams;t.humanOnly===!1&&n.set(`humanOnly`,`false`),t.source&&n.set(`source`,t.source);let r=n.toString()?`?${n.toString()}`:``;return L(`/api/hermes/sessions/conversations/${encodeURIComponent(e)}/messages${r}`)}var xe={class:`conversation-monitor`},Se={class:`conversation-monitor__sidebar`},Ce={key:0,class:`conversation-monitor__empty`},we={key:1,class:`conversation-monitor__empty`},Te=[`aria-pressed`,`onClick`],Ee={class:`conversation-monitor__session-title-row`},De={class:`conversation-monitor__session-title`},Oe={key:0,class:`conversation-monitor__session-live`},ke={class:`conversation-monitor__session-meta`},Ae={key:0,class:`conversation-monitor__session-preview`},je={class:`conversation-monitor__detail`},Me={key:0,class:`conversation-monitor__detail-header`},Ne={class:`conversation-monitor__detail-title`},Pe={class:`conversation-monitor__detail-meta`},Fe={key:1,class:`conversation-monitor__empty conversation-monitor__empty--error`},Ie={key:2,class:`conversation-monitor__empty`},Le={key:3,class:`conversation-monitor__empty`},Re={key:4,class:`conversation-monitor__messages`},ze={class:`conversation-monitor__message-meta`},Be={class:`conversation-monitor__message-content`},Ve=15e3,He=w(c({__name:`ConversationMonitorPane`,props:{humanOnly:{type:Boolean}},setup(e){let t=e,{t:n}=M(),r=P([]),i=P(null),o=P(null),c=P(!1),u=P(!1),d=P(``),f=null,m=0,h=0,g=s(()=>r.value.find(e=>e.id===i.value)||null);function _(e){return n(e===`user`?`chat.monitorRoleUser`:`chat.monitorRoleAssistant`)}function b(e){return n(`chat.linkedSessions`,{count:e})}function x(){m+=1,h+=1}async function C(e=!1){let n=++m;e||(c.value=!0,d.value=``);try{let e=await ye({humanOnly:t.humanOnly});if(n!==m)return;if(r.value=e,!e.length){i.value=null,o.value=null;return}(!i.value||!e.some(e=>e.id===i.value))&&(i.value=e[0].id)}catch(t){if(n!==m||e)return;d.value=t?.message||String(t),r.value=[],i.value=null,o.value=null}finally{!e&&n===m&&(c.value=!1)}}async function w(e,n=!1){let r=++h;if(!e){o.value=null;return}let a=t.humanOnly;n||(u.value=!0,d.value=``);try{let n=await be(e,{humanOnly:a});if(r!==h||e!==i.value||a!==t.humanOnly)return;o.value=n}catch(e){if(r!==h||n)return;d.value=e?.message||String(e),o.value=null}finally{!n&&r===h&&(u.value=!1)}}return y(i,async e=>{await w(e,!1)}),y(()=>t.humanOnly,async()=>{x(),i.value=null,o.value=null,await C(!1)}),ee(async()=>{await C(!1),f=setInterval(async()=>{await C(!0),i.value&&await w(i.value,!0)},Ve)}),v(()=>{x(),f&&clearInterval(f)}),(e,t)=>(l(),O(`div`,xe,[p(`aside`,Se,[c.value&&r.value.length===0?(l(),O(`div`,Ce,T(S(n)(`common.loading`)),1)):r.value.length===0?(l(),O(`div`,we,T(S(n)(`chat.noSessions`)),1)):a(``,!0),(l(!0),O(H,null,R(r.value,e=>(l(),O(`button`,{key:e.id,class:I([`conversation-monitor__session`,{active:e.id===i.value}]),"aria-pressed":e.id===i.value,onClick:t=>i.value=e.id},[p(`div`,Ee,[p(`span`,De,T(e.title||e.preview||e.id),1),e.is_active?(l(),O(`span`,Oe,T(S(n)(`chat.recentBadge`)),1)):a(``,!0)]),p(`div`,ke,T(S(G)(e.source))+` · `+T(S(q)(e.last_active)),1),e.preview?(l(),O(`div`,Ae,T(e.preview),1)):a(``,!0)],10,Te))),128))]),p(`section`,je,[g.value?(l(),O(`header`,Me,[p(`div`,Ne,T(g.value.title||g.value.preview||g.value.id),1),p(`div`,Pe,[p(`span`,null,T(S(G)(g.value.source)),1),t[0]||=p(`span`,null,`·`,-1),p(`span`,null,T(g.value.model),1),t[1]||=p(`span`,null,`·`,-1),p(`span`,null,T(b(g.value.thread_session_count)),1)])])):a(``,!0),d.value?(l(),O(`div`,Fe,T(d.value),1)):u.value&&!o.value?(l(),O(`div`,Ie,T(S(n)(`common.loading`)),1)):!o.value||o.value.messages.length===0?(l(),O(`div`,Le,T(S(n)(`chat.noVisibleMessages`)),1)):(l(),O(`div`,Re,[(l(!0),O(H,null,R(o.value.messages,e=>(l(),O(`article`,{key:`${e.session_id}-${e.id}`,class:I([`conversation-monitor__message`,`role-${e.role}`])},[p(`div`,ze,T(_(e.role))+` · `+T(S(q)(e.timestamp)),1),p(`div`,Be,T(e.content),1)],2))),128))]))])]))}}),[[`__scopeId`,`data-v-be298d0d`]]),Ue=[`id`],We={key:1,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,class:`tool-icon`},Ge={class:`tool-name`},Ke={key:2,class:`tool-preview`},qe={key:3,class:`tool-spinner`},Je={key:4,class:`tool-error-badge`},Ye={key:0,class:`tool-detail-section`,"data-copy-source":`tool-args`},Xe={class:`tool-detail-label`},Ze=[`innerHTML`],Qe={key:1,class:`tool-detail-section`,"data-copy-source":`tool-result`},$e={class:`tool-detail-label`},et=[`innerHTML`],tt={key:1,class:`msg-body`},nt={key:0,src:E,alt:`Hermes`,class:`msg-avatar`},rt={key:0,class:`msg-attachments`},it=[`src`,`alt`,`onClick`],at=[`onClick`,`title`],ot={class:`att-name`},st={class:`att-size`},ct={class:`thinking-label`},lt={key:0,class:`thinking-meta`},ut={class:`thinking-meta`},dt={key:0,class:`thinking-body`},ft={key:3,class:`streaming-dots`},pt={class:`message-meta`},mt=[`title`],ht={class:`message-time`},gt=[`src`],_t=2e3,vt=w(c({__name:`MessageItem`,props:{message:{},highlight:{type:Boolean}},setup(e){let t=e,{t:n}=M(),r=re(),i=s(()=>t.message.role===`system`),o=P(!1),c=P(null),d=te(),f=ae(),h=s(()=>{if(t.message.role===`tool`)return null;let e=t.message.content||``;return e.trim()?e:null});async function ee(){let e=h.value;if(e)try{await navigator.clipboard.writeText(e),r.success(n(`chat.copiedBubble`))}catch{r.error(n(`chat.copyFailed`))}}let v=s(()=>z(t.message.content||``,{streaming:!!t.message.isStreaming})),y=s(()=>!!(t.message.reasoning&&t.message.reasoning.length>0)),x=s(()=>y.value||v.value.hasThinking),C=s(()=>{let e=[];return t.message.reasoning&&e.push(t.message.reasoning),e.push(...v.value.segments),v.value.pending&&e.push(v.value.pending),e.join(` + +`)}),w=s(()=>{let e=N(v.value);return t.message.reasoning&&(e+=t.message.reasoning.length),e}),E=s(()=>t.message.isStreaming?!!(v.value.pending!==null||y.value&&!t.message.content):!1),D=P(null),k=s(()=>E.value?!0:D.value===null?!!f.display.show_reasoning:D.value);function j(){D.value=!k.value}let F=P(Date.now()),L=null;function B(){let e=d.getThinkingObservation(t.message.id),n=!!(t.message.isStreaming&&e?.startedAt!==void 0&&e.endedAt===void 0);n&&L===null?L=window.setInterval(()=>{F.value=Date.now()},1e3):!n&&L!==null&&(window.clearInterval(L),L=null)}b(B),u(()=>{L!==null&&window.clearInterval(L)});let V=s(()=>{let e=d.getThinkingObservation(t.message.id);if(!e?.startedAt)return null;let n=e.endedAt??(t.message.isStreaming?F.value:e.startedAt);return Math.max(0,n-e.startedAt)});function ne(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;return r===0?`${n}m`:`${n}m ${r}s`}let ie=s(()=>new Date(t.message.timestamp).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}));function oe(e){return e.startsWith(`image/`)}function se(e){return e<1024?e+` B`:e<1024*1024?(e/1024).toFixed(1)+` KB`:(e/(1024*1024)).toFixed(1)+` MB`}function W(e){let n=t.message.content||``,r=/\[File:\s*([^\]]+)\]\(([^)]+)\)/g,i;for(;(i=r.exec(n))!==null;)if(i[1].trim()===e.trim())return i[2];return null}function G(e){let t=W(e.name);if(t){r.info(n(`download.downloading`)),ce(t,e.name).catch(e=>{r.error(e.message||n(`download.downloadFailed`))});return}if(e.url&&e.url.startsWith(`blob:`)){let t=document.createElement(`a`);t.href=e.url,t.download=e.name,document.body.appendChild(t),t.click(),document.body.removeChild(t)}}function K(e){if(!e)return{full:``,display:``};try{let t=JSON.stringify(JSON.parse(e),null,2);return{full:t,display:t.length>_t?t.slice(0,_t)+` +`+n(`chat.truncated`):t,language:`json`}}catch{return{full:e,display:e.length>_t?e.slice(0,_t)+` +`+n(`chat.truncated`):e}}}function q(e,t){return U(e,t,n(`common.copy`),{maxHighlightLength:_t})}async function fe(e){let t=e.target;if(!(t instanceof HTMLElement))return;let n=t.closest(`[data-copy-code="true"]`);if(!n)return;e.preventDefault();let r=n.closest(`[data-copy-source]`)?.dataset.copySource;if(r===`tool-args`&&Z.value){await le(Z.value);return}if(r===`tool-result`&&$.value){await le($.value);return}await ue(e)}let J=s(()=>(t.message.attachments?.length??0)>0),Y=s(()=>!!(t.message.toolArgs||t.message.toolResult)),pe=s(()=>K(t.message.toolArgs)),X=s(()=>K(t.message.toolResult)),Z=s(()=>pe.value.full),Q=s(()=>pe.value.display),$=s(()=>X.value.full),me=s(()=>X.value.display),he=s(()=>Q.value?q(Q.value,pe.value.language):``),ge=s(()=>me.value?q(me.value,X.value.language):``);return(t,r)=>(l(),O(H,null,[p(`div`,{class:I([`message`,[e.message.role,{highlight:e.highlight}]]),id:`message-${e.message.id}`},[e.message.role===`tool`?(l(),O(H,{key:0},[p(`div`,{class:I([`tool-line`,{expandable:Y.value}]),onClick:r[0]||=e=>Y.value&&(o.value=!o.value)},[Y.value?(l(),O(`svg`,{key:0,width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:I([`tool-chevron`,{rotated:o.value}])},[...r[3]||=[p(`polyline`,{points:`9 18 15 12 9 6`},null,-1)]],2)):(l(),O(`svg`,We,[...r[4]||=[p(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`},null,-1)]])),p(`span`,Ge,T(e.message.toolName),1),e.message.toolPreview&&!o.value?(l(),O(`span`,Ke,T(e.message.toolPreview),1)):a(``,!0),e.message.toolStatus===`running`?(l(),O(`span`,qe)):a(``,!0),e.message.toolStatus===`error`?(l(),O(`span`,Je,T(S(n)(`chat.error`)),1)):a(``,!0)],2),o.value&&Y.value?(l(),O(`div`,{key:0,class:`tool-details`,onClick:fe},[Q.value?(l(),O(`div`,Ye,[p(`div`,Xe,T(S(n)(`chat.arguments`)),1),p(`div`,{class:`tool-detail-code-block`,innerHTML:he.value},null,8,Ze)])):a(``,!0),me.value?(l(),O(`div`,Qe,[p(`div`,$e,T(S(n)(`chat.result`)),1),p(`div`,{class:`tool-detail-code-block`,innerHTML:ge.value},null,8,et)])):a(``,!0)])):a(``,!0)],64)):(l(),O(`div`,tt,[e.message.role===`assistant`?(l(),O(`img`,nt)):a(``,!0),p(`div`,{class:I([`msg-content`,e.message.role])},[p(`div`,{class:I([`message-bubble`,{system:i.value}])},[J.value?(l(),O(`div`,rt,[(l(!0),O(H,null,R(e.message.attachments,e=>(l(),O(`div`,{key:e.id,class:I([`msg-attachment`,{image:oe(e.type)}])},[oe(e.type)&&e.url?(l(),O(`img`,{key:0,src:e.url,alt:e.name,class:`msg-attachment-thumb`,onClick:t=>c.value=e.url},null,8,it)):(l(),O(`div`,{key:1,class:`msg-attachment-file`,onClick:t=>G(e),style:{cursor:`pointer`},title:S(n)(`download.downloadFile`)},[r[5]||=p(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[p(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),p(`polyline`,{points:`14 2 14 8 20 8`})],-1),p(`span`,ot,T(e.name),1),p(`span`,st,T(se(e.size)),1),r[6]||=p(`svg`,{class:`att-download-icon`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),p(`polyline`,{points:`7 10 12 15 17 10`}),p(`line`,{x1:`12`,y1:`15`,x2:`12`,y2:`3`})],-1)],8,at))],2))),128))])):a(``,!0),x.value?(l(),O(`div`,{key:1,class:I([`thinking-block`,{expanded:k.value}])},[p(`div`,{class:`thinking-header`,onClick:j},[(l(),O(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:I([`thinking-chevron`,{rotated:k.value}])},[...r[7]||=[p(`polyline`,{points:`9 18 15 12 9 6`},null,-1)]],2)),r[8]||=p(`span`,{class:`thinking-icon`},`💭`,-1),p(`span`,ct,T(E.value?S(n)(`chat.thinkingInProgress`):S(n)(`chat.thinkingLabel`)),1),V.value!==null&&V.value>0?(l(),O(`span`,lt,` · `+T(S(n)(`chat.thinkingDuration`,{duration:ne(V.value)})),1)):a(``,!0),p(`span`,ut,` · `+T(S(n)(`chat.thinkingChars`,{count:w.value})),1)]),k.value?(l(),O(`div`,dt,[m(de,{content:C.value},null,8,[`content`])])):a(``,!0)],2)):a(``,!0),v.value.body?(l(),A(de,{key:2,content:v.value.body},null,8,[`content`])):a(``,!0),e.message.isStreaming&&!e.message.content?(l(),O(`span`,ft,[...r[9]||=[p(`span`,null,null,-1),p(`span`,null,null,-1),p(`span`,null,null,-1)]])):a(``,!0)],2),p(`div`,pt,[h.value?(l(),O(`button`,{key:0,class:`copy-bubble-btn`,onClick:ee,title:S(n)(`chat.copyBubble`)},[...r[10]||=[p(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`}),p(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`})],-1)]],8,mt)):a(``,!0),p(`span`,ht,T(ie.value),1)])],2)]))],10,Ue),(l(),A(_,{to:`body`},[c.value?(l(),O(`div`,{key:0,class:`image-preview-overlay`,onClick:r[2]||=g(e=>c.value=null,[`self`])},[p(`img`,{src:c.value,class:`image-preview-img`,onClick:r[1]||=e=>c.value=null},null,8,gt)])):a(``,!0)]))],64))}}),[[`__scopeId`,`data-v-c7d0f76f`]]),yt=`/webui/assets/thinking-light-BjeGd2gJ.mp4`,bt=`/webui/assets/thinking-dark-yYkYRZLs.mp4`,xt={key:0,class:`empty-state`},St={key:0,class:`streaming-indicator`},Ct=[`src`],wt={key:0,class:`tool-calls-panel`},Tt={class:`tool-call-name`},Et={key:0,class:`tool-call-preview`},Dt={key:1,class:`tool-call-spinner`},Ot={key:2,class:`tool-call-error`},kt=w(c({__name:`MessageList`,setup(e){let t=te(),{t:n}=M(),{isDark:r}=j(),i=P(),c=s(()=>t.messages.filter(e=>e.role!==`tool`)),u=s(()=>{let e=t.messages,n=-1;for(let t=e.length-1;t>=0;t--)if(e[t].role===`user`){n=t;break}return[...e.filter((e,t)=>e.role===`tool`&&t>n)].reverse()});function d(e=200){let t=i.value;return t?t.scrollHeight-t.scrollTop-t.clientHeight{i.value&&(i.value.scrollTop=i.value.scrollHeight)})}function g(e){o(()=>{let t=document.getElementById(`message-${e}`);t&&t.scrollIntoView({block:`center`})})}return y(()=>t.activeSessionId,e=>{if(e){if(t.focusMessageId){o(()=>g(t.focusMessageId));return}o(()=>f())}},{immediate:!0}),y(()=>t.focusMessageId,e=>{e&&g(e)}),y(()=>t.isRunActive,e=>{e&&f()}),y(()=>t.messages[t.messages.length-1]?.content,()=>{if(t.focusMessageId){g(t.focusMessageId);return}d()&&f()}),y(u,()=>{if(t.focusMessageId){g(t.focusMessageId);return}d()&&f()}),(e,o)=>(l(),O(`div`,{ref_key:`listRef`,ref:i,class:`message-list`},[S(t).messages.length===0?(l(),O(`div`,xt,[o[0]||=p(`img`,{src:`/webui/logo.png`,alt:`Hermes`,class:`empty-logo`},null,-1),p(`p`,null,T(S(n)(`chat.emptyState`)),1)])):a(``,!0),(l(!0),O(H,null,R(c.value,e=>(l(),A(vt,{key:e.id,message:e,highlight:S(t).focusMessageId===e.id},null,8,[`message`,`highlight`]))),128)),m(x,{name:`fade`},{default:h(()=>[S(t).isRunActive?(l(),O(`div`,St,[p(`video`,{src:S(r)?S(bt):S(yt),autoplay:``,loop:``,muted:``,playsinline:``,class:`thinking-video`},null,8,Ct),u.value.length>0?(l(),O(`div`,wt,[(l(!0),O(H,null,R(u.value,e=>(l(),O(`div`,{key:e.id,class:`tool-call-item`},[o[1]||=p(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,class:`tool-call-icon`},[p(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`})],-1),p(`span`,Tt,T(e.toolName),1),e.toolPreview?(l(),O(`span`,Et,T(e.toolPreview),1)):a(``,!0),e.toolStatus===`running`?(l(),O(`span`,Dt)):a(``,!0),e.toolStatus===`error`?(l(),O(`span`,Ot,T(S(n)(`chat.error`)),1)):a(``,!0)]))),128))])):a(``,!0)])):a(``,!0)]),_:1})],512))}}),[[`__scopeId`,`data-v-1bc92f44`]]),At=[`aria-current`],jt={class:`session-item-content`},Mt={class:`session-item-title-row`},Nt={key:0,class:`session-item-active-indicator`,"aria-hidden":`true`},Pt={key:1,class:`session-item-pin`,"aria-hidden":`true`},Ft={class:`session-item-title`},It={key:2,class:`session-item-live-badge`},Lt={class:`session-item-meta`},Rt={key:0,class:`session-item-model`},zt={class:`session-item-time`},Bt=c({__name:`SessionListItem`,props:{session:{},active:{type:Boolean},live:{type:Boolean},pinned:{type:Boolean},canDelete:{type:Boolean}},emits:[`select`,`contextmenu`,`delete`],setup(e,{emit:t}){let r=t,{t:i}=M();return(t,o)=>(l(),O(`button`,{class:I([`session-item`,{active:e.active,live:e.live}]),"aria-current":e.active?`page`:void 0,onClick:o[2]||=e=>r(`select`),onContextmenu:o[3]||=e=>r(`contextmenu`,e)},[p(`div`,jt,[p(`span`,Mt,[e.live?(l(),O(`span`,Nt,[...o[4]||=[p(`svg`,{class:`session-item-active-spinner`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`},[p(`circle`,{cx:`12`,cy:`12`,r:`8`,opacity:`0.2`}),p(`path`,{d:`M20 12a8 8 0 0 0-8-8`})],-1)]])):a(``,!0),e.pinned?(l(),O(`span`,Pt,[...o[5]||=[p(`svg`,{width:`11`,height:`11`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[p(`path`,{d:`M12 17v5`}),p(`path`,{d:`M5 8l14 0`}),p(`path`,{d:`M8 3l8 0 0 5 3 5-14 0 3-5z`})],-1)]])):a(``,!0),p(`span`,Ft,T(e.session.title),1),e.live?(l(),O(`span`,It,[o[6]||=p(`span`,{class:`live-dot`},null,-1),p(`span`,null,T(S(i)(`chat.liveMode`)),1)])):a(``,!0)]),p(`span`,Lt,[e.session.model?(l(),O(`span`,Rt,T(e.session.model),1)):a(``,!0),p(`span`,zt,T(S(K)(e.session.createdAt)),1)])]),e.canDelete?(l(),A(S(n),{key:0,onPositiveClick:o[1]||=e=>r(`delete`)},{trigger:h(()=>[p(`button`,{class:`session-item-delete`,onClick:o[0]||=g(()=>{},[`stop`])},[...o[7]||=[p(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),p(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])]),default:h(()=>[f(` `+T(S(i)(`chat.deleteSession`)),1)]),_:1})):a(``,!0)],42,At))}}),Vt={class:`chat-panel`},Ht={class:`session-list-header`},Ut={key:0,class:`session-list-title`},Wt={class:`session-list-actions`},Gt={key:0,class:`session-items`},Kt={key:0,class:`session-loading`},qt={key:1,class:`session-empty`},Jt={class:`session-group-header session-group-header--static`},Yt={class:`session-group-label`},Xt={class:`session-group-count`},Zt=[`onClick`],Qt={class:`session-group-label`},$t={class:`session-group-count`},en={class:`chat-main`},tn={class:`chat-header`},nn={class:`header-left`},rn={class:`header-session-title`},an={key:1,class:`source-badge`},on={class:`header-actions`},sn={class:`chat-mode-toggle`},cn=w(c({__name:`ChatPanel`,setup(n){let r=te(),i=oe(),c=re(),{t:u}=M(),g=P(`chat`),_=P(typeof window>`u`||!window.matchMedia(`(max-width: 768px)`).matches),b=P(_.value),x=null,w=P(!1);function E(e){r.switchSession(e),x?.matches&&(_.value=!1)}function D(e){e!==g.value&&(e===`live`?(b.value=_.value,_.value=!1):_.value=x?.matches?!1:b.value,g.value=e)}function j(e){w.value=e.matches,e.matches&&_.value&&(_.value=!1)}ee(()=>{x=window.matchMedia(`(max-width: 768px)`),j(x),x.addEventListener(`change`,j)}),v(()=>{x?.removeEventListener(`change`,j)});let N=P(!1),L=P(``),z=P(null),B=P(null),V=P(new Set(JSON.parse(localStorage.getItem(`hermes_collapsed_groups`)||`[]`)));function ie(e){return e===`api_server`?-1:e===`cron`?999:0}function ae(e){return[...e].sort((e,t)=>{let n=r.isSessionLive(e.id);return n===r.isSessionLive(t.id)?(t.updatedAt||0)-(e.updatedAt||0):n?-1:1})}let ce=s(()=>ae(r.sessions.filter(e=>i.isPinned(e.id)))),U=s(()=>{let e=new Map;for(let t of r.sessions){if(i.isPinned(t.id))continue;let n=t.source||``;e.has(n)||e.set(n,[]),e.get(n).push(t)}return[...e.keys()].sort((t,n)=>{let i=e.get(t)?.some(e=>r.isSessionLive(e.id))||!1;if(i!==(e.get(n)?.some(e=>r.isSessionLive(e.id))||!1))return i?-1:1;let a=ie(t),o=ie(n);return a===o?t.localeCompare(n):a-o}).map(t=>({source:t,label:t?G(t):u(`chat.other`),sessions:ae(e.get(t))}))});function le(e){if(!V.value.has(e))V.value=new Set([...V.value,e]);else{V.value=new Set(U.value.map(e=>e.source).filter(t=>t!==e));let t=U.value.find(t=>t.source===e);t?.sessions.length&&r.switchSession(t.sessions[0].id)}localStorage.setItem(`hermes_collapsed_groups`,JSON.stringify([...V.value]))}y(U,e=>{if(localStorage.getItem(`hermes_collapsed_groups`)!==null){let e=r.activeSession?.source;e&&V.value.has(e)&&(V.value=new Set([...V.value].filter(t=>t!==e)),localStorage.setItem(`hermes_collapsed_groups`,JSON.stringify([...V.value])));return}V.value=new Set(e.slice(1).map(e=>e.source)),localStorage.setItem(`hermes_collapsed_groups`,JSON.stringify([...V.value]))},{once:!0}),y(()=>[r.sessionsLoaded,...r.sessions.map(e=>e.id)],e=>{let t=e.slice(1);!e[0]||t.length===0||i.pruneMissingSessions(t)},{immediate:!0});let ue=s(()=>r.activeSession?.title||u(`chat.newChat`)),de=s(()=>g.value===`live`?u(`chat.liveSessions`):ue.value),W=s(()=>g.value===`chat`&&r.activeSession?.source||``);function K(){r.newChat()}async function q(e){let t=e||r.activeSessionId;t&&(await se(t)?c.success(u(`common.copied`)):c.error(u(`common.copied`)+` ✗`))}function fe(e){i.removePinned(e),r.deleteSession(e),c.success(u(`chat.sessionDeleted`))}let J=P(null),Y=s(()=>J.value?i.isPinned(J.value):!1),pe=s(()=>[{label:u(Y.value?`chat.unpin`:`chat.pin`),key:`pin`},{label:u(`chat.rename`),key:`rename`},{label:u(`chat.copySessionId`),key:`copy-id`}]);function X(e,t){e.preventDefault(),J.value=t,Z.value=!0,Q.value=e.clientX,$.value=e.clientY}let Z=P(!1),Q=P(0),$=P(0);function me(e){if(Z.value=!1,J.value){if(e===`pin`){i.togglePinned(J.value);return}if(e===`copy-id`)q(J.value);else if(e===`rename`){let e=r.sessions.find(e=>e.id===J.value);z.value=J.value,L.value=e?.title||``,N.value=!0,o(()=>{B.value?.focus()})}}}function he(){Z.value=!1}async function ge(){if(!(!z.value||!L.value.trim())){if(await F(z.value,L.value.trim())){let e=r.sessions.find(e=>e.id===z.value);e&&(e.title=L.value.trim()),r.activeSession?.id===z.value&&(r.activeSession.title=L.value.trim()),c.success(u(`chat.renamed`))}else c.error(u(`chat.renameFailed`));N.value=!1}}return(n,o)=>(l(),O(`div`,Vt,[g.value===`chat`?(l(),O(`div`,{key:0,class:I([`session-backdrop`,{active:_.value}]),onClick:o[0]||=e=>_.value=!1},null,2)):a(``,!0),g.value===`chat`?(l(),O(`aside`,{key:1,class:I([`session-list`,{collapsed:!_.value}])},[p(`div`,Ht,[_.value?(l(),O(`span`,Ut,T(S(u)(`chat.sessions`)),1)):a(``,!0),p(`div`,Wt,[p(`button`,{class:`session-close-btn`,onClick:o[1]||=e=>_.value=!1},[...o[8]||=[p(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),p(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]]),m(S(k),{quaternary:``,size:`tiny`,onClick:K,circle:``},{icon:h(()=>[...o[9]||=[p(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),p(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),_:1})])]),_.value?(l(),O(`div`,Gt,[S(r).isLoadingSessions&&S(r).sessions.length===0?(l(),O(`div`,Kt,T(S(u)(`common.loading`)),1)):S(r).sessions.length===0?(l(),O(`div`,qt,T(S(u)(`chat.noSessions`)),1)):a(``,!0),ce.value.length>0?(l(),O(H,{key:2},[p(`div`,Jt,[p(`span`,Yt,T(S(u)(`chat.pinned`)),1),p(`span`,Xt,T(ce.value.length),1)]),(l(!0),O(H,null,R(ce.value,e=>(l(),A(Bt,{key:`pinned-${e.id}`,session:e,active:e.id===S(r).activeSessionId,live:S(r).isSessionLive(e.id),pinned:!0,"can-delete":e.id!==S(r).activeSessionId||S(r).sessions.length>1,onSelect:t=>E(e.id),onContextmenu:t=>X(t,e.id),onDelete:t=>fe(e.id)},null,8,[`session`,`active`,`live`,`can-delete`,`onSelect`,`onContextmenu`,`onDelete`]))),128))],64)):a(``,!0),(l(!0),O(H,null,R(U.value,e=>(l(),O(H,{key:e.source},[p(`div`,{class:`session-group-header`,onClick:t=>le(e.source)},[(l(),O(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:I([`group-chevron`,{collapsed:V.value.has(e.source)}])},[...o[10]||=[p(`polyline`,{points:`9 18 15 12 9 6`},null,-1)]],2)),p(`span`,Qt,T(e.label),1),p(`span`,$t,T(e.sessions.length),1)],8,Zt),V.value.has(e.source)?a(``,!0):(l(!0),O(H,{key:0},R(e.sessions,e=>(l(),A(Bt,{key:e.id,session:e,active:e.id===S(r).activeSessionId,live:S(r).isSessionLive(e.id),pinned:!1,"can-delete":e.id!==S(r).activeSessionId||S(r).sessions.length>1,onSelect:t=>E(e.id),onContextmenu:t=>X(t,e.id),onDelete:t=>fe(e.id)},null,8,[`session`,`active`,`live`,`can-delete`,`onSelect`,`onContextmenu`,`onDelete`]))),128))],64))),128))])):a(``,!0)],2)):a(``,!0),m(S(e),{placement:`bottom-start`,trigger:`manual`,x:Q.value,y:$.value,options:pe.value,show:Z.value,onSelect:me,onClickoutside:he},null,8,[`x`,`y`,`options`,`show`]),m(S(C),{show:N.value,"onUpdate:show":o[3]||=e=>N.value=e,preset:`dialog`,title:S(u)(`chat.renameSession`),"positive-text":S(u)(`common.ok`),"negative-text":S(u)(`common.cancel`),onPositiveClick:ge},{default:h(()=>[m(S(d),{ref_key:`renameInputRef`,ref:B,value:L.value,"onUpdate:value":o[2]||=e=>L.value=e,placeholder:S(u)(`chat.enterNewTitle`),onKeydown:ne(ge,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`show`,`title`,`positive-text`,`negative-text`]),p(`div`,en,[p(`header`,tn,[p(`div`,nn,[g.value===`chat`?(l(),A(S(k),{key:0,quaternary:``,size:`small`,onClick:o[4]||=e=>_.value=!_.value,circle:``},{icon:h(()=>[...o[11]||=[p(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[p(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`}),p(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`}),p(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`}),p(`rect`,{x:`14`,y:`14`,width:`7`,height:`7`})],-1)]]),_:1})):a(``,!0),p(`span`,rn,T(de.value),1),W.value?(l(),O(`span`,an,T(S(G)(W.value)),1)):a(``,!0)]),p(`div`,on,[p(`div`,sn,[m(S(k),{size:`small`,type:g.value===`chat`?`primary`:`default`,"aria-pressed":g.value===`chat`,onClick:o[5]||=e=>D(`chat`)},{default:h(()=>[f(T(S(u)(`chat.chatMode`)),1)]),_:1},8,[`type`,`aria-pressed`]),m(S(k),{size:`small`,type:g.value===`live`?`primary`:`default`,"aria-pressed":g.value===`live`,onClick:o[6]||=e=>D(`live`)},{default:h(()=>[f(T(S(u)(`chat.liveMode`)),1)]),_:1},8,[`type`,`aria-pressed`])]),g.value===`chat`?(l(),O(H,{key:0},[m(S(t),{trigger:`hover`},{trigger:h(()=>[m(S(k),{quaternary:``,size:`small`,onClick:o[7]||=e=>q(),circle:``},{icon:h(()=>[...o[12]||=[p(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[p(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`}),p(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`})],-1)]]),_:1})]),default:h(()=>[f(` `+T(S(u)(`chat.copySessionId`)),1)]),_:1}),m(S(k),{size:`small`,circle:w.value,onClick:K},{icon:h(()=>[...o[13]||=[p(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),p(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),default:h(()=>[w.value?a(``,!0):(l(),O(H,{key:0},[f(T(S(u)(`chat.newChat`)),1)],64))]),_:1},8,[`circle`])],64)):a(``,!0)])]),g.value===`chat`?(l(),O(H,{key:0},[m(kt),m(ve)],64)):(l(),A(He,{key:1,"human-only":S(i).humanOnly},null,8,[`human-only`]))])]))}}),[[`__scopeId`,`data-v-ed01ae3e`]]),ln={class:`chat-view`},un=w(c({__name:`ChatView`,setup(e){let t=r(),n=te(),i=B();return ee(async()=>{t.loadModels(),await i.fetchProfiles(),n.loadSessions()}),(e,t)=>(l(),O(`div`,ln,[m(cn)]))}}),[[`__scopeId`,`data-v-6dae3628`]]);export{un as default}; \ No newline at end of file diff --git a/webui/assets/ChatView-DG5WMkBg.css b/webui/assets/ChatView-DG5WMkBg.css new file mode 100644 index 0000000000000000000000000000000000000000..d847c8f48d0f8a9b36e5da6cd34bb655c714694e --- /dev/null +++ b/webui/assets/ChatView-DG5WMkBg.css @@ -0,0 +1 @@ +[data-v-e8019954]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-e8019954]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.chat-input-area[data-v-e8019954]{border-top:1px solid var(--border-color);flex-shrink:0;padding:12px 20px 16px}.input-top-bar[data-v-e8019954]{align-items:center;gap:8px;padding:0 0 6px;display:flex}.context-info[data-v-e8019954]{color:var(--text-muted);font-size:11px}.context-info.context-warning[data-v-e8019954]{color:#e8a735}.context-bar[data-v-e8019954]{background:#80808033;border-radius:2px;width:60px;height:4px;overflow:hidden}.context-bar-fill[data-v-e8019954]{background:linear-gradient(90deg,#8080804d,#80808099);border-radius:2px;height:100%;transition:width .3s}.context-bar-fill.context-bar-warn[data-v-e8019954]{background:linear-gradient(90deg,#c98a1a,#e8a735)}.context-bar-fill.context-bar-danger[data-v-e8019954]{background:linear-gradient(90deg,#c43a2a,#e85d4a)}.attachment-previews[data-v-e8019954]{flex-wrap:wrap;gap:8px;padding:0 0 10px;display:flex}.attachment-preview[data-v-e8019954]{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:6px;position:relative;overflow:hidden}.attachment-preview.image[data-v-e8019954]{width:64px;height:64px}.attachment-thumb[data-v-e8019954]{object-fit:cover;width:100%;height:100%}.attachment-file[data-v-e8019954]{min-width:80px;max-width:140px;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:8px 12px;display:flex}.attachment-file .file-name[data-v-e8019954]{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:11px;overflow:hidden}.attachment-file .file-size[data-v-e8019954]{color:var(--text-muted);font-size:10px}.attachment-remove[data-v-e8019954]{width:18px;height:18px;color:var(--text-on-overlay);cursor:pointer;opacity:0;background:#00000080;border:none;border-radius:50%;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;top:2px;right:2px}.attachment-preview:hover .attachment-remove[data-v-e8019954]{opacity:1}.file-input-hidden[data-v-e8019954]{display:none}.input-wrapper[data-v-e8019954]{background-color:var(--bg-input);border:1px solid var(--border-color);border-radius:10px;align-items:center;gap:10px;padding:10px 12px;transition:border-color .15s,background-color .15s;display:flex}.input-wrapper[data-v-e8019954]:focus-within{border-color:var(--accent-primary)}.dark .input-wrapper[data-v-e8019954]{background-color:#333}.input-textarea[data-v-e8019954]{color:var(--text-primary);resize:none;background:0 0;border:none;outline:none;flex:1;min-height:20px;max-height:100px;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5;overflow-y:auto}.input-textarea[data-v-e8019954]::placeholder{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.input-actions[data-v-e8019954]{flex-shrink:0;align-items:center;gap:6px;display:flex}.input-wrapper.drag-over[data-v-e8019954]{border-color:var(--accent-info);background-color:rgba(var(--accent-info-rgb), .04);border-style:dashed}[data-v-be298d0d]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-be298d0d]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.conversation-monitor[data-v-be298d0d]{flex:1;min-height:0;display:flex}.conversation-monitor__sidebar[data-v-be298d0d]{border-right:1px solid var(--border-color);scrollbar-gutter:stable;flex-shrink:0;width:260px;overflow-y:auto}.conversation-monitor__sidebar[data-v-be298d0d]::-webkit-scrollbar{width:4px}.conversation-monitor__sidebar[data-v-be298d0d]::-webkit-scrollbar-thumb{background:rgba(var(--text-muted), .3);border-radius:4px}.conversation-monitor__sidebar[data-v-be298d0d]::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-muted), .5)}.conversation-monitor__session[data-v-be298d0d]{border:0;border-bottom:1px solid rgba(var(--border-color), .6);width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;padding:12px 14px}.conversation-monitor__session.active[data-v-be298d0d]{background:rgba(var(--accent-primary-rgb), .12);color:var(--text-primary);font-weight:500}.conversation-monitor__session.active .conversation-monitor__session-title[data-v-be298d0d]{color:var(--accent-primary)}.conversation-monitor__session-title-row[data-v-be298d0d],.conversation-monitor__detail-meta[data-v-be298d0d],.conversation-monitor__message-meta[data-v-be298d0d]{align-items:center;gap:6px;display:flex}.conversation-monitor__session-title[data-v-be298d0d],.conversation-monitor__detail-title[data-v-be298d0d]{font-weight:600}.conversation-monitor__session-live[data-v-be298d0d]{color:var(--accent-primary);font-size:11px}.conversation-monitor__session-meta[data-v-be298d0d],.conversation-monitor__session-preview[data-v-be298d0d],.conversation-monitor__detail-meta[data-v-be298d0d],.conversation-monitor__message-meta[data-v-be298d0d]{color:var(--text-muted);font-size:12px}.conversation-monitor__session-preview[data-v-be298d0d],.conversation-monitor__message-content[data-v-be298d0d]{white-space:pre-wrap;margin-top:6px}.conversation-monitor__detail[data-v-be298d0d]{flex-direction:column;flex:1;min-width:0;display:flex}.conversation-monitor__detail-header[data-v-be298d0d]{border-bottom:1px solid var(--border-color);padding:16px 20px}.conversation-monitor__messages[data-v-be298d0d]{flex-direction:column;flex:1;gap:12px;padding:16px 20px;display:flex;overflow-y:auto}.conversation-monitor__message[data-v-be298d0d]{background:rgba(var(--bg-secondary), .8);border-radius:10px;padding:12px 14px}.conversation-monitor__message.role-user[data-v-be298d0d]{border:1px solid rgba(var(--accent-primary), .18)}.conversation-monitor__message.role-assistant[data-v-be298d0d]{border:1px solid rgba(var(--border-color), .9)}.conversation-monitor__empty[data-v-be298d0d]{color:var(--text-muted);padding:24px}.conversation-monitor__empty--error[data-v-be298d0d]{color:var(--error)}@media (width<=768px){.conversation-monitor[data-v-be298d0d]{flex-direction:column}.conversation-monitor__sidebar[data-v-be298d0d]{border-right:0;border-bottom:1px solid var(--border-color);flex-shrink:0;width:100%;max-height:220px}.conversation-monitor__detail[data-v-be298d0d]{min-height:0;overflow:hidden}}[data-v-c7d0f76f]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-c7d0f76f]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.message[data-v-c7d0f76f]{flex-direction:column;display:flex}.message.user[data-v-c7d0f76f]{align-items:flex-end}.message.user .msg-body[data-v-c7d0f76f]{max-width:75%}.message.user .msg-content.user[data-v-c7d0f76f]{align-items:flex-end}.message.user .message-bubble[data-v-c7d0f76f]{background-color:var(--msg-user-bg);border-radius:10px}.message.assistant[data-v-c7d0f76f]{flex-direction:row;align-items:flex-start;gap:8px}.message.assistant .msg-body[data-v-c7d0f76f]{max-width:80%}.message.assistant .msg-avatar[data-v-c7d0f76f]{flex-shrink:0;width:40px;height:40px;margin-top:2px}.message.assistant .message-bubble[data-v-c7d0f76f]{background-color:var(--msg-assistant-bg);border-radius:10px}.message.tool[data-v-c7d0f76f],.message.system[data-v-c7d0f76f]{align-items:flex-start}.message.system .message-bubble.system[data-v-c7d0f76f]{border-left:3px solid var(--warning);background-color:rgba(var(--warning-rgb), .06);border-radius:6px;max-width:80%}.message.highlight .message-bubble[data-v-c7d0f76f]{box-shadow:0 0 0 1px rgba(var(--accent-primary-rgb), .45)}.msg-body[data-v-c7d0f76f]{align-items:flex-start;gap:8px;max-width:85%;display:flex}.msg-content[data-v-c7d0f76f]{flex-direction:column;min-width:0;display:flex}.message-bubble[data-v-c7d0f76f]{word-break:break-word;border-radius:10px;padding:10px 14px;font-size:14px;line-height:1.65}.msg-attachments[data-v-c7d0f76f]{flex-wrap:wrap;gap:8px;margin-bottom:8px;display:flex}.msg-attachment[data-v-c7d0f76f]{border:1px solid var(--border-light);background-color:#0000000a;border-radius:6px;overflow:hidden}.msg-attachment.image[data-v-c7d0f76f]{max-width:200px}.msg-attachment-thumb[data-v-c7d0f76f]{object-fit:contain;cursor:pointer;max-width:200px;max-height:160px;display:block}.msg-attachment-file[data-v-c7d0f76f]{color:var(--text-secondary);align-items:center;gap:6px;padding:6px 10px;font-size:12px;display:flex}.msg-attachment-file .att-name[data-v-c7d0f76f]{white-space:nowrap;text-overflow:ellipsis;max-width:160px;overflow:hidden}.msg-attachment-file .att-size[data-v-c7d0f76f]{color:var(--text-muted);flex-shrink:0;font-size:11px}.thinking-block[data-v-c7d0f76f]{border-bottom:1px dashed var(--border-light);margin-bottom:8px;padding:4px 0}.thinking-block .thinking-header[data-v-c7d0f76f]{color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:6px;align-items:center;gap:6px;padding:2px 4px;font-size:11px;display:flex}.thinking-block .thinking-header[data-v-c7d0f76f]:hover{background:#00000008}.thinking-block .thinking-chevron[data-v-c7d0f76f]{flex-shrink:0;transition:transform .15s}.thinking-block .thinking-chevron.rotated[data-v-c7d0f76f]{transform:rotate(90deg)}.thinking-block .thinking-icon[data-v-c7d0f76f]{flex-shrink:0;font-size:11px}.thinking-block .thinking-label[data-v-c7d0f76f]{flex-shrink:0;font-weight:500}.thinking-block .thinking-meta[data-v-c7d0f76f]{color:var(--text-muted);font-variant-numeric:tabular-nums}.thinking-block .thinking-body[data-v-c7d0f76f]{border-left:2px solid var(--border-light);opacity:.85;margin-top:6px;padding:6px 10px;font-size:13px;font-style:italic}.thinking-block .thinking-body[data-v-c7d0f76f] p{margin:.3em 0}.message-meta[data-v-c7d0f76f]{opacity:0;align-items:center;gap:6px;margin-top:4px;padding:0 4px;transition:opacity .15s;display:flex}.message:hover .message-meta[data-v-c7d0f76f]{opacity:1}.copy-bubble-btn[data-v-c7d0f76f]{width:24px;height:24px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:0;transition:color .15s,background .15s;display:flex}.copy-bubble-btn[data-v-c7d0f76f]:hover{color:var(--text-secondary);background:#0000000f}.dark .copy-bubble-btn[data-v-c7d0f76f]{color:#999}.dark .copy-bubble-btn[data-v-c7d0f76f]:hover{color:#ccc;background:#ffffff14}.message-time[data-v-c7d0f76f]{color:var(--text-muted);-webkit-user-select:none;user-select:none;font-size:11px}.dark .message-time[data-v-c7d0f76f]{color:#999}.tool-line[data-v-c7d0f76f]{color:var(--text-muted);border-radius:6px;align-items:center;gap:6px;padding:2px 4px;font-size:11px;display:flex}.tool-line.expandable[data-v-c7d0f76f]{cursor:pointer}.tool-line.expandable[data-v-c7d0f76f]:hover{background:#00000008}.tool-line .tool-name[data-v-c7d0f76f]{flex-shrink:0;font-family:JetBrains Mono,Fira Code,Consolas,monospace}.tool-line .tool-preview[data-v-c7d0f76f]{text-overflow:ellipsis;white-space:nowrap;max-width:400px;overflow:hidden}.tool-chevron[data-v-c7d0f76f]{flex-shrink:0;transition:transform .15s}.tool-chevron.rotated[data-v-c7d0f76f]{transform:rotate(90deg)}.tool-spinner[data-v-c7d0f76f]{border:1.5px solid var(--text-muted);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:10px;height:10px;animation:.6s linear infinite spin-c7d0f76f}.tool-error-badge[data-v-c7d0f76f]{color:var(--error);background:rgba(var(--error-rgb), .08);border-radius:3px;padding:0 4px;font-size:9px;line-height:14px}.tool-details[data-v-c7d0f76f]{border-left:2px solid var(--border-light);margin-top:2px;margin-left:16px;padding-left:10px}.tool-detail-section[data-v-c7d0f76f]{margin-bottom:6px}.tool-detail-label[data-v-c7d0f76f]{color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px;margin-bottom:2px;font-size:10px;font-weight:600}.tool-detail-code-block[data-v-c7d0f76f] .hljs-code-block{margin:0}.tool-detail-code-block[data-v-c7d0f76f] .code-header{background:#00000005}.tool-detail-code-block[data-v-c7d0f76f] code.hljs{white-space:pre-wrap;word-break:break-word;max-height:300px;font-size:11px;overflow-y:auto}@keyframes spin-c7d0f76f{to{transform:rotate(360deg)}}.streaming-cursor[data-v-c7d0f76f]{background-color:var(--text-muted);vertical-align:text-bottom;width:2px;height:1em;margin-left:2px;animation:.8s infinite blink-c7d0f76f;display:inline-block}.streaming-dots[data-v-c7d0f76f]{gap:4px;padding:4px 0;display:flex}.streaming-dots span[data-v-c7d0f76f]{background-color:var(--text-muted);border-radius:50%;width:6px;height:6px;animation:1.4s ease-in-out infinite pulse-c7d0f76f}.streaming-dots span[data-v-c7d0f76f]:nth-child(2){animation-delay:.2s}.streaming-dots span[data-v-c7d0f76f]:nth-child(3){animation-delay:.4s}@keyframes blink-c7d0f76f{0%,50%{opacity:1}51%,to{opacity:0}}@keyframes pulse-c7d0f76f{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.image-preview-overlay[data-v-c7d0f76f]{z-index:9999;cursor:pointer;background:#000000d9;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.image-preview-img[data-v-c7d0f76f]{object-fit:contain;border-radius:4px;max-width:90vw;max-height:90vh}@media (width<=768px){.message.user .msg-body[data-v-c7d0f76f],.message.assistant .msg-body[data-v-c7d0f76f],.message.system .msg-body[data-v-c7d0f76f]{max-width:100%}}[data-v-1bc92f44]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-1bc92f44]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.message-list[data-v-1bc92f44]{background-color:var(--bg-card);flex-direction:column;flex:1;gap:16px;padding:20px;display:flex;overflow-y:auto}.dark .message-list[data-v-1bc92f44]{background-color:#333}.empty-state[data-v-1bc92f44]{color:var(--text-muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;display:flex}.empty-state .empty-logo[data-v-1bc92f44]{opacity:.25;width:48px;height:48px}.empty-state p[data-v-1bc92f44]{font-size:14px}.fade-enter-active[data-v-1bc92f44],.fade-leave-active[data-v-1bc92f44]{transition:opacity .4s}.fade-enter-from[data-v-1bc92f44],.fade-leave-to[data-v-1bc92f44]{opacity:0}.streaming-indicator[data-v-1bc92f44]{align-items:flex-start;gap:12px;padding:4px;display:flex}.streaming-indicator .thinking-video[data-v-1bc92f44]{object-fit:contain;border-radius:10px;flex-shrink:0;width:120px;height:213px}.tool-calls-panel[data-v-1bc92f44]{scrollbar-width:none;-ms-overflow-style:none;flex-direction:column;gap:4px;max-height:213px;padding-top:4px;display:flex;overflow-y:auto}.tool-calls-panel[data-v-1bc92f44]::-webkit-scrollbar{display:none}.tool-call-item[data-v-1bc92f44]{color:var(--text-secondary);background:#00000008;border-radius:6px;align-items:center;gap:6px;padding:3px 8px;font-size:11px;display:flex}.dark .tool-call-item[data-v-1bc92f44]{background:#ffffff0f}.tool-call-item .tool-call-icon[data-v-1bc92f44]{color:var(--text-muted);flex-shrink:0}.tool-call-item .tool-call-name[data-v-1bc92f44]{flex-shrink:0;font-family:JetBrains Mono,Fira Code,Consolas,monospace}.tool-call-item .tool-call-preview[data-v-1bc92f44]{text-overflow:ellipsis;white-space:nowrap;max-width:300px;color:var(--text-muted);overflow:hidden}.tool-call-spinner[data-v-1bc92f44]{border:1.5px solid var(--text-muted);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:10px;height:10px;animation:.6s linear infinite spin-1bc92f44}.tool-call-error[data-v-1bc92f44]{color:var(--error);background:rgba(var(--error), .08);border-radius:3px;padding:0 4px;font-size:9px;line-height:14px}@keyframes spin-1bc92f44{to{transform:rotate(360deg)}}[data-v-ed01ae3e]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-ed01ae3e]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.chat-panel[data-v-ed01ae3e]{height:100%;display:flex;position:relative}.session-list[data-v-ed01ae3e]{border-right:1px solid var(--border-color);flex-direction:column;flex-shrink:0;width:220px;transition:width .25s,opacity .25s;display:flex;overflow:hidden}.session-list.collapsed[data-v-ed01ae3e]{opacity:0;pointer-events:none;border-right:none;width:0}@media (width<=768px){.session-list[data-v-ed01ae3e]{z-index:10;background:var(--bg-card);width:280px;height:100%;position:absolute;top:0;left:0;box-shadow:2px 0 8px #0000001a}.session-list.collapsed[data-v-ed01ae3e]{opacity:0;transform:translate(-100%)}.session-close-btn[data-v-ed01ae3e]{display:flex}.session-backdrop[data-v-ed01ae3e]{z-index:9;opacity:0;pointer-events:none;background:#0006;transition:opacity .15s;position:absolute;inset:0}.session-backdrop.active[data-v-ed01ae3e]{opacity:1;pointer-events:auto}}.session-list-header[data-v-ed01ae3e]{flex-shrink:0;justify-content:space-between;align-items:center;padding:12px;display:flex}.session-list-actions[data-v-ed01ae3e]{align-items:center;gap:4px;display:flex}.session-close-btn[data-v-ed01ae3e]{cursor:pointer;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;padding:4px;display:none}.session-close-btn[data-v-ed01ae3e]:hover{background:rgba(var(--accent-primary), .06)}.session-list-title[data-v-ed01ae3e]{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-size:12px;font-weight:600}.session-group-header[data-v-ed01ae3e]{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:4px;padding:6px 10px 4px;display:flex}.session-group-header--static[data-v-ed01ae3e]{cursor:default}.group-chevron[data-v-ed01ae3e]{flex-shrink:0;transition:transform .15s;transform:rotate(90deg)}.group-chevron.collapsed[data-v-ed01ae3e]{transform:rotate(0)}.session-group-label[data-v-ed01ae3e]{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-size:10px;font-weight:600}.session-group-count[data-v-ed01ae3e]{color:var(--text-muted);font-size:10px;font-weight:400}.session-items[data-v-ed01ae3e]{flex:1;padding:0 6px 12px;overflow-y:auto}.session-loading[data-v-ed01ae3e],.session-empty[data-v-ed01ae3e]{color:var(--text-muted);text-align:center;padding:16px 10px;font-size:12px}[data-v-ed01ae3e] .session-item{cursor:pointer;text-align:left;width:100%;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;justify-content:space-between;align-items:center;margin-bottom:2px;padding:8px 10px;transition:all .15s;display:flex}[data-v-ed01ae3e] .session-item:hover{background:rgba(var(--accent-primary), .06);color:var(--text-primary)}[data-v-ed01ae3e] .session-item:hover .session-item-delete{opacity:1}[data-v-ed01ae3e] .session-item.active{background:rgba(var(--accent-primary-rgb), .12);color:var(--text-primary);font-weight:500}[data-v-ed01ae3e] .session-item.active .session-item-title,[data-v-ed01ae3e] .session-item.live .session-item-title{color:var(--accent-primary)}[data-v-ed01ae3e] .session-item-content{flex:1;overflow:hidden}[data-v-ed01ae3e] .session-item-title-row{align-items:center;gap:6px;min-width:0;display:flex}[data-v-ed01ae3e] .session-item-title{white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-size:13px;display:block;overflow:hidden}[data-v-ed01ae3e] .session-item-active-indicator{color:var(--accent-primary);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}[data-v-ed01ae3e] .session-item-active-spinner{animation:1.1s linear infinite session-spin-ed01ae3e}[data-v-ed01ae3e] .session-item-live-badge{letter-spacing:.04em;text-transform:uppercase;color:var(--accent-primary);background:rgba(var(--accent-primary-rgb), .1);border-radius:999px;flex-shrink:0;align-items:center;gap:4px;padding:1px 7px;font-size:10px;font-weight:600;line-height:16px;display:inline-flex}[data-v-ed01ae3e] .live-dot{background:var(--accent-primary);border-radius:50%;width:6px;height:6px;animation:2s ease-in-out infinite live-pulse-ed01ae3e}@keyframes live-pulse-ed01ae3e{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}[data-v-ed01ae3e] .session-item-pin{color:var(--accent-primary);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}[data-v-ed01ae3e] .session-item-time{color:var(--text-muted);font-size:11px}[data-v-ed01ae3e] .session-item-meta{align-items:center;gap:6px;margin-top:2px;display:flex}[data-v-ed01ae3e] .session-item-model{color:var(--accent-primary);background:rgba(var(--accent-primary), .08);text-overflow:ellipsis;white-space:nowrap;border-radius:3px;flex-shrink:0;max-width:100px;padding:0 5px;font-size:10px;line-height:16px;overflow:hidden}[data-v-ed01ae3e] .session-item-delete{opacity:.5;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:3px;flex-shrink:0;padding:2px;transition:all .15s}[data-v-ed01ae3e] .session-item-delete:hover{color:var(--error);background:rgba(var(--error), .1)}@keyframes session-spin-ed01ae3e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.chat-main[data-v-ed01ae3e]{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.chat-header[data-v-ed01ae3e]{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;padding:21px 20px;display:flex}.header-left[data-v-ed01ae3e]{flex:1;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.header-session-title[data-v-ed01ae3e]{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:600;overflow:hidden}.source-badge[data-v-ed01ae3e]{color:var(--text-muted);background:rgba(var(--text-muted), .12);white-space:nowrap;border-radius:8px;flex-shrink:0;padding:1px 7px;font-size:10px;line-height:16px}.header-actions[data-v-ed01ae3e]{flex-shrink:0;align-items:center;gap:4px;display:flex}.chat-mode-toggle[data-v-ed01ae3e]{align-items:center;gap:4px;margin-right:4px;display:flex}@media (width<=768px){.chat-header[data-v-ed01ae3e]{padding:16px 12px 16px 52px}}.chat-view[data-v-6dae3628]{height:calc(100 * var(--vh));flex-direction:column;display:flex} diff --git a/webui/assets/Dropdown-ReirMLrI.js b/webui/assets/Dropdown-ReirMLrI.js new file mode 100644 index 0000000000000000000000000000000000000000..dc7545e275132481ae805ce29ebff2db892687a5 --- /dev/null +++ b/webui/assets/Dropdown-ReirMLrI.js @@ -0,0 +1,125 @@ +import{i as e,t}from"./create-EseJ7qR2.js";import{$n as n,B as r,Bn as i,Dr as a,Fr as o,H as s,Hn as c,Hr as l,Kr as u,L as d,Ln as f,Lr as p,Mn as m,Nn as h,On as g,Pn as _,R as v,Rr as y,S as b,Sn as x,T as S,Un as C,Vr as w,Xr as T,_r as E,ei as D,er as O,hn as k,in as A,ir as j,it as M,jn as N,kn as P,ni as F,nr as I,pn as L,ri as R,rn as z,rr as B,ti as V,tr as H,un as U,vn as W,wr as ee,yn as te,z as ne,zn as re,zr as G}from"./index-Cl8-DFW_.js";function ie(e={},t){let n=D({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:i}=e,a=e=>{switch(e.key){case`Control`:n.ctrl=!0;break;case`Meta`:n.command=!0,n.win=!0;break;case`Shift`:n.shift=!0;break;case`Tab`:n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(t=>{if(t!==e.key)return;let n=r[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},o=e=>{switch(e.key){case`Control`:n.ctrl=!1;break;case`Meta`:n.command=!1,n.win=!1;break;case`Shift`:n.shift=!1;break;case`Tab`:n.tab=!1;break}i!==void 0&&Object.keys(i).forEach(t=>{if(t!==e.key)return;let n=i[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},s=()=>{(t===void 0||t.value)&&(C(`keydown`,document,a),C(`keyup`,document,o)),t!==void 0&&T(t,e=>{e?(C(`keydown`,document,a),C(`keyup`,document,o)):(c(`keydown`,document,a),c(`keyup`,document,o))})};return re()?(w(s),l(()=>{(t===void 0||t.value)&&(c(`keydown`,document,a),c(`keyup`,document,o))})):s(),V(n)}function ae(e,t,n){if(!t)return e;let r=F(e.value),i=null;return T(e,e=>{i!==null&&window.clearTimeout(i),e===!0?n&&!n.value?r.value=!0:i=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function oe(e){return t=>{t?e.value=t.$el:e.value=null}}var K=o({name:`ChevronRight`,render(){return p(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},p(`path`,{d:`M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z`,fill:`currentColor`}))}}),q=_(`n-dropdown-menu`),J=_(`n-dropdown`),Y=_(`n-dropdown-option`),X=o({name:`DropdownDivider`,props:{clsPrefix:{type:String,required:!0}},render(){return p(`div`,{class:`${this.clsPrefix}-dropdown-divider`})}}),se=o({name:`DropdownGroupHeader`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){let{showIconRef:e,hasSubmenuRef:t}=y(q),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:i,renderOptionRef:a}=y(J);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:i,renderOption:a}},render(){let{clsPrefix:e,hasSubmenu:t,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:o}=this.tmNode,s=p(`div`,Object.assign({class:`${e}-dropdown-option`},r?.(o)),p(`div`,{class:`${e}-dropdown-option-body ${e}-dropdown-option-body--group`},p(`div`,{"data-dropdown-option":!0,class:[`${e}-dropdown-option-body__prefix`,n&&`${e}-dropdown-option-body__prefix--show-icon`]},U(o.icon)),p(`div`,{class:`${e}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(o):U(o.title??o[this.labelField])),p(`div`,{class:[`${e}-dropdown-option-body__suffix`,t&&`${e}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:o}):s}}),ce=O(`icon`,` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[I(`color-transition`,{transition:`color .3s var(--n-bezier)`}),I(`depth`,{color:`var(--n-color)`},[n(`svg`,{opacity:`var(--n-opacity)`,transition:`opacity .3s var(--n-bezier)`})]),n(`svg`,{height:`1em`,width:`1em`})]),Z=o({_n_icon__:!0,name:`Icon`,inheritAttrs:!1,props:Object.assign(Object.assign({},M.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=A(e),r=M(`Icon`,`-icon`,ce,b,e,t),i=a(()=>{let{depth:t}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value;if(t!==void 0){let{color:e,[`opacity${t}Depth`]:r}=i;return{"--n-bezier":n,"--n-color":e,"--n-opacity":r}}return{"--n-bezier":n,"--n-color":``,"--n-opacity":``}}),o=n?z(`icon`,a(()=>`${e.depth||`d`}`),i,e):void 0;return{mergedClsPrefix:t,mergedStyle:a(()=>{let{size:t,color:n}=e;return{fontSize:te(t),color:n}}),cssVars:n?void 0:i,themeClass:o?.themeClass,onRender:o?.onRender}},render(){let{$parent:e,depth:t,mergedClsPrefix:n,component:r,onRender:i,themeClass:a}=this;return e?.$options?._n_icon__&&W(`icon`,"don't wrap `n-icon` inside `n-icon`"),i?.(),p(`i`,G(this.$attrs,{role:`img`,class:[`${n}-icon`,a,{[`${n}-icon--depth`]:t,[`${n}-icon--color-transition`]:t!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?p(r):this.$slots)}});function Q(e,t){return e.type===`submenu`||e.type===void 0&&e[t]!==void 0}function le(e){return e.type===`group`}function $(e){return e.type===`divider`}function ue(e){return e.type===`render`}var de=o({name:`DropdownOption`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:`right-start`},props:Object,scrollable:Boolean},setup(t){let n=y(J),{hoverKeyRef:r,keyboardKeyRef:o,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:l,animatedRef:d,mergedShowRef:f,renderLabelRef:p,renderIconRef:m,labelFieldRef:h,childrenFieldRef:g,renderOptionRef:_,nodePropsRef:v,menuPropsRef:b}=n,x=y(Y,null),S=y(q),C=y(N),w=a(()=>t.tmNode.rawNode),T=a(()=>{let{value:e}=g;return Q(t.tmNode.rawNode,e)}),E=a(()=>{let{disabled:e}=t.tmNode;return e}),D=ae(a(()=>{if(!T.value)return!1;let{key:e,disabled:n}=t.tmNode;if(n)return!1;let{value:i}=r,{value:a}=o,{value:l}=s,{value:u}=c;return i===null?a===null?l===null?!1:u.includes(e):u.includes(e)&&u[u.length-1]!==e:u.includes(e)}),300,a(()=>o.value===null&&!d.value)),O=a(()=>!!x?.enteringSubmenuRef.value),k=F(!1);u(Y,{enteringSubmenuRef:k});function A(){k.value=!0}function j(){k.value=!1}function M(){let{parentKey:e,tmNode:n}=t;n.disabled||f.value&&(s.value=e,o.value=null,r.value=n.key)}function P(){let{tmNode:e}=t;e.disabled||f.value&&r.value!==e.key&&M()}function I(n){if(t.tmNode.disabled||!f.value)return;let{relatedTarget:i}=n;i&&!e({target:i},`dropdownOption`)&&!e({target:i},`scrollbarRail`)&&(r.value=null)}function L(){let{value:e}=T,{tmNode:r}=t;f.value&&!e&&!r.disabled&&(n.doSelect(r.key,r.rawNode),n.doUpdateShow(!1))}return{labelField:h,renderLabel:p,renderIcon:m,siblingHasIcon:S.showIconRef,siblingHasSubmenu:S.hasSubmenuRef,menuProps:b,popoverBody:C,animated:d,mergedShowSubmenu:a(()=>D.value&&!O.value),rawNode:w,hasSubmenu:T,pending:i(()=>{let{value:e}=c,{key:n}=t.tmNode;return e.includes(n)}),childActive:i(()=>{let{value:e}=l,{key:n}=t.tmNode,r=e.findIndex(e=>n===e);return r===-1?!1:r{let{value:e}=l,{key:n}=t.tmNode,r=e.findIndex(e=>n===e);return r===-1?!1:r===e.length-1}),mergedDisabled:E,renderOption:_,nodeProps:v,handleClick:L,handleMouseMove:P,handleMouseEnter:M,handleMouseLeave:I,handleSubmenuBeforeEnter:A,handleSubmenuAfterEnter:j}},render(){let{animated:e,rawNode:t,mergedShowSubmenu:n,clsPrefix:r,siblingHasIcon:i,siblingHasSubmenu:a,renderLabel:o,renderIcon:s,renderOption:c,nodeProps:l,props:u,scrollable:d}=this,f=null;if(n){let e=this.menuProps?.call(this,t,t.children);f=p(me,Object.assign({},e,{clsPrefix:r,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}let m={class:[`${r}-dropdown-option-body`,this.pending&&`${r}-dropdown-option-body--pending`,this.active&&`${r}-dropdown-option-body--active`,this.childActive&&`${r}-dropdown-option-body--child-active`,this.mergedDisabled&&`${r}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},h=l?.(t),_=p(`div`,Object.assign({class:[`${r}-dropdown-option`,h?.class],"data-dropdown-option":!0},h),p(`div`,G(m,u),[p(`div`,{class:[`${r}-dropdown-option-body__prefix`,i&&`${r}-dropdown-option-body__prefix--show-icon`]},[s?s(t):U(t.icon)]),p(`div`,{"data-dropdown-option":!0,class:`${r}-dropdown-option-body__label`},o?o(t):U(t[this.labelField]??t.title)),p(`div`,{"data-dropdown-option":!0,class:[`${r}-dropdown-option-body__suffix`,a&&`${r}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?p(Z,null,{default:()=>p(K,null)}):null)]),this.hasSubmenu?p(P,null,{default:()=>[p(g,null,{default:()=>p(`div`,{class:`${r}-dropdown-offset-container`},p(x,{show:this.mergedShowSubmenu,placement:this.placement,to:d&&this.popoverBody||void 0,teleportDisabled:!d},{default:()=>p(`div`,{class:`${r}-dropdown-menu-wrapper`},e?p(E,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:`fade-in-scale-up-transition`,appear:!0},{default:()=>f}):f)}))})]}):null);return c?c({node:_,option:t}):_}}),fe=o({name:`NDropdownGroup`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){let{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return p(ee,null,p(se,{clsPrefix:n,tmNode:e,key:e.key}),r?.map(e=>{let{rawNode:r}=e;return r.show===!1?null:$(r)?p(X,{clsPrefix:n,key:e.key}):e.isGroup?(W(`dropdown`,"`group` node is not allowed to be put in `group` node."),null):p(de,{clsPrefix:n,tmNode:e,parentKey:t,key:e.key})}))}}),pe=o({name:`DropdownRenderOption`,props:{tmNode:{type:Object,required:!0}},render(){let{rawNode:{render:e,props:t}}=this.tmNode;return p(`div`,t,[e?.()])}}),me=o({name:`DropdownMenu`,props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){let{renderIconRef:t,childrenFieldRef:n}=y(J);u(q,{showIconRef:a(()=>{let n=t.value;return e.tmNodes.some(e=>{if(e.isGroup)return e.children?.some(({rawNode:e})=>n?n(e):e.icon);let{rawNode:t}=e;return n?n(t):t.icon})}),hasSubmenuRef:a(()=>{let{value:t}=n;return e.tmNodes.some(e=>{if(e.isGroup)return e.children?.some(({rawNode:e})=>Q(e,t));let{rawNode:n}=e;return Q(n,t)})})});let r=F(null);return u(m,null),u(h,null),u(N,r),{bodyRef:r}},render(){let{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(r=>{let{rawNode:i}=r;return i.show===!1?null:ue(i)?p(pe,{tmNode:r,key:r.key}):$(i)?p(X,{clsPrefix:t,key:r.key}):le(i)?p(fe,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):p(de,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:n})});return p(`div`,{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:`bodyRef`},n?p(s,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?ne({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),he=O(`dropdown-menu`,` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[r(),O(`dropdown-option`,` + position: relative; + `,[n(`a`,` + text-decoration: none; + color: inherit; + outline: none; + `,[n(`&::before`,` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),O(`dropdown-option-body`,` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[n(`&::before`,` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),B(`disabled`,[I(`pending`,` + color: var(--n-option-text-color-hover); + `,[H(`prefix, suffix`,` + color: var(--n-option-text-color-hover); + `),n(`&::before`,`background-color: var(--n-option-color-hover);`)]),I(`active`,` + color: var(--n-option-text-color-active); + `,[H(`prefix, suffix`,` + color: var(--n-option-text-color-active); + `),n(`&::before`,`background-color: var(--n-option-color-active);`)]),I(`child-active`,` + color: var(--n-option-text-color-child-active); + `,[H(`prefix, suffix`,` + color: var(--n-option-text-color-child-active); + `)])]),I(`disabled`,` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),I(`group`,` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[H(`prefix`,` + width: calc(var(--n-option-prefix-width) / 2); + `,[I(`show-icon`,` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),H(`prefix`,` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[I(`show-icon`,` + width: var(--n-option-icon-prefix-width); + `),O(`icon`,` + font-size: var(--n-option-icon-size); + `)]),H(`label`,` + white-space: nowrap; + flex: 1; + z-index: 1; + `),H(`suffix`,` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[I(`has-submenu`,` + width: var(--n-option-icon-suffix-width); + `),O(`icon`,` + font-size: var(--n-option-icon-size); + `)]),O(`dropdown-menu`,`pointer-events: all;`)]),O(`dropdown-offset-container`,` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),O(`dropdown-divider`,` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),O(`dropdown-menu-wrapper`,` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),n(`>`,[O(`scrollbar`,` + height: inherit; + max-height: inherit; + `)]),B(`scrollable`,` + padding: var(--n-padding); + `),I(`scrollable`,[H(`content`,` + padding: var(--n-padding); + `)])]),ge={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:String,inverted:Boolean,placement:{type:String,default:`bottom`},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:`label`},keyField:{type:String,default:`key`},childrenField:{type:String,default:`children`},value:[String,Number]},_e=Object.keys(v),ve=o({name:`Dropdown`,inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},v),ge),M.props),setup(e){let n=F(!1),r=f(R(e,`show`),n),o=a(()=>{let{keyField:n,childrenField:r}=e;return t(e.options,{getKey(e){return e[n]},getDisabled(e){return e.disabled===!0},getIgnored(e){return e.type===`divider`||e.type===`render`},getChildren(e){return e[r]}})}),s=a(()=>o.value.treeNodes),c=F(null),l=F(null),d=F(null),p=a(()=>c.value??l.value??d.value??null),m=a(()=>o.value.getPath(p.value).keyPath),h=a(()=>o.value.getPath(e.value).keyPath),g=i(()=>e.keyboard&&r.value);ie({keydown:{ArrowUp:{prevent:!0,handler:P},ArrowRight:{prevent:!0,handler:N},ArrowDown:{prevent:!0,handler:I},ArrowLeft:{prevent:!0,handler:O},Enter:{prevent:!0,handler:L},Escape:D}},g);let{mergedClsPrefixRef:_,inlineThemeDisabled:v,mergedComponentPropsRef:y}=A(e),b=a(()=>e.size||y?.value?.Dropdown?.size||`medium`),x=M(`Dropdown`,`-dropdown`,he,S,e,_);u(J,{labelFieldRef:R(e,`labelField`),childrenFieldRef:R(e,`childrenField`),renderLabelRef:R(e,`renderLabel`),renderIconRef:R(e,`renderIcon`),hoverKeyRef:c,keyboardKeyRef:l,lastToggledSubmenuKeyRef:d,pendingKeyPathRef:m,activeKeyPathRef:h,animatedRef:R(e,`animated`),mergedShowRef:r,nodePropsRef:R(e,`nodeProps`),renderOptionRef:R(e,`renderOption`),menuPropsRef:R(e,`menuProps`),doSelect:C,doUpdateShow:w}),T(r,t=>{!e.animated&&!t&&E()});function C(t,n){let{onSelect:r}=e;r&&k(r,t,n)}function w(t){let{"onUpdate:show":r,onUpdateShow:i}=e;r&&k(r,t),i&&k(i,t),n.value=t}function E(){c.value=null,l.value=null,d.value=null}function D(){w(!1)}function O(){V(`left`)}function N(){V(`right`)}function P(){V(`up`)}function I(){V(`down`)}function L(){let e=B();e?.isLeaf&&r.value&&(C(e.key,e.rawNode),w(!1))}function B(){let{value:e}=o,{value:t}=p;return!e||t===null?null:e.getNode(t)??null}function V(e){let{value:t}=p,{value:{getFirstAvailableNode:n}}=o,r=null;if(t===null){let e=n();e!==null&&(r=e.key)}else{let t=B();if(t){let n;switch(e){case`down`:n=t.getNext();break;case`up`:n=t.getPrev();break;case`right`:n=t.getChild();break;case`left`:n=t.getParent();break}n&&(r=n.key)}}r!==null&&(c.value=null,l.value=r)}let H=a(()=>{let{inverted:t}=e,n=b.value,{common:{cubicBezierEaseInOut:r},self:i}=x.value,{padding:a,dividerColor:o,borderRadius:s,optionOpacityDisabled:c,[j(`optionIconSuffixWidth`,n)]:l,[j(`optionSuffixWidth`,n)]:u,[j(`optionIconPrefixWidth`,n)]:d,[j(`optionPrefixWidth`,n)]:f,[j(`fontSize`,n)]:p,[j(`optionHeight`,n)]:m,[j(`optionIconSize`,n)]:h}=i,g={"--n-bezier":r,"--n-font-size":p,"--n-padding":a,"--n-border-radius":s,"--n-option-height":m,"--n-option-prefix-width":f,"--n-option-icon-prefix-width":d,"--n-option-suffix-width":u,"--n-option-icon-suffix-width":l,"--n-option-icon-size":h,"--n-divider-color":o,"--n-option-opacity-disabled":c};return t?(g[`--n-color`]=i.colorInverted,g[`--n-option-color-hover`]=i.optionColorHoverInverted,g[`--n-option-color-active`]=i.optionColorActiveInverted,g[`--n-option-text-color`]=i.optionTextColorInverted,g[`--n-option-text-color-hover`]=i.optionTextColorHoverInverted,g[`--n-option-text-color-active`]=i.optionTextColorActiveInverted,g[`--n-option-text-color-child-active`]=i.optionTextColorChildActiveInverted,g[`--n-prefix-color`]=i.prefixColorInverted,g[`--n-suffix-color`]=i.suffixColorInverted,g[`--n-group-header-text-color`]=i.groupHeaderTextColorInverted):(g[`--n-color`]=i.color,g[`--n-option-color-hover`]=i.optionColorHover,g[`--n-option-color-active`]=i.optionColorActive,g[`--n-option-text-color`]=i.optionTextColor,g[`--n-option-text-color-hover`]=i.optionTextColorHover,g[`--n-option-text-color-active`]=i.optionTextColorActive,g[`--n-option-text-color-child-active`]=i.optionTextColorChildActive,g[`--n-prefix-color`]=i.prefixColor,g[`--n-suffix-color`]=i.suffixColor,g[`--n-group-header-text-color`]=i.groupHeaderTextColor),g}),U=v?z(`dropdown`,a(()=>`${b.value[0]}${e.inverted?`i`:``}`),H,e):void 0;return{mergedClsPrefix:_,mergedTheme:x,mergedSize:b,tmNodes:s,mergedShow:r,handleAfterLeave:()=>{e.animated&&E()},doUpdateShow:w,cssVars:v?void 0:H,themeClass:U?.themeClass,onRender:U?.onRender}},render(){let e=(e,t,n,r,i)=>{var a;let{mergedClsPrefix:o,menuProps:s}=this;(a=this.onRender)==null||a.call(this);let c=s?.(void 0,this.tmNodes.map(e=>e.rawNode))||{},l={ref:oe(t),class:[e,`${o}-dropdown`,`${o}-dropdown--${this.mergedSize}-size`,this.themeClass],clsPrefix:o,tmNodes:this.tmNodes,style:[...n,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:r,onMouseleave:i};return p(me,G(this.$attrs,l,c))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return p(d,Object.assign({},L(this.$props,_e),n),{trigger:()=>{var e;return(e=this.$slots).default?.call(e)}})}});export{Z as n,K as r,ve as t}; \ No newline at end of file diff --git a/webui/assets/FilesView-B0-Cm0Le.js b/webui/assets/FilesView-B0-Cm0Le.js new file mode 100644 index 0000000000000000000000000000000000000000..1afbf2158eedc1db270aa0439ebd91ae62f48598 --- /dev/null +++ b/webui/assets/FilesView-B0-Cm0Le.js @@ -0,0 +1,279 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cssMode-DoEY0nYG.js","assets/lspLanguageFeatures-ChEp7Hyv.js","assets/editor.api2-cJRsb5vn.js","assets/chunk-Dlc7tRH4.js","assets/editor-BVoRlxEN.css","assets/workers-C1QTB7PQ.js","assets/htmlMode-BhzpBkhJ.js","assets/jsonMode-BuT9RUwl.js","assets/freemarker2-DxpTGVfE.js","assets/handlebars-CiQm6Tfm.js","assets/html-7YxRD05_.js","assets/javascript-bRxVm489.js","assets/typescript-CVK17w93.js","assets/liquid-B3EoZCCH.js","assets/mdx-Bi_2NZxv.js","assets/python-Cg6U35xo.js","assets/razor-C5j4Bh-b.js","assets/xml-BU-TJ86q.js","assets/yaml-CSTQunUz.js"])))=>i.map(i=>d[i]); +import{r as e}from"./chunk-Dlc7tRH4.js";import{t}from"./preload-helper-CPuF8Owr.js";import{i as n,n as r,r as i,t as a}from"./create-EseJ7qR2.js";import{n as o,t as s}from"./Dropdown-ReirMLrI.js";import{t as c}from"./Upload-DNhu4d4-.js";import{t as l}from"./composables-DggaE5oy.js";import{t as u}from"./Space-BZigAtaW.js";import{$n as d,An as f,Ar as p,Bn as m,Br as h,Dr as g,F as _,Fr as v,G as y,Gn as b,Gr as x,H as S,Hr as C,J as w,Jn as ee,K as te,Kr as ne,Ln as re,Lr as T,M as ie,N as ae,Nr as E,O as oe,Or as D,Pn as se,Pr as O,Qr as k,Rr as ce,Sr as le,Un as ue,Ur as de,V as fe,Wn as pe,Wr as me,Xn as he,Xr as ge,Zn as _e,Zr as ve,ai as A,ar as ye,b as be,bn as xe,c as j,ci as M,cn as Se,dr as Ce,er as N,f as we,gr as Te,hn as P,in as Ee,ir as De,it as Oe,jr as F,k as I,kr as L,lr as R,ni as z,nn as ke,nr as B,nt as Ae,on as je,or as Me,ot as Ne,pr as Pe,qr as V,ri as H,rn as Fe,rr as U,tr as W,tt as Ie,u as Le,un as Re,ur as ze,wr as Be,xr as Ve,y as He}from"./index-Cl8-DFW_.js";import{a as Ue,c as We,i as Ge,l as Ke,n as qe,r as Je,t as Ye,u as G}from"./editor.api2-cJRsb5vn.js";import"./workers-C1QTB7PQ.js";import{t as Xe}from"./monaco.contribution-aeBG78B9.js";import{t as Ze}from"./clipboard-BulqpJ4r.js";import{a as Qe,t as $e}from"./MarkdownRenderer-P3bVUblX.js";function et(e){return typeof e==`string`?`s-${e}`:`n-${e}`}var tt=v({name:`Switcher`,render(){return T(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},T(`path`,{d:`M12 8l10 8l-10 8z`}))}}),nt=N(`breadcrumb`,` + white-space: nowrap; + cursor: default; + line-height: var(--n-item-line-height); +`,[d(`ul`,` + list-style: none; + padding: 0; + margin: 0; + `),d(`a`,` + color: inherit; + text-decoration: inherit; + `),N(`breadcrumb-item`,` + font-size: var(--n-font-size); + transition: color .3s var(--n-bezier); + display: inline-flex; + align-items: center; + `,[N(`icon`,` + font-size: 18px; + vertical-align: -.2em; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `),d(`&:not(:last-child)`,[B(`clickable`,[W(`link`,` + cursor: pointer; + `,[d(`&:hover`,` + background-color: var(--n-item-color-hover); + `),d(`&:active`,` + background-color: var(--n-item-color-pressed); + `)])])]),W(`link`,` + padding: 4px; + border-radius: var(--n-item-border-radius); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + color: var(--n-item-text-color); + position: relative; + `,[d(`&:hover`,` + color: var(--n-item-text-color-hover); + `,[N(`icon`,` + color: var(--n-item-text-color-hover); + `)]),d(`&:active`,` + color: var(--n-item-text-color-pressed); + `,[N(`icon`,` + color: var(--n-item-text-color-pressed); + `)])]),W(`separator`,` + margin: 0 8px; + color: var(--n-separator-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + `),d(`&:last-child`,[W(`link`,` + font-weight: var(--n-font-weight-active); + cursor: unset; + color: var(--n-item-text-color-active); + `,[N(`icon`,` + color: var(--n-item-text-color-active); + `)]),W(`separator`,` + display: none; + `)])])]),rt=se(`n-breadcrumb`),it=v({name:`Breadcrumb`,props:Object.assign(Object.assign({},Oe.props),{separator:{type:String,default:`/`}}),setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=Oe(`Breadcrumb`,`-breadcrumb`,nt,ie,e,t);ne(rt,{separatorRef:H(e,`separator`),mergedClsPrefixRef:t});let i=g(()=>{let{common:{cubicBezierEaseInOut:e},self:{separatorColor:t,itemTextColor:n,itemTextColorHover:i,itemTextColorPressed:a,itemTextColorActive:o,fontSize:s,fontWeightActive:c,itemBorderRadius:l,itemColorHover:u,itemColorPressed:d,itemLineHeight:f}}=r.value;return{"--n-font-size":s,"--n-bezier":e,"--n-item-text-color":n,"--n-item-text-color-hover":i,"--n-item-text-color-pressed":a,"--n-item-text-color-active":o,"--n-separator-color":t,"--n-item-color-hover":u,"--n-item-color-pressed":d,"--n-item-border-radius":l,"--n-font-weight-active":c,"--n-item-line-height":f}}),a=n?Fe(`breadcrumb`,void 0,i,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){var e;return(e=this.onRender)==null||e.call(this),T(`nav`,{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":`Breadcrumb`},T(`ul`,null,this.$slots))}});function at(e=f?window:null){let t=()=>{let{hash:t,host:n,hostname:r,href:i,origin:a,pathname:o,port:s,protocol:c,search:l}=e?.location||{};return{hash:t,host:n,hostname:r,href:i,origin:a,pathname:o,port:s,protocol:c,search:l}},n=z(t()),r=()=>{n.value=t()};return de(()=>{e&&(e.addEventListener(`popstate`,r),e.addEventListener(`hashchange`,r))}),me(()=>{e&&(e.removeEventListener(`popstate`,r),e.removeEventListener(`hashchange`,r))}),n}var ot=v({name:`BreadcrumbItem`,props:{separator:String,href:String,clickable:{type:Boolean,default:!0},showSeparator:{type:Boolean,default:!0},onClick:Function},slots:Object,setup(e,{slots:t}){let n=ce(rt,null);if(!n)return()=>null;let{separatorRef:r,mergedClsPrefixRef:i}=n,a=at(),o=g(()=>e.href?`a`:`span`),s=g(()=>a.value.href===e.href?`location`:null);return()=>{let{value:n}=i;return T(`li`,{class:[`${n}-breadcrumb-item`,e.clickable&&`${n}-breadcrumb-item--clickable`]},T(o.value,{class:`${n}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t),e.showSeparator&&T(`span`,{class:`${n}-breadcrumb-item__separator`,"aria-hidden":`true`},je(t.separator,()=>[e.separator??r.value])))}}}),st=se(`n-checkbox-group`);v({name:`CheckboxGroup`,props:{min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},setup(e){let{mergedClsPrefixRef:t}=Ee(e),n=ke(e),{mergedSizeRef:r,mergedDisabledRef:i}=n,a=z(e.defaultValue),o=re(g(()=>e.value),a),s=g(()=>o.value?.length||0),c=g(()=>Array.isArray(o.value)?new Set(o.value):new Set);function l(t,r){let{nTriggerFormInput:i,nTriggerFormChange:s}=n,{onChange:c,"onUpdate:value":l,onUpdateValue:u}=e;if(Array.isArray(o.value)){let e=Array.from(o.value),n=e.findIndex(e=>e===r);t?~n||(e.push(r),u&&P(u,e,{actionType:`check`,value:r}),l&&P(l,e,{actionType:`check`,value:r}),i(),s(),a.value=e,c&&P(c,e)):~n&&(e.splice(n,1),u&&P(u,e,{actionType:`uncheck`,value:r}),l&&P(l,e,{actionType:`uncheck`,value:r}),c&&P(c,e),a.value=e,i(),s())}else t?(u&&P(u,[r],{actionType:`check`,value:r}),l&&P(l,[r],{actionType:`check`,value:r}),c&&P(c,[r]),a.value=[r],i(),s()):(u&&P(u,[],{actionType:`uncheck`,value:r}),l&&P(l,[],{actionType:`uncheck`,value:r}),c&&P(c,[]),a.value=[],i(),s())}return ne(st,{checkedCountRef:s,maxRef:H(e,`max`),minRef:H(e,`min`),valueSetRef:c,disabledRef:i,mergedSizeRef:r,toggleCheckbox:l}),{mergedClsPrefix:t}},render(){return T(`div`,{class:`${this.mergedClsPrefix}-checkbox-group`,role:`group`},this.$slots)}});var ct=()=>T(`svg`,{viewBox:`0 0 64 64`,class:`check-icon`},T(`path`,{d:`M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z`})),lt=()=>T(`svg`,{viewBox:`0 0 100 100`,class:`line-icon`},T(`path`,{d:`M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z`})),ut=d([N(`checkbox`,` + font-size: var(--n-font-size); + outline: none; + cursor: pointer; + display: inline-flex; + flex-wrap: nowrap; + align-items: flex-start; + word-break: break-word; + line-height: var(--n-size); + --n-merged-color-table: var(--n-color-table); + `,[B(`show-label`,`line-height: var(--n-label-line-height);`),d(`&:hover`,[N(`checkbox-box`,[W(`border`,`border: var(--n-border-checked);`)])]),d(`&:focus:not(:active)`,[N(`checkbox-box`,[W(`border`,` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),B(`inside-table`,[N(`checkbox-box`,` + background-color: var(--n-merged-color-table); + `)]),B(`checked`,[N(`checkbox-box`,` + background-color: var(--n-color-checked); + `,[N(`checkbox-icon`,[d(`.check-icon`,` + opacity: 1; + transform: scale(1); + `)])])]),B(`indeterminate`,[N(`checkbox-box`,[N(`checkbox-icon`,[d(`.check-icon`,` + opacity: 0; + transform: scale(.5); + `),d(`.line-icon`,` + opacity: 1; + transform: scale(1); + `)])])]),B(`checked, indeterminate`,[d(`&:focus:not(:active)`,[N(`checkbox-box`,[W(`border`,` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),N(`checkbox-box`,` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[W(`border`,{border:`var(--n-border-checked)`})])]),B(`disabled`,{cursor:`not-allowed`},[B(`checked`,[N(`checkbox-box`,` + background-color: var(--n-color-disabled-checked); + `,[W(`border`,{border:`var(--n-border-disabled-checked)`}),N(`checkbox-icon`,[d(`.check-icon, .line-icon`,{fill:`var(--n-check-mark-color-disabled-checked)`})])])]),N(`checkbox-box`,` + background-color: var(--n-color-disabled); + `,[W(`border`,` + border: var(--n-border-disabled); + `),N(`checkbox-icon`,[d(`.check-icon, .line-icon`,` + fill: var(--n-check-mark-color-disabled); + `)])]),W(`label`,` + color: var(--n-text-color-disabled); + `)]),N(`checkbox-box-wrapper`,` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + -webkit-user-select: none; + `),N(`checkbox-box`,` + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + height: var(--n-size); + width: var(--n-size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color 0.3s var(--n-bezier); + `,[W(`border`,` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--n-border); + `),N(`checkbox-icon`,` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[d(`.check-icon, .line-icon`,` + width: 100%; + fill: var(--n-check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--n-bezier), + transform 0.3s var(--n-bezier), + opacity 0.3s var(--n-bezier), + border-color 0.3s var(--n-bezier); + `),w({left:`1px`,top:`1px`})])]),W(`label`,` + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + `,[d(`&:empty`,{display:`none`})])]),ye(N(`checkbox`,` + --n-merged-color-table: var(--n-color-table-modal); + `)),Me(N(`checkbox`,` + --n-merged-color-table: var(--n-color-table-popover); + `))]),dt=v({name:`Checkbox`,props:Object.assign(Object.assign({},Oe.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),setup(e){let t=ce(st,null),n=z(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedRtlRef:a,mergedComponentPropsRef:o}=Ee(e),s=z(e.defaultChecked),c=re(H(e,`checked`),s),l=m(()=>{if(t){let n=t.valueSetRef.value;return n&&e.value!==void 0?n.has(e.value):!1}else return c.value===e.checkedValue}),u=ke(e,{mergedSize(n){let{size:r}=e;if(r!==void 0)return r;if(t){let{value:e}=t.mergedSizeRef;if(e!==void 0)return e}if(n){let{mergedSize:e}=n;if(e!==void 0)return e.value}return o?.value?.Checkbox?.size||`medium`},mergedDisabled(n){let{disabled:r}=e;if(r!==void 0)return r;if(t){if(t.disabledRef.value)return!0;let{maxRef:{value:e},checkedCountRef:n}=t;if(e!==void 0&&n.value>=e&&!l.value)return!0;let{minRef:{value:r}}=t;if(r!==void 0&&n.value<=r&&l.value)return!0}return n?n.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:f}=u,p=Oe(`Checkbox`,`-checkbox`,ut,oe,e,r);function h(n){if(t&&e.value!==void 0)t.toggleCheckbox(!l.value,e.value);else{let{onChange:t,"onUpdate:checked":r,onUpdateChecked:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=u,c=l.value?e.uncheckedValue:e.checkedValue;r&&P(r,c,n),i&&P(i,c,n),t&&P(t,c,n),a(),o(),s.value=c}}function _(e){d.value||h(e)}function v(e){if(!d.value)switch(e.key){case` `:case`Enter`:h(e)}}function y(e){switch(e.key){case` `:e.preventDefault()}}let b={focus:()=>{var e;(e=n.value)==null||e.focus()},blur:()=>{var e;(e=n.value)==null||e.blur()}},x=Ne(`Checkbox`,a,r),S=g(()=>{let{value:e}=f,{common:{cubicBezierEaseInOut:t},self:{borderRadius:n,color:r,colorChecked:i,colorDisabled:a,colorTableHeader:o,colorTableHeaderModal:s,colorTableHeaderPopover:c,checkMarkColor:l,checkMarkColorDisabled:u,border:d,borderFocus:m,borderDisabled:h,borderChecked:g,boxShadowFocus:_,textColor:v,textColorDisabled:y,checkMarkColorDisabledChecked:b,colorDisabledChecked:x,borderDisabledChecked:S,labelPadding:C,labelLineHeight:w,labelFontWeight:ee,[De(`fontSize`,e)]:te,[De(`size`,e)]:ne}}=p.value;return{"--n-label-line-height":w,"--n-label-font-weight":ee,"--n-size":ne,"--n-bezier":t,"--n-border-radius":n,"--n-border":d,"--n-border-checked":g,"--n-border-focus":m,"--n-border-disabled":h,"--n-border-disabled-checked":S,"--n-box-shadow-focus":_,"--n-color":r,"--n-color-checked":i,"--n-color-table":o,"--n-color-table-modal":s,"--n-color-table-popover":c,"--n-color-disabled":a,"--n-color-disabled-checked":x,"--n-text-color":v,"--n-text-color-disabled":y,"--n-check-mark-color":l,"--n-check-mark-color-disabled":u,"--n-check-mark-color-disabled-checked":b,"--n-font-size":te,"--n-label-padding":C}}),C=i?Fe(`checkbox`,g(()=>f.value[0]),S,e):void 0;return Object.assign(u,b,{rtlEnabled:x,selfRef:n,mergedClsPrefix:r,mergedDisabled:d,renderedChecked:l,mergedTheme:p,labelId:pe(),handleClick:_,handleKeyUp:v,handleKeyDown:y,cssVars:i?void 0:S,themeClass:C?.themeClass,onRender:C?.onRender})},render(){var e;let{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:i,privateInsideTable:a,cssVars:o,labelId:s,label:c,mergedClsPrefix:l,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:p}=this;(e=this.onRender)==null||e.call(this);let m=Se(t.default,e=>c||e?T(`span`,{class:`${l}-checkbox__label`,id:s},c||e):null);return T(`div`,{ref:`selfRef`,class:[`${l}-checkbox`,this.themeClass,this.rtlEnabled&&`${l}-checkbox--rtl`,n&&`${l}-checkbox--checked`,r&&`${l}-checkbox--disabled`,i&&`${l}-checkbox--indeterminate`,a&&`${l}-checkbox--inside-table`,m&&`${l}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:`checkbox`,"aria-checked":i?`mixed`:n,"aria-labelledby":s,style:o,onKeyup:d,onKeydown:f,onClick:p,onMousedown:()=>{ue(`selectstart`,window,e=>{e.preventDefault()},{once:!0})}},T(`div`,{class:`${l}-checkbox-box-wrapper`},`\xA0`,T(`div`,{class:`${l}-checkbox-box`},T(Ie,null,{default:()=>this.indeterminate?T(`div`,{key:`indeterminate`,class:`${l}-checkbox-icon`},lt()):T(`div`,{key:`check`,class:`${l}-checkbox-icon`},ct())}),T(`div`,{class:`${l}-checkbox-box__border`}))),m)}}),ft=se(`n-tree-select`);function pt({position:e,offsetLevel:t,indent:n,el:r}){let i={position:`absolute`,boxSizing:`border-box`,right:0};if(e===`inside`)i.left=0,i.top=0,i.bottom=0,i.borderRadius=`inherit`,i.boxShadow=`inset 0 0 0 2px var(--n-drop-mark-color)`;else{let a=e===`before`?`top`:`bottom`;i[a]=0,i.left=`${r.offsetLeft+6-t*n}px`,i.height=`2px`,i.backgroundColor=`var(--n-drop-mark-color)`,i.transformOrigin=a,i.borderRadius=`1px`,i.transform=e===`before`?`translateY(-4px)`:`translateY(4px)`}return T(`div`,{style:i})}function mt({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!==`inside`}var ht=se(`n-tree`);function gt({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:i,handleCheck:a,handleSelect:o,handleSwitcherClick:s}){let{value:c}=r,l=ce(ft,null),u=l?l.pendingNodeKeyRef:z(c.length?c[c.length-1]:null);function d(r){if(!e.keyboard)return{enterBehavior:null};let{value:c}=u,l=null;if(c===null){if((r.key===`ArrowDown`||r.key===`ArrowUp`)&&r.preventDefault(),[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`].includes(r.key)&&c===null){let{value:e}=t,n=0;for(;ne.key===c);if(!~f)return{enterBehavior:null};if(r.key===`Enter`){let t=d[f];switch(l=e.overrideDefaultNodeClickBehavior?.call(e,{option:t.rawNode})||null,l){case`toggleCheck`:a(t,!i.value.includes(t.key));break;case`toggleSelect`:o(t);break;case`toggleExpand`:s(t);break;case`none`:break;default:l=`default`,o(t)}}else if(r.key===`ArrowDown`)for(r.preventDefault(),f+=1;f=0;){if(!d[f].disabled){u.value=d[f].key;break}--f}else if(r.key===`ArrowLeft`){let e=d[f];if(e.isLeaf||!n.value.includes(c)){let t=e.getParent();t&&(u.value=t.key)}else s(e)}else if(r.key===`ArrowRight`){let e=d[f];if(e.isLeaf)return{enterBehavior:null};if(!n.value.includes(c))s(e);else for(f+=1;f{let{clsPrefix:r,expanded:i,hide:a,indent:o,onClick:s}=e;return T(`span`,{"data-switcher":!0,class:[`${r}-tree-node-switcher`,i&&`${r}-tree-node-switcher--expanded`,a&&`${r}-tree-node-switcher--hide`],style:{width:`${o}px`},onClick:s},T(`div`,{class:`${r}-tree-node-switcher__icon`},T(Ie,null,{default:()=>{if(e.loading)return T(y,Object.assign({clsPrefix:r,key:`loading`,radius:85,strokeWidth:20},n?.value));let{value:i}=t;return i?i({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):T(Ae,{clsPrefix:r,key:`switcher`},{default:()=>T(tt,null)})}})))}}});function bt(e){return g(()=>e.leafOnly?`child`:e.checkStrategy)}function xt(e,t){return!!e.rawNode[t]}function St(e,t,n,r){e?.forEach(e=>{n(e),St(e[t],t,n,r),r(e)})}function Ct(e,t,n,r,i){let a=new Set,o=new Set,s=[];return St(e,r,e=>{if(s.push(e),i(t,e)){o.add(e[n]);for(let e=s.length-2;e>=0;--e)if(!a.has(s[e][n]))a.add(s[e][n]);else return}},()=>{s.pop()}),{expandedKeys:Array.from(a),highlightKeySet:o}}if(f&&Image){let e=new Image;e.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`}function wt(e,t,n,r,i){let a=new Set,o=new Set,s=new Set,c=[],l=[],u=[];function d(e){e.forEach(e=>{if(u.push(e),t(n,e)){a.add(e[r]),s.add(e[r]);for(let e=u.length-2;e>=0;--e){let t=u[e][r];if(!o.has(t))o.add(t),a.has(t)&&a.delete(t);else break}}let c=e[i];c&&d(c),u.pop()})}d(e);function f(e,t){e.forEach(e=>{let n=e[r],s=a.has(n),l=o.has(n);if(!s&&!l)return;let u=e[i];if(u)if(s)t.push(e);else{c.push(n);let r=Object.assign(Object.assign({},e),{[i]:[]});t.push(r),f(u,r[i])}else t.push(e)})}return f(e,l),{filteredTree:l,highlightKeySet:s,expandedKeys:c}}var Tt=v({name:`TreeNode`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){let t=ce(ht),{droppingNodeParentRef:r,droppingMouseNodeRef:i,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:c,indentRef:l,blockLineRef:u,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:p,showLineRef:h,renderSwitcherIconRef:_,overrideDefaultNodeClickBehaviorRef:v}=t,y=m(()=>!!e.tmNode.rawNode.checkboxDisabled),x=m(()=>xt(e.tmNode,p.value)),S=m(()=>t.disabledRef.value||x.value),C=g(()=>{let{value:t}=c;if(t)return t({option:e.tmNode.rawNode})}),w=z(null),ee={value:null};de(()=>{ee.value=w.value.$el});function te(){let n=()=>{let{tmNode:n}=e;if(!n.isLeaf&&!n.shallowLoaded){if(!t.loadingKeysRef.value.has(n.key))t.loadingKeysRef.value.add(n.key);else return;let{onLoadRef:{value:e}}=t;e&&e(n.rawNode).then(e=>{e!==!1&&t.handleSwitcherClick(n)}).finally(()=>{t.loadingKeysRef.value.delete(n.key)})}else t.handleSwitcherClick(n)};_.value?setTimeout(n,0):n()}let ne=m(()=>!x.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!==`child`||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),re=m(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!==`child`||e.tmNode.isLeaf)),ie=m(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),ae=m(()=>{let{value:t}=re;if(!t)return!1;let{value:n}=f,{tmNode:r}=e;return typeof n==`boolean`?!r.disabled&&n:n(e.tmNode.rawNode)});function E(r){let{value:i}=t.expandOnClickRef,{value:a}=ne,{value:o}=ae;if(!a&&!i&&!o||n(r,`checkbox`)||n(r,`switcher`))return;let{tmNode:s}=e;a&&t.handleSelect(s),i&&!s.isLeaf&&te(),o&&O(!ie.value)}function oe(r){var i,a;if(!(n(r,`checkbox`)||n(r,`switcher`))){if(!S.value){let n=v.value,i=!1;if(n)switch(n({option:e.tmNode.rawNode})){case`toggleCheck`:i=!0,O(!ie.value);break;case`toggleSelect`:i=!0,t.handleSelect(e.tmNode);break;case`toggleExpand`:i=!0,te(),i=!0;break;case`none`:i=!0,i=!0;return;default:break}i||E(r)}(a=(i=C.value)?.onClick)==null||a.call(i,r)}}function D(e){u.value||oe(e)}function se(e){u.value&&oe(e)}function O(n){t.handleCheck(e.tmNode,n)}function k(n){t.handleDragStart({event:n,node:e.tmNode})}function le(n){n.currentTarget===n.target&&t.handleDragEnter({event:n,node:e.tmNode})}function ue(n){n.preventDefault(),t.handleDragOver({event:n,node:e.tmNode})}function fe(n){t.handleDragEnd({event:n,node:e.tmNode})}function pe(n){n.currentTarget===n.target&&t.handleDragLeave({event:n,node:e.tmNode})}function me(n){n.preventDefault(),o.value!==null&&t.handleDrop({event:n,node:e.tmNode,dropPosition:o.value})}let he=g(()=>{let{clsPrefix:t}=e,{value:n}=l;if(h.value){let r=[],i=e.tmNode.parent;for(;i;)i.isLastChild?r.push(T(`div`,{class:`${t}-tree-node-indent`},T(`div`,{style:{width:`${n}px`}}))):r.push(T(`div`,{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`]},T(`div`,{style:{width:`${n}px`}}))),i=i.parent;return r.reverse()}else return b(e.tmNode.level,T(`div`,{class:`${e.clsPrefix}-tree-node-indent`},T(`div`,{style:{width:`${n}px`}})))});return{showDropMark:m(()=>{let{value:t}=a;if(!t)return;let{value:n}=o;if(!n)return;let{value:r}=i;if(!r)return;let{tmNode:s}=e;return s.key===r.key}),showDropMarkAsParent:m(()=>{let{value:t}=r;if(!t)return!1;let{tmNode:n}=e,{value:i}=o;return i===`before`||i===`after`?t.key===n.key:!1}),pending:m(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:m(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:m(()=>t.highlightKeySetRef.value?.has(e.tmNode.key)),checked:ie,indeterminate:m(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:m(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:m(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:S,checkable:re,mergedCheckOnClick:ae,checkboxDisabled:y,selectable:ne,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:u,nodeProps:C,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:l,checkboxPlacement:d,showLine:h,contentInstRef:w,contentElRef:ee,indentNodes:he,handleCheck:O,handleDrop:me,handleDragStart:k,handleDragEnter:le,handleDragOver:ue,handleDragEnd:fe,handleDragLeave:pe,handleLineClick:se,handleContentClick:D,handleSwitcherClick:te}},render(){let{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:i,selected:a,checked:o,highlight:s,draggable:c,blockLine:l,indent:u,indentNodes:d,disabled:f,pending:p,internalScrollable:m,nodeProps:h,checkboxPlacement:g}=this,_=c&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,v=m?et(e.key):void 0,y=g===`right`,b=n?T(_t,{indent:u,right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return T(`div`,Object.assign({class:`${t}-tree-node-wrapper`},_),T(`div`,Object.assign({},l?h:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:a,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:s,[`${t}-tree-node--pending`]:p,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:i,[`${t}-tree-node--clickable`]:i||r||this.mergedCheckOnClick},h?.class],"data-key":v,draggable:c&&l,onClick:this.handleLineClick,onDragstart:c&&l&&!f?this.handleDragStart:void 0}),d,e.isLeaf&&this.showLine?T(`div`,{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},T(`div`,{style:{width:`${u}px`}})):T(yt,{clsPrefix:t,expanded:this.expanded,selected:a,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:u,onClick:this.handleSwitcherClick}),y?null:b,T(vt,{ref:`contentInstRef`,clsPrefix:t,checked:o,selected:a,onClick:this.handleContentClick,nodeProps:l?void 0:h,onDragstart:c&&!l&&!f?this.handleDragStart:void 0,tmNode:e}),c?this.showDropMark?pt({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:u}):this.showDropMarkAsParent?pt({el:this.contentElRef.value,position:`inside`,offsetLevel:this.droppingOffsetLevel,indent:u}):null:null,y?b:null))}}),Et=v({name:`TreeMotionWrapper`,props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){let{clsPrefix:e}=this;return T(te,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode===`collapse`},{default:()=>T(`div`,{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:_e(this.height)}},this.nodes.map(t=>T(Tt,{clsPrefix:e,tmNode:t})))})}}),Dt=w(),Ot=N(`tree`,` + font-size: var(--n-font-size); + outline: none; +`,[d(`ul, li`,` + margin: 0; + padding: 0; + list-style: none; + `),d(`>`,[N(`tree-node`,[d(`&:first-child`,`margin-top: 0;`)])]),N(`tree-motion-wrapper`,[B(`expand`,[_({duration:`0.2s`})]),B(`collapse`,[_({duration:`0.2s`,reverse:!0})])]),N(`tree-node-wrapper`,` + box-sizing: border-box; + padding: var(--n-node-wrapper-padding); + `),N(`tree-node`,` + position: relative; + display: flex; + border-radius: var(--n-node-border-radius); + transition: background-color .3s var(--n-bezier); + `,[B(`highlight`,[N(`tree-node-content`,[W(`text`,`border-bottom-color: var(--n-node-text-color-disabled);`)])]),B(`disabled`,[N(`tree-node-content`,` + color: var(--n-node-text-color-disabled); + cursor: not-allowed; + `)]),U(`disabled`,[B(`clickable`,[N(`tree-node-content`,` + cursor: pointer; + `)])])]),B(`block-node`,[N(`tree-node-content`,` + flex: 1; + min-width: 0; + `)]),U(`block-line`,[N(`tree-node`,[U(`disabled`,[N(`tree-node-content`,[d(`&:hover`,`background: var(--n-node-color-hover);`)]),B(`selectable`,[N(`tree-node-content`,[d(`&:active`,`background: var(--n-node-color-pressed);`)])]),B(`pending`,[N(`tree-node-content`,` + background: var(--n-node-color-hover); + `)]),B(`selected`,[N(`tree-node-content`,`background: var(--n-node-color-active);`)])]),B(`selected`,[N(`tree-node-content`,`background: var(--n-node-color-active);`)])])]),B(`block-line`,[N(`tree-node`,[U(`disabled`,[d(`&:hover`,`background: var(--n-node-color-hover);`),B(`pending`,` + background: var(--n-node-color-hover); + `),B(`selectable`,[U(`selected`,[d(`&:active`,`background: var(--n-node-color-pressed);`)])]),B(`selected`,`background: var(--n-node-color-active);`)]),B(`selected`,`background: var(--n-node-color-active);`),B(`disabled`,` + cursor: not-allowed; + `)])]),B(`ellipsis`,[N(`tree-node`,[N(`tree-node-content`,` + overflow: hidden; + `,[W(`text`,` + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + `)])])]),N(`tree-node-indent`,` + flex-grow: 0; + flex-shrink: 0; + `,[B(`show-line`,`position: relative`,[d(`&::before`,` + position: absolute; + left: 50%; + border-left: 1px solid var(--n-line-color); + transition: border-color .3s var(--n-bezier); + transform: translate(-50%); + content: ""; + top: var(--n-line-offset-top); + bottom: var(--n-line-offset-bottom); + `),B(`last-child`,[d(`&::before`,` + bottom: 50%; + `)]),B(`is-leaf`,[d(`&::after`,` + position: absolute; + content: ""; + left: calc(50% + 0.5px); + right: 0; + bottom: 50%; + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-line-color); + `)])]),U(`show-line`,`height: 0;`)]),N(`tree-node-switcher`,` + cursor: pointer; + display: inline-flex; + flex-shrink: 0; + height: var(--n-node-content-height); + align-items: center; + justify-content: center; + transition: transform .15s var(--n-bezier); + vertical-align: bottom; + `,[W(`icon`,` + position: relative; + height: 14px; + width: 14px; + display: flex; + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + font-size: 14px; + `,[N(`icon`,[Dt]),N(`base-loading`,` + color: var(--n-loading-color); + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Dt]),N(`base-icon`,[Dt])]),B(`hide`,`visibility: hidden;`),B(`expanded`,`transform: rotate(90deg);`)]),N(`tree-node-checkbox`,` + display: inline-flex; + height: var(--n-node-content-height); + vertical-align: bottom; + align-items: center; + justify-content: center; + `),N(`tree-node-content`,` + user-select: none; + position: relative; + display: inline-flex; + align-items: center; + min-height: var(--n-node-content-height); + box-sizing: border-box; + line-height: var(--n-line-height); + vertical-align: bottom; + padding: 0 6px 0 4px; + cursor: default; + border-radius: var(--n-node-border-radius); + color: var(--n-node-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[d(`&:last-child`,`margin-bottom: 0;`),W(`prefix`,` + display: inline-flex; + margin-right: 8px; + `),W(`text`,` + border-bottom: 1px solid #0000; + transition: border-color .3s var(--n-bezier); + flex-grow: 1; + max-width: 100%; + `),W(`suffix`,` + display: inline-flex; + `)]),W(`empty`,`margin: auto;`)]),kt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function At(e,t,n,r){return{getIsGroup(){return!1},getKey(t){return t[e]},getChildren:r||(e=>e[t]),getDisabled(e){return!!(e[n]||e.checkboxDisabled)}}}var jt={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:`key`},labelField:{type:String,default:`label`},childrenField:{type:String,default:`children`},disabledField:{type:String,default:`disabled`},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:24},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},Mt=v({name:`Tree`,props:Object.assign(Object.assign(Object.assign(Object.assign({},Oe.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:``},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,allowDrop:{type:Function,default:mt},animated:{type:Boolean,default:!0},ellipsis:Boolean,checkboxPlacement:{type:String,default:`left`},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),jt),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:`all`},spinProps:Object,leafOnly:Boolean}),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o,mergedComponentPropsRef:s}=Ee(e),c=Ne(`Tree`,o,t),l=Oe(`Tree`,`-tree`,Ot,we,e,t),u=g(()=>s?.value?.Tree?.renderEmpty),d=z(null),f=z(null),p=z(null);function m(){return p.value?.listElRef}function _(){return p.value?.itemsElRef}let v=g(()=>{let{filter:t}=e;if(t)return t;let{labelField:n}=e;return(e,t)=>{if(!e.length)return!0;let r=t[n];return typeof r==`string`?r.toLowerCase().includes(e.toLowerCase()):!1}}),y=g(()=>{let{pattern:t}=e;return!t||!t.length||!v.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:wt(e.data,v.value,t,e.keyField,e.childrenField)}),b=g(()=>a(e.showIrrelevantNodes?e.data:y.value.filteredTree,At(e.keyField,e.childrenField,e.disabledField,e.getChildren))),x=ce(ft,null),S=e.internalTreeSelect?x.dataTreeMate:g(()=>e.showIrrelevantNodes?b.value:a(e.data,At(e.keyField,e.childrenField,e.disabledField,e.getChildren))),{watchProps:C}=e,w=z([]);C?.includes(`defaultCheckedKeys`)?ve(()=>{w.value=e.defaultCheckedKeys}):w.value=e.defaultCheckedKeys;let te=re(H(e,`checkedKeys`),w),T=g(()=>S.value.getCheckedKeys(te.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),ie=bt(e),ae=g(()=>T.value.checkedKeys),E=g(()=>{let{indeterminateKeys:t}=e;return t===void 0?T.value.indeterminateKeys:t}),oe=z([]);C?.includes(`defaultSelectedKeys`)?ve(()=>{oe.value=e.defaultSelectedKeys}):oe.value=e.defaultSelectedKeys;let D=re(H(e,`selectedKeys`),oe),se=z([]),O=t=>{se.value=e.defaultExpandAll?S.value.getNonLeafKeys():t===void 0?e.defaultExpandedKeys:t};C?.includes(`defaultExpandedKeys`)?ve(()=>{O(void 0)}):ve(()=>{O(e.defaultExpandedKeys)});let k=re(H(e,`expandedKeys`),se),le=g(()=>b.value.getFlattenedNodes(k.value)),{pendingNodeKeyRef:ue,handleKeydown:de}=gt({props:e,mergedCheckedKeysRef:te,mergedSelectedKeysRef:D,fNodesRef:le,mergedExpandedKeysRef:k,handleCheck:Je,handleSelect:Xe,handleSwitcherClick:G}),fe=null,pe=null,me=z(new Set),A=re(g(()=>e.internalHighlightKeySet||y.value.highlightKeySet),me),ye=z(new Set),be=g(()=>k.value.filter(e=>!ye.value.has(e))),xe=0,j=z(null),M=z(null),Se=z(null),Ce=z(null),N=z(0),Te=g(()=>{let{value:e}=M;return e?e.parent:null}),De=!1;ge(H(e,`data`),()=>{De=!0,h(()=>{De=!1}),ye.value.clear(),ue.value=null,We()},{deep:!1});let F=!1,I=()=>{F=!0,h(()=>{F=!1})},L;ge(H(e,`pattern`),(t,n)=>{if(e.showIrrelevantNodes)if(L=void 0,t){let{expandedKeys:t,highlightKeySet:n}=Ct(e.data,e.pattern,e.keyField,e.childrenField,v.value);me.value=n,I(),U(t,V(t),{node:null,action:`filter`})}else me.value=new Set;else if(!t.length)L!==void 0&&(I(),U(L,V(L),{node:null,action:`filter`}));else{n.length||(L=k.value);let{expandedKeys:e}=y.value;e!==void 0&&(I(),U(e,V(e),{node:null,action:`filter`}))}});function R(t){return kt(this,void 0,void 0,function*(){let{onLoad:n}=e;if(!n){yield Promise.resolve();return}let{value:r}=ye;if(!r.has(t.key)){r.add(t.key);try{(yield n(t.rawNode))===!1&&qe()}catch(e){console.error(e),qe()}r.delete(t.key)}})}ve(()=>{var e;let{value:t}=b;if(!t)return;let{getNode:n}=t;(e=k.value)==null||e.forEach(e=>{let t=n(e);t&&!t.shallowLoaded&&R(t)})});let ke=z(!1),B=z([]);ge(be,(t,n)=>{if(!e.animated||F){h(Me);return}if(De)return;let i=ee(l.value.self.nodeHeight),a=new Set(n),o=null,s=null;for(let e of t)if(!a.has(e)){if(o!==null)return;o=e}let c=new Set(t);for(let e of n)if(!c.has(e)){if(s!==null)return;s=e}if(o===null&&s===null)return;let{virtualScroll:u}=e,f=(u?p.value.listElRef:d.value).offsetHeight,m=Math.ceil(f/i)+1,g;if(o!==null&&(g=n),s!==null&&(g=g===void 0?t:g.filter(e=>e!==s)),ke.value=!0,B.value=b.value.getFlattenedNodes(g),o!==null){let e=B.value.findIndex(e=>e.key===o);if(~e){let n=B.value[e].children;if(n){let a=r(n,t);B.value.splice(e+1,0,{__motion:!0,mode:`expand`,height:u?a.length*i:void 0,nodes:u?a.slice(0,m):a})}}}if(s!==null){let e=B.value.findIndex(e=>e.key===s);if(~e){let n=B.value[e].children;if(!n)return;ke.value=!0;let a=r(n,t);B.value.splice(e+1,0,{__motion:!0,mode:`collapse`,height:u?a.length*i:void 0,nodes:u?a.slice(0,m):a})}}});let Ae=g(()=>i(le.value)),je=g(()=>ke.value?B.value:le.value);function Me(){let{value:e}=f;e&&e.sync()}function Pe(){ke.value=!1,e.virtualScroll&&h(Me)}function V(e){let{getNode:t}=S.value;return e.map(e=>t(e)?.rawNode||null)}function U(t,n,r){let{"onUpdate:expandedKeys":i,onUpdateExpandedKeys:a}=e;se.value=t,i&&P(i,t,n,r),a&&P(a,t,n,r)}function W(t,n,r){let{"onUpdate:checkedKeys":i,onUpdateCheckedKeys:a}=e;w.value=t,a&&P(a,t,n,r),i&&P(i,t,n,r)}function Ie(t,n){let{"onUpdate:indeterminateKeys":r,onUpdateIndeterminateKeys:i}=e;r&&P(r,t,n),i&&P(i,t,n)}function Le(t,n,r){let{"onUpdate:selectedKeys":i,onUpdateSelectedKeys:a}=e;oe.value=t,a&&P(a,t,n,r),i&&P(i,t,n,r)}function Re(t){let{onDragenter:n}=e;n&&P(n,t)}function ze(t){let{onDragleave:n}=e;n&&P(n,t)}function Be(t){let{onDragend:n}=e;n&&P(n,t)}function Ve(t){let{onDragstart:n}=e;n&&P(n,t)}function He(t){let{onDragover:n}=e;n&&P(n,t)}function Ue(t){let{onDrop:n}=e;n&&P(n,t)}function We(){Ge(),Ke()}function Ge(){j.value=null}function Ke(){N.value=0,M.value=null,Se.value=null,Ce.value=null,qe()}function qe(){fe&&=(window.clearTimeout(fe),null),pe=null}function Je(t,n){if(e.disabled||xt(t,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Xe(t);return}let r=n?`check`:`uncheck`,{checkedKeys:i,indeterminateKeys:a}=S.value[r](t.key,ae.value,{cascade:e.cascade,checkStrategy:ie.value,allowNotLoaded:e.allowCheckingNotLoaded});W(i,V(i),{node:t.rawNode,action:r}),Ie(a,V(a))}function Ye(t){if(e.disabled)return;let{key:n}=t,{value:r}=k,i=r.findIndex(e=>e===n);if(~i){let e=Array.from(r);e.splice(i,1),U(e,V(e),{node:t.rawNode,action:`collapse`})}else{let i=b.value.getNode(n);if(!i||i.isLeaf)return;let a;if(e.accordion){let e=new Set(t.siblings.map(({key:e})=>e));a=r.filter(t=>!e.has(t)),a.push(n)}else a=r.concat(n);U(a,V(a),{node:t.rawNode,action:`expand`})}}function G(t){e.disabled||ke.value||Ye(t)}function Xe(t){if(!(e.disabled||!e.selectable)){if(ue.value=t.key,e.internalUnifySelectCheck){let{value:{checkedKeys:n,indeterminateKeys:r}}=T;e.multiple?Je(t,!(n.includes(t.key)||r.includes(t.key))):W([t.key],V([t.key]),{node:t.rawNode,action:`check`})}if(e.multiple){let n=Array.from(D.value),r=n.findIndex(e=>e===t.key);~r?e.cancelable&&n.splice(r,1):~r||n.push(t.key),Le(n,V(n),{node:t.rawNode,action:~r?`unselect`:`select`})}else D.value.includes(t.key)?e.cancelable&&Le([],[],{node:t.rawNode,action:`unselect`}):Le([t.key],V([t.key]),{node:t.rawNode,action:`select`})}}function Ze(e){if(fe&&=(window.clearTimeout(fe),null),e.isLeaf)return;pe=e.key;let t=()=>{if(pe!==e.key)return;let{value:t}=Se;if(t&&t.key===e.key&&!k.value.includes(e.key)){let t=k.value.concat(e.key);U(t,V(t),{node:e.rawNode,action:`expand`})}fe=null,pe=null};fe=e.shallowLoaded?window.setTimeout(()=>{t()},1e3):window.setTimeout(()=>{R(e).then(()=>{t()})},1e3)}function Qe({event:t,node:n}){!e.draggable||e.disabled||xt(n,e.disabledField)||(it({event:t,node:n},!1),Re({event:t,node:n.rawNode}))}function $e({event:t,node:n}){!e.draggable||e.disabled||xt(n,e.disabledField)||ze({event:t,node:n.rawNode})}function tt(e){e.target===e.currentTarget&&Ke()}function nt({event:t,node:n}){We(),!(!e.draggable||e.disabled||xt(n,e.disabledField))&&Be({event:t,node:n.rawNode})}function rt({event:t,node:n}){!e.draggable||e.disabled||xt(n,e.disabledField)||(xe=t.clientX,j.value=n,Ve({event:t,node:n.rawNode}))}function it({event:t,node:n},r=!0){if(!e.draggable||e.disabled||xt(n,e.disabledField))return;let{value:i}=j;if(!i)return;let{allowDrop:a,indent:o}=e;r&&He({event:t,node:n.rawNode});let{height:s,top:c}=t.currentTarget.getBoundingClientRect(),l=t.clientY-c,u;u=a({node:n.rawNode,dropPosition:`inside`,phase:`drag`})?l<=8?`before`:l>=s-8?`after`:`inside`:l<=s/2?`before`:`after`;let{value:d}=Ae,f,p,m=d(n.key);if(m===null){Ke();return}let h=!1;u===`inside`?(f=n,p=`inside`):u===`before`?n.isFirstChild?(f=n,p=`before`):(f=le.value[m-1],p=`after`):(f=n,p=`after`),!f.isLeaf&&k.value.includes(f.key)&&(h=!0,p===`after`&&(f=le.value[m+1],f?p=`before`:(f=n,p=`inside`)));let g=f;if(Se.value=g,!h&&i.isLastChild&&i.key===f.key&&(p=`after`),p===`after`){let e=xe-t.clientX,n=0;for(;e>=o/2&&f.parent!==null&&f.isLastChild&&n<1;)e-=o,n+=1,f=f.parent;N.value=n}else N.value=0;if((i.contains(f)||p===`inside`&&i.parent?.key===f.key)&&!(i.key===g.key&&i.key===f.key)){Ke();return}if(!a({node:f.rawNode,dropPosition:p,phase:`drag`})){Ke();return}if(i.key===f.key)qe();else if(pe!==f.key)if(p===`inside`){if(e.expandOnDragenter){if(Ze(f),!f.shallowLoaded&&pe!==f.key){We();return}}else if(!f.shallowLoaded){We();return}}else qe();else p!==`inside`&&qe();Ce.value=p,M.value=f}function at({event:t,node:n,dropPosition:r}){if(!e.draggable||e.disabled||xt(n,e.disabledField))return;let{value:i}=j,{value:a}=M,{value:o}=Ce;if(!(!i||!a||!o)&&e.allowDrop({node:a.rawNode,dropPosition:o,phase:`drag`})&&i.key!==a.key){if(o===`before`){let e=i.getNext({includeDisabled:!0});if(e&&e.key===a.key){Ke();return}}if(o===`after`){let e=i.getPrev({includeDisabled:!0});if(e&&e.key===a.key){Ke();return}}Ue({event:t,node:a.rawNode,dragNode:i.rawNode,dropPosition:r}),We()}}function ot(){Me()}function st(){Me()}function ct(t){if(e.virtualScroll||e.internalScrollable){let{value:e}=f;if((e?.containerRef)?.contains(t.relatedTarget))return;ue.value=null}else{let{value:e}=d;if(e?.contains(t.relatedTarget))return;ue.value=null}}ge(ue,t=>{var n;if(t!==null){if(e.virtualScroll)(n=p.value)==null||n.scrollTo({key:t});else if(e.internalScrollable){let{value:e}=f;if(e===null)return;let n=e.contentRef?.querySelector(`[data-key="${et(t)}"]`);if(!n)return;e.scrollTo({el:n})}}}),ne(ht,{loadingKeysRef:ye,highlightKeySetRef:A,displayedCheckedKeysRef:ae,displayedIndeterminateKeysRef:E,mergedSelectedKeysRef:D,mergedExpandedKeysRef:k,mergedThemeRef:l,mergedCheckStrategyRef:ie,nodePropsRef:H(e,`nodeProps`),disabledRef:H(e,`disabled`),checkableRef:H(e,`checkable`),selectableRef:H(e,`selectable`),expandOnClickRef:H(e,`expandOnClick`),onLoadRef:H(e,`onLoad`),draggableRef:H(e,`draggable`),blockLineRef:H(e,`blockLine`),indentRef:H(e,`indent`),cascadeRef:H(e,`cascade`),checkOnClickRef:H(e,`checkOnClick`),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Se,droppingNodeParentRef:Te,draggingNodeRef:j,droppingPositionRef:Ce,droppingOffsetLevelRef:N,fNodesRef:le,pendingNodeKeyRef:ue,showLineRef:H(e,`showLine`),disabledFieldRef:H(e,`disabledField`),internalScrollableRef:H(e,`internalScrollable`),internalCheckboxFocusableRef:H(e,`internalCheckboxFocusable`),internalTreeSelect:e.internalTreeSelect,renderLabelRef:H(e,`renderLabel`),renderPrefixRef:H(e,`renderPrefix`),renderSuffixRef:H(e,`renderSuffix`),renderSwitcherIconRef:H(e,`renderSwitcherIcon`),labelFieldRef:H(e,`labelField`),multipleRef:H(e,`multiple`),overrideDefaultNodeClickBehaviorRef:H(e,`overrideDefaultNodeClickBehavior`),spinPropsRef:H(e,`spinProps`),handleSwitcherClick:G,handleDragEnd:nt,handleDragEnter:Qe,handleDragLeave:$e,handleDragStart:rt,handleDrop:at,handleDragOver:it,handleSelect:Xe,handleCheck:Je});function lt(e,t){var n,r;typeof e==`number`?(n=p.value)==null||n.scrollTo(e,t||0):(r=p.value)==null||r.scrollTo(e)}let ut={handleKeydown:de,scrollTo:lt,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};let{checkedKeys:t}=T.value;return{keys:t,options:V(t)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};let{indeterminateKeys:t}=T.value;return{keys:t,options:V(t)}}},dt=g(()=>{let{common:{cubicBezierEaseInOut:e},self:{fontSize:t,nodeBorderRadius:n,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:a,arrowColor:o,loadingColor:s,nodeTextColor:c,nodeTextColorDisabled:u,dropMarkColor:d,nodeWrapperPadding:f,nodeHeight:p,lineHeight:m,lineColor:h}}=l.value,g=he(f,`top`),_=he(f,`bottom`),v=_e(ee(p)-ee(g)-ee(_));return{"--n-arrow-color":o,"--n-loading-color":s,"--n-bezier":e,"--n-font-size":t,"--n-node-border-radius":n,"--n-node-color-active":a,"--n-node-color-hover":r,"--n-node-color-pressed":i,"--n-node-text-color":c,"--n-node-text-color-disabled":u,"--n-drop-mark-color":d,"--n-node-wrapper-padding":f,"--n-line-offset-top":`-${g}`,"--n-line-offset-bottom":`-${_}`,"--n-node-content-height":v,"--n-line-height":m,"--n-line-color":h}}),pt=n?Fe(`tree`,void 0,dt,e):void 0;return Object.assign(Object.assign({},ut),{mergedClsPrefix:t,mergedTheme:l,mergedRenderEmpty:u,rtlEnabled:c,fNodes:je,aip:ke,selfElRef:d,virtualListInstRef:p,scrollbarInstRef:f,handleFocusout:ct,handleDragLeaveTree:tt,handleScroll:ot,getScrollContainer:m,getScrollContent:_,handleAfterEnter:Pe,handleResize:st,cssVars:n?void 0:dt,themeClass:pt?.themeClass,onRender:pt?.onRender})},render(){var e;let{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();let{mergedClsPrefix:r,blockNode:i,blockLine:a,draggable:o,disabled:s,ellipsis:c,internalFocusable:l,checkable:u,handleKeydown:d,rtlEnabled:f,handleFocusout:p,scrollbarProps:m}=this,h=l&&!s,g=h?`0`:void 0,_=[`${r}-tree`,f&&`${r}-tree--rtl`,u&&`${r}-tree--checkable`,(a||i)&&`${r}-tree--block-node`,a&&`${r}-tree--block-line`,c&&`${r}-tree--ellipsis`],v=e=>`__motion`in e?T(Et,{height:e.height,nodes:e.nodes,clsPrefix:r,mode:e.mode,onAfterEnter:this.handleAfterEnter}):T(Tt,{key:e.key,tmNode:e,clsPrefix:r});if(this.virtualScroll){let{mergedTheme:e,internalScrollablePadding:n}=this,i=he(n||`0`);return T(S,Object.assign({},m,{ref:`scrollbarInstRef`,onDragleave:o?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:_,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,tabindex:g,onKeydown:h?d:void 0,onFocusout:h?p:void 0}),{default:()=>{var n;return(n=this.onRender)==null||n.call(this),t.length?T(xe,{ref:`virtualListInstRef`,items:this.fNodes,itemSize:ee(e.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:i.top,paddingBottom:i.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:i.left,paddingRight:i.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:e})=>v(e)}):je(this.$slots.empty,()=>[this.mergedRenderEmpty?.call(this)||T(fe,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}let{internalScrollable:y}=this;return _.push(this.themeClass),(e=this.onRender)==null||e.call(this),y?T(S,Object.assign({},m,{class:_,tabindex:g,onKeydown:h?d:void 0,onFocusout:h?p:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>T(`div`,{onDragleave:o?this.handleDragLeaveTree:void 0,ref:`selfElRef`},this.fNodes.map(v))}):T(`div`,{class:_,tabindex:g,ref:`selfElRef`,style:this.cssVars,onKeydown:h?d:void 0,onFocusout:h?p:void 0,onDragleave:o?this.handleDragLeaveTree:void 0},t.length?t.map(v):je(this.$slots.empty,()=>[this.mergedRenderEmpty?.call(this)||T(fe,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});async function Nt(e=``){let t=new URLSearchParams;e&&t.set(`path`,e);let n=t.toString();return Pe(`/api/hermes/files/list${n?`?${n}`:``}`)}async function Pt(e){return Pe(`/api/hermes/files/read?path=${encodeURIComponent(e)}`)}async function Ft(e,t){await Pe(`/api/hermes/files/write`,{method:`PUT`,body:JSON.stringify({path:e,content:t})})}async function It(e,t=!1){await Pe(`/api/hermes/files/delete`,{method:`DELETE`,body:JSON.stringify({path:e,recursive:t})})}async function Lt(e,t){await Pe(`/api/hermes/files/rename`,{method:`POST`,body:JSON.stringify({oldPath:e,newPath:t})})}async function Rt(e){await Pe(`/api/hermes/files/mkdir`,{method:`POST`,body:JSON.stringify({path:e})})}async function zt(e,t){await Pe(`/api/hermes/files/copy`,{method:`POST`,body:JSON.stringify({srcPath:e,destPath:t})})}async function Bt(e,t){let n=Ce(),r=new FormData;for(let e of t)r.append(`file`,e);let i=new URLSearchParams;e&&i.set(`path`,e);let a=i.toString(),o=`${n}/api/hermes/files/upload${a?`?${a}`:``}`,s={},c=ze();c&&(s.Authorization=`Bearer ${c}`);let l=await fetch(o,{method:`POST`,headers:s,body:r});if(!l.ok){let e=await l.json().catch(()=>({error:`HTTP ${l.status}`}));throw Error(e.error||`Upload failed: ${l.status}`)}return(await l.json()).files}function Vt(e,t){let n=Ce(),r=new URLSearchParams({path:e});t&&r.set(`name`,t);let i=ze();return i&&r.set(`token`,i),`${n}/api/hermes/download?${r.toString()}`}var Ht={".js":`javascript`,".jsx":`javascript`,".ts":`typescript`,".tsx":`typescript`,".json":`json`,".jsonc":`json`,".html":`html`,".htm":`html`,".css":`css`,".scss":`scss`,".less":`less`,".md":`markdown`,".markdown":`markdown`,".py":`python`,".yaml":`yaml`,".yml":`yaml`,".xml":`xml`,".sh":`shell`,".bash":`shell`,".zsh":`shell`,".sql":`sql`,".go":`go`,".rs":`rust`,".java":`java`,".c":`c`,".h":`c`,".cpp":`cpp`,".hpp":`cpp`,".toml":`ini`,".ini":`ini`,".env":`ini`,".vue":`html`,".dockerfile":`dockerfile`,".graphql":`graphql`,".lua":`lua`,".r":`r`,".rb":`ruby`,".php":`php`,".swift":`swift`,".kt":`kotlin`};function Ut(e){let t=e.split(`/`).pop()||``;return t===`Dockerfile`?`dockerfile`:t===`Makefile`?`makefile`:Ht[`.`+t.split(`.`).pop()?.toLowerCase()]||`plaintext`}var Wt=new Set([`.png`,`.jpg`,`.jpeg`,`.gif`,`.svg`,`.webp`,`.bmp`,`.ico`]);function Gt(e){let t=e.lastIndexOf(`.`);return t>=0?e.slice(t).toLowerCase():``}function Kt(e){return Wt.has(Gt(e))}function qt(e){let t=Gt(e);return t===`.md`||t===`.markdown`}function Jt(e){return!new Set(`.png,.jpg,.jpeg,.gif,.webp,.bmp,.ico,.zip,.gz,.tar,.7z,.rar,.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.mp3,.mp4,.wav,.webm,.avi,.mov,.exe,.dll,.so,.dylib,.bin,.dat,.db,.sqlite`.split(`,`)).has(Gt(e))}function Yt(e,t,n){return!!(e===t||n&&e.startsWith(t+`/`))}var Xt=Te(`files`,()=>{let e=z(``),t=z([]),n=z(!1),r=z(`name`),i=z(`asc`),a=z(null),o=z(null),s=g(()=>e.value?e.value.split(`/`).filter(Boolean):[]),c=g(()=>{let e=[...t.value];return e.sort((e,t)=>{if(e.isDir!==t.isDir)return e.isDir?-1:1;let n=0;switch(r.value){case`name`:n=e.name.localeCompare(t.name);break;case`size`:n=e.size-t.size;break;case`modTime`:n=e.modTime.localeCompare(t.modTime);break}return i.value===`asc`?n:-n}),e});async function l(r){r!==void 0&&r!==e.value&&(o.value=null),r!==void 0&&(e.value=r),n.value=!0;try{t.value=(await Nt(e.value)).entries}catch(e){throw console.error(`Failed to fetch files:`,e),e}finally{n.value=!1}}function u(e){return l(e)}function d(){let t=e.value.split(`/`).filter(Boolean);return t.pop(),l(t.join(`/`))}async function f(e){let t=await Pt(e);a.value={path:e,content:t.content,originalContent:t.content,language:Ut(e)}}async function p(){a.value&&(await Ft(a.value.path,a.value.content),a.value.originalContent=a.value.content)}function m(){a.value=null}async function h(e){if(Kt(e.name))o.value={path:e.path,type:`image`};else if(qt(e.name)){let t=await Pt(e.path);o.value={path:e.path,type:`markdown`,content:t.content}}}function _(){o.value=null}async function v(t){await Rt(e.value?`${e.value}/${t}`:t),await l()}async function y(t){await Ft(e.value?`${e.value}/${t}`:t,``),await l()}async function b(e){await It(e.path,e.isDir),o.value&&Yt(o.value.path,e.path,e.isDir)&&(o.value=null),a.value&&Yt(a.value.path,e.path,e.isDir)&&(a.value=null),await l()}async function x(e,t){let n=e.path.includes(`/`)?e.path.slice(0,e.path.lastIndexOf(`/`)):``,r=n?`${n}/${t}`:t;await Lt(e.path,r),o.value&&Yt(o.value.path,e.path,e.isDir)&&(o.value=null),a.value&&Yt(a.value.path,e.path,e.isDir)&&(a.value=null),await l()}async function S(e,t){await zt(e.path,t),await l()}async function C(t){await Bt(e.value,t),await l()}function w(e){r.value===e?i.value=i.value===`asc`?`desc`:`asc`:(r.value=e,i.value=`asc`)}return{currentPath:e,entries:t,loading:n,sortBy:r,sortOrder:i,editingFile:a,previewFile:o,pathSegments:s,sortedEntries:c,hasUnsavedChanges:g(()=>a.value?a.value.content!==a.value.originalContent:!1),fetchEntries:l,navigateTo:u,navigateUp:d,openEditor:f,saveEditor:p,closeEditor:m,openPreview:h,closePreview:_,createDir:v,createFile:y,deleteEntry:b,renameEntry:x,copyEntry:S,uploadFiles:C,setSort:w}}),Zt={class:`file-tree`},Qt=j(v({__name:`FileTree`,setup(e){let{t}=R(),n=Xt(),r=z([]),i=z([]);async function a(e){try{return(await Nt(e)).entries.filter(e=>e.isDir).sort((e,t)=>e.name.localeCompare(t.name)).map(e=>({key:e.path,label:e.name,isLeaf:!1}))}catch{return[]}}async function o(e){e.children=await a(e.key)}function s(e){e.length>0&&(i.value=e,n.navigateTo(e[0]))}function c(){i.value=[],n.navigateTo(``)}return de(async()=>{r.value=await a(``)}),(e,n)=>(x(),F(`div`,Zt,[D(`div`,{class:`tree-header`,onClick:c},[n[0]||=D(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[D(`path`,{d:`M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`}),D(`polyline`,{points:`9 22 9 12 15 12 15 22`})],-1),D(`span`,null,M(A(t)(`files.breadcrumbRoot`)),1)]),O(A(Mt),{data:r.value,"selected-keys":i.value,"on-load":o,"expand-on-click":``,"block-line":``,"onUpdate:selectedKeys":s},null,8,[`data`,`selected-keys`])]))}}),[[`__scopeId`,`data-v-7f00b3bc`]]),$t={class:`file-breadcrumb`},en=j(v({__name:`FileBreadcrumb`,setup(e){let{t}=R(),n=Xt();function r(e){if(e<0)n.navigateTo(``);else{let t=n.pathSegments.slice(0,e+1).join(`/`);n.navigateTo(t)}}return(e,i)=>(x(),F(`div`,$t,[O(A(it),null,{default:k(()=>[O(A(ot),{onClick:i[0]||=e=>r(-1)},{default:k(()=>[E(M(A(t)(`files.breadcrumbRoot`)),1)]),_:1}),(x(!0),F(Be,null,V(A(n).pathSegments,(e,t)=>(x(),L(A(ot),{key:t,onClick:e=>r(t)},{default:k(()=>[E(M(e),1)]),_:2},1032,[`onClick`]))),128))]),_:1})]))}}),[[`__scopeId`,`data-v-061302de`]]),tn={class:`file-toolbar`},nn=j(v({__name:`FileToolbar`,emits:[`showNewFile`,`showNewFolder`,`showUpload`],setup(e,{emit:t}){let{t:n}=R(),r=He(),i=Xt(),a=t;async function o(){try{await i.fetchEntries()}catch{r.error(n(`files.backendError`))}}return(e,t)=>(x(),F(`div`,tn,[O(A(u),null,{default:k(()=>[O(A(I),{size:`small`,onClick:t[0]||=e=>a(`showNewFile`)},{default:k(()=>[E(M(A(n)(`files.newFile`)),1)]),_:1}),O(A(I),{size:`small`,onClick:t[1]||=e=>a(`showNewFolder`)},{default:k(()=>[E(M(A(n)(`files.newFolder`)),1)]),_:1}),O(A(I),{size:`small`,onClick:t[2]||=e=>a(`showUpload`)},{default:k(()=>[E(M(A(n)(`files.upload`)),1)]),_:1}),O(A(I),{size:`small`,onClick:o},{default:k(()=>[E(M(A(n)(`files.refresh`)),1)]),_:1})]),_:1})]))}}),[[`__scopeId`,`data-v-138da008`]]),rn={class:`file-list`},an={key:1,class:`file-list-items`},on={class:`file-list-header`},sn={key:0,class:`sort-indicator`},cn={key:0,class:`sort-indicator`},ln={key:0,class:`sort-indicator`},un=[`onDblclick`,`onContextmenu`],dn={class:`file-name`},fn={class:`file-icon`},pn={class:`file-size`},mn={class:`file-date`},hn={class:`file-actions`},gn=j(v({__name:`FileList`,emits:[`contextmenu-entry`],setup(e,{emit:t}){let{t:n}=R(),r=He(),i=Xt(),a=t;function o(e){if(e===0)return`—`;let t=[`B`,`KB`,`MB`,`GB`],n=0,r=e;for(;r>=1024&&n(x(),F(`div`,rn,[O(A(Le),{show:A(i).loading},{default:k(()=>[!A(i).loading&&A(i).sortedEntries.length===0?(x(),L(A(fe),{key:0,description:A(n)(`files.emptyDir`)},null,8,[`description`])):(x(),F(`div`,an,[D(`div`,on,[D(`div`,{class:`file-name sort-header`,onClick:t[0]||=e=>A(i).setSort(`name`)},[E(M(A(n)(`files.name`))+` `,1),A(i).sortBy===`name`?(x(),F(`span`,sn,M(A(i).sortOrder===`asc`?`↑`:`↓`),1)):p(``,!0)]),D(`div`,{class:`file-size sort-header`,onClick:t[1]||=e=>A(i).setSort(`size`)},[E(M(A(n)(`files.size`))+` `,1),A(i).sortBy===`size`?(x(),F(`span`,cn,M(A(i).sortOrder===`asc`?`↑`:`↓`),1)):p(``,!0)]),D(`div`,{class:`file-date sort-header`,onClick:t[2]||=e=>A(i).setSort(`modTime`)},[E(M(A(n)(`files.modified`))+` `,1),A(i).sortBy===`modTime`?(x(),F(`span`,ln,M(A(i).sortOrder===`asc`?`↑`:`↓`),1)):p(``,!0)]),t[3]||=D(`div`,{class:`file-actions-placeholder`},null,-1)]),(x(!0),F(Be,null,V(A(i).sortedEntries,e=>(x(),F(`div`,{key:e.path,class:`file-list-row`,onDblclick:t=>l(e),onContextmenu:t=>u(t,e)},[D(`div`,dn,[D(`span`,fn,M(c(e)),1),D(`span`,null,M(e.name),1)]),D(`div`,pn,M(e.isDir?`—`:o(e.size)),1),D(`div`,mn,M(s(e.modTime)),1),D(`div`,hn,[A(Jt)(e.name)&&!e.isDir?(x(),L(A(I),{key:0,size:`tiny`,quaternary:``,onClick:le(t=>A(i).openEditor(e.path),[`stop`]),title:A(n)(`files.edit`)},{default:k(()=>[...t[4]||=[E(`✏️`,-1)]]),_:1},8,[`onClick`,`title`])):p(``,!0),e.isDir?p(``,!0):(x(),L(A(I),{key:1,size:`tiny`,quaternary:``,onClick:le(t=>d(e),[`stop`]),title:A(n)(`files.download`)},{default:k(()=>[...t[5]||=[E(`⬇️`,-1)]]),_:1},8,[`onClick`,`title`]))])],40,un))),128))]))]),_:1},8,[`show`])]))}}),[[`__scopeId`,`data-v-ab2593c7`]]),_n=v({__name:`FileContextMenu`,emits:[`rename`],setup(e,{expose:t,emit:n}){let{t:r}=R(),i=He(),a=l(),o=Xt(),c=z(!1),u=z(0),d=z(0),f=z(null),p=n;function m(e,t){f.value=t,u.value=e.clientX,d.value=e.clientY,c.value=!1,h(()=>{c.value=!0})}function g(){let e=f.value;if(!e)return[];let t=[];return e.isDir?t.push({label:r(`files.open`),key:`open`}):(Jt(e.name)&&t.push({label:r(`files.edit`),key:`edit`}),(Kt(e.name)||qt(e.name))&&t.push({label:r(`files.preview`),key:`preview`}),t.push({label:r(`files.download`),key:`download`})),t.push({type:`divider`,key:`d1`}),t.push({label:r(`files.copyPath`),key:`copyPath`}),t.push({label:r(`files.rename`),key:`rename`}),t.push({type:`divider`,key:`d2`}),t.push({label:r(`files.delete`),key:`delete`}),t}async function _(e){c.value=!1;let t=f.value;if(t)switch(e){case`open`:o.navigateTo(t.path);break;case`edit`:try{await o.openEditor(t.path)}catch{i.error(r(`files.backendError`))}break;case`preview`:try{await o.openPreview(t)}catch{i.error(r(`files.backendError`))}break;case`download`:try{await Qe(t.path,t.name)}catch(e){i.error(e.message)}break;case`copyPath`:await Ze(t.path)?i.success(r(`files.pathCopied`)):i.error(r(`files.pathCopied`)+` ✗`);break;case`rename`:p(`rename`,t);break;case`delete`:a.warning({title:r(`files.delete`),content:t.isDir?r(`files.confirmDeleteDir`,{name:t.name}):r(`files.confirmDelete`,{name:t.name}),positiveText:r(`common.delete`),negativeText:r(`common.cancel`),onPositiveClick:async()=>{try{await o.deleteEntry(t),i.success(r(`files.deleted`))}catch{i.error(r(`files.deleteFailed`))}}});break}}function v(){c.value=!1}return t({show:m}),(e,t)=>(x(),L(A(s),{show:c.value,x:u.value,y:d.value,options:g(),placement:`bottom-start`,trigger:`manual`,onSelect:_,onClickoutside:v},null,8,[`show`,`x`,`y`,`options`]))}}),vn=e({cssDefaults:()=>Sn,lessDefaults:()=>wn,scssDefaults:()=>Cn}),yn=class{constructor(e,t,n){this._onDidChange=new Ye,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},bn={validate:!0,lint:{compatibleVendorPrefixes:`ignore`,vendorPrefix:`warning`,duplicateProperties:`warning`,emptyRules:`warning`,importStatement:`ignore`,boxModel:`ignore`,universalSelector:`ignore`,zeroUnits:`ignore`,fontFaceProperties:`warning`,hexColorLength:`error`,argumentsInColorFunction:`error`,unknownProperties:`warning`,ieHack:`ignore`,unknownVendorSpecificProperties:`ignore`,propertyIgnoredDueToDisplay:`warning`,important:`ignore`,float:`ignore`,idSelector:`ignore`},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:`collapse`,maxPreserveNewLines:void 0,preserveNewLines:!0}},xn={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Sn=new yn(`css`,bn,xn),Cn=new yn(`scss`,bn,xn),wn=new yn(`less`,bn,xn);function Tn(){return t(()=>import(`./cssMode-DoEY0nYG.js`),__vite__mapDeps([0,1,2,3,4,5]))}G.onLanguage(`less`,()=>{Tn().then(e=>e.setupMode(wn))}),G.onLanguage(`scss`,()=>{Tn().then(e=>e.setupMode(Cn))}),G.onLanguage(`css`,()=>{Tn().then(e=>e.setupMode(Sn))});var En=e({handlebarDefaults:()=>In,handlebarLanguageService:()=>Fn,htmlDefaults:()=>Pn,htmlLanguageService:()=>Nn,razorDefaults:()=>Rn,razorLanguageService:()=>Ln,registerHTMLLanguageService:()=>Bn}),Dn=class{constructor(e,t,n){this._onDidChange=new Ye,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},On={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:`default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var`,contentUnformatted:`pre`,indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:`head, body, /html`,wrapAttributes:`auto`},suggest:{},data:{useDefaultDataProvider:!0}};function kn(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===An,documentFormattingEdits:e===An,documentRangeFormattingEdits:e===An}}var An=`html`,jn=`handlebars`,Mn=`razor`,Nn=Bn(An,On,kn(An)),Pn=Nn.defaults,Fn=Bn(jn,On,kn(jn)),In=Fn.defaults,Ln=Bn(Mn,On,kn(Mn)),Rn=Ln.defaults;function zn(){return t(()=>import(`./htmlMode-BhzpBkhJ.js`),__vite__mapDeps([6,1,2,3,4,5]))}function Bn(e,t=On,n=kn(e)){let r=new Dn(e,t,n),i,a=G.onLanguage(e,async()=>{i=(await zn()).setupMode(r)});return{defaults:r,dispose(){a.dispose(),i?.dispose(),i=void 0}}}var Vn=e({getWorker:()=>Un,jsonDefaults:()=>Hn}),Hn=new class{constructor(e,t,n){this._onDidChange=new Ye,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(`json`,{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:`warning`,schemaValidation:`warning`,comments:`error`,trailingCommas:`error`},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0}),Un=()=>Wn().then(e=>e.getWorker());function Wn(){return t(()=>import(`./jsonMode-BuT9RUwl.js`),__vite__mapDeps([7,1,2,3,4,5]))}G.register({id:`json`,extensions:[`.json`,`.bowerrc`,`.jshintrc`,`.jscsrc`,`.eslintrc`,`.babelrc`,`.har`],aliases:[`JSON`,`json`],mimetypes:[`application/json`]}),G.onLanguage(`json`,()=>{Wn().then(e=>e.setupMode(Hn))});var Gn={},Kn={},qn=class e{static getOrCreate(t){return Kn[t]||(Kn[t]=new e(t)),Kn[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,Gn[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function K(e){let t=e.id;Gn[t]=e,G.register(e);let n=qn.getOrCreate(t);G.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),G.onLanguageEncountered(t,async()=>{let e=await n.load();G.setLanguageConfiguration(t,e.conf)})}K({id:`abap`,extensions:[`.abap`],aliases:[`abap`,`ABAP`],loader:()=>t(()=>import(`./abap-CDhDeuvv.js`),[])}),K({id:`apex`,extensions:[`.cls`],aliases:[`Apex`,`apex`],mimetypes:[`text/x-apex-source`,`text/x-apex`],loader:()=>t(()=>import(`./apex-CAdLmNAy.js`),[])}),K({id:`azcli`,extensions:[`.azcli`],aliases:[`Azure CLI`,`azcli`],loader:()=>t(()=>import(`./azcli-CvWhls1o.js`),[])}),K({id:`bat`,extensions:[`.bat`,`.cmd`],aliases:[`Batch`,`bat`],loader:()=>t(()=>import(`./bat-DIzIZRPr.js`),[])}),K({id:`bicep`,extensions:[`.bicep`],aliases:[`Bicep`],loader:()=>t(()=>import(`./bicep-DTOnpIJV.js`),[])}),K({id:`cameligo`,extensions:[`.mligo`],aliases:[`Cameligo`],loader:()=>t(()=>import(`./cameligo-BYWbA6IW.js`),[])}),K({id:`clojure`,extensions:[`.clj`,`.cljs`,`.cljc`,`.edn`],aliases:[`clojure`,`Clojure`],loader:()=>t(()=>import(`./clojure-BWDPO2x4.js`),[])}),K({id:`coffeescript`,extensions:[`.coffee`],aliases:[`CoffeeScript`,`coffeescript`,`coffee`],mimetypes:[`text/x-coffeescript`,`text/coffeescript`],loader:()=>t(()=>import(`./coffee-BjgzsY8W.js`),[])}),K({id:`c`,extensions:[`.c`,`.h`],aliases:[`C`,`c`],loader:()=>t(()=>import(`./cpp-DYj4MD35.js`),[])}),K({id:`cpp`,extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`],aliases:[`C++`,`Cpp`,`cpp`],loader:()=>t(()=>import(`./cpp-DYj4MD35.js`),[])}),K({id:`csharp`,extensions:[`.cs`,`.csx`,`.cake`],aliases:[`C#`,`csharp`],loader:()=>t(()=>import(`./csharp-BolpPGa0.js`),[])}),K({id:`csp`,extensions:[`.csp`],aliases:[`CSP`,`csp`],loader:()=>t(()=>import(`./csp-C22RxLEo.js`),[])}),K({id:`css`,extensions:[`.css`],aliases:[`CSS`,`css`],mimetypes:[`text/css`],loader:()=>t(()=>import(`./css-CxBOnN3S.js`),[])}),K({id:`cypher`,extensions:[`.cypher`,`.cyp`],aliases:[`Cypher`,`OpenCypher`],loader:()=>t(()=>import(`./cypher-CNME4_3_.js`),[])}),K({id:`dart`,extensions:[`.dart`],aliases:[`Dart`,`dart`],mimetypes:[`text/x-dart-source`,`text/x-dart`],loader:()=>t(()=>import(`./dart-CK0QjfLJ.js`),[])}),K({id:`dockerfile`,extensions:[`.dockerfile`],filenames:[`Dockerfile`],aliases:[`Dockerfile`],loader:()=>t(()=>import(`./dockerfile-CU0HBiR_.js`),[])}),K({id:`ecl`,extensions:[`.ecl`],aliases:[`ECL`,`Ecl`,`ecl`],loader:()=>t(()=>import(`./ecl-C2jBSlrM.js`),[])}),K({id:`elixir`,extensions:[`.ex`,`.exs`],aliases:[`Elixir`,`elixir`,`ex`],loader:()=>t(()=>import(`./elixir-CY0zb48c.js`),[])}),K({id:`flow9`,extensions:[`.flow`],aliases:[`Flow9`,`Flow`,`flow9`,`flow`],loader:()=>t(()=>import(`./flow9-BOoOQMGi.js`),[])}),K({id:`fsharp`,extensions:[`.fs`,`.fsi`,`.ml`,`.mli`,`.fsx`,`.fsscript`],aliases:[`F#`,`FSharp`,`fsharp`],loader:()=>t(()=>import(`./fsharp-DXEV-z8E.js`),[])}),K({id:`freemarker2`,extensions:[`.ftl`,`.ftlh`,`.ftlx`],aliases:[`FreeMarker2`,`Apache FreeMarker2`],loader:()=>t(()=>import(`./freemarker2-DxpTGVfE.js`).then(e=>e.TagAutoInterpolationDollar),__vite__mapDeps([8,2,3,4]))}),K({id:`freemarker2.tag-angle.interpolation-dollar`,aliases:[`FreeMarker2 (Angle/Dollar)`,`Apache FreeMarker2 (Angle/Dollar)`],loader:()=>t(()=>import(`./freemarker2-DxpTGVfE.js`).then(e=>e.TagAngleInterpolationDollar),__vite__mapDeps([8,2,3,4]))}),K({id:`freemarker2.tag-bracket.interpolation-dollar`,aliases:[`FreeMarker2 (Bracket/Dollar)`,`Apache FreeMarker2 (Bracket/Dollar)`],loader:()=>t(()=>import(`./freemarker2-DxpTGVfE.js`).then(e=>e.TagBracketInterpolationDollar),__vite__mapDeps([8,2,3,4]))}),K({id:`freemarker2.tag-angle.interpolation-bracket`,aliases:[`FreeMarker2 (Angle/Bracket)`,`Apache FreeMarker2 (Angle/Bracket)`],loader:()=>t(()=>import(`./freemarker2-DxpTGVfE.js`).then(e=>e.TagAngleInterpolationBracket),__vite__mapDeps([8,2,3,4]))}),K({id:`freemarker2.tag-bracket.interpolation-bracket`,aliases:[`FreeMarker2 (Bracket/Bracket)`,`Apache FreeMarker2 (Bracket/Bracket)`],loader:()=>t(()=>import(`./freemarker2-DxpTGVfE.js`).then(e=>e.TagBracketInterpolationBracket),__vite__mapDeps([8,2,3,4]))}),K({id:`freemarker2.tag-auto.interpolation-dollar`,aliases:[`FreeMarker2 (Auto/Dollar)`,`Apache FreeMarker2 (Auto/Dollar)`],loader:()=>t(()=>import(`./freemarker2-DxpTGVfE.js`).then(e=>e.TagAutoInterpolationDollar),__vite__mapDeps([8,2,3,4]))}),K({id:`freemarker2.tag-auto.interpolation-bracket`,aliases:[`FreeMarker2 (Auto/Bracket)`,`Apache FreeMarker2 (Auto/Bracket)`],loader:()=>t(()=>import(`./freemarker2-DxpTGVfE.js`).then(e=>e.TagAutoInterpolationBracket),__vite__mapDeps([8,2,3,4]))}),K({id:`go`,extensions:[`.go`],aliases:[`Go`],loader:()=>t(()=>import(`./go-CdptEtBX.js`),[])}),K({id:`graphql`,extensions:[`.graphql`,`.gql`],aliases:[`GraphQL`,`graphql`,`gql`],mimetypes:[`application/graphql`],loader:()=>t(()=>import(`./graphql-CjCYg5Nh.js`),[])}),K({id:`handlebars`,extensions:[`.handlebars`,`.hbs`],aliases:[`Handlebars`,`handlebars`,`hbs`],mimetypes:[`text/x-handlebars-template`],loader:()=>t(()=>import(`./handlebars-CiQm6Tfm.js`),__vite__mapDeps([9,2,3,4]))}),K({id:`hcl`,extensions:[`.tf`,`.tfvars`,`.hcl`],aliases:[`Terraform`,`tf`,`HCL`,`hcl`],loader:()=>t(()=>import(`./hcl-CIqI6Xq2.js`),[])}),K({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>t(()=>import(`./html-7YxRD05_.js`),__vite__mapDeps([10,2,3,4]))}),K({id:`ini`,extensions:[`.ini`,`.properties`,`.gitconfig`],filenames:[`config`,`.gitattributes`,`.gitconfig`,`.editorconfig`],aliases:[`Ini`,`ini`],loader:()=>t(()=>import(`./ini-CDJ2j2vA.js`),[])}),K({id:`java`,extensions:[`.java`,`.jav`],aliases:[`Java`,`java`],mimetypes:[`text/x-java-source`,`text/x-java`],loader:()=>t(()=>import(`./java-CHOIoTUU.js`),[])}),K({id:`javascript`,extensions:[`.js`,`.es6`,`.jsx`,`.mjs`,`.cjs`],firstLine:`^#!.*\\bnode`,filenames:[`jakefile`],aliases:[`JavaScript`,`javascript`,`js`],mimetypes:[`text/javascript`],loader:()=>t(()=>import(`./javascript-bRxVm489.js`),__vite__mapDeps([11,12,2,3,4]))}),K({id:`julia`,extensions:[`.jl`],aliases:[`julia`,`Julia`],loader:()=>t(()=>import(`./julia-C1Q5f9pw.js`),[])}),K({id:`kotlin`,extensions:[`.kt`,`.kts`],aliases:[`Kotlin`,`kotlin`],mimetypes:[`text/x-kotlin-source`,`text/x-kotlin`],loader:()=>t(()=>import(`./kotlin-B_vAm8fz.js`),[])}),K({id:`less`,extensions:[`.less`],aliases:[`Less`,`less`],mimetypes:[`text/x-less`,`text/less`],loader:()=>t(()=>import(`./less-Cql0PWan.js`),[])}),K({id:`lexon`,extensions:[`.lex`],aliases:[`Lexon`],loader:()=>t(()=>import(`./lexon-DxXPzNxb.js`),[])}),K({id:`lua`,extensions:[`.lua`],aliases:[`Lua`,`lua`],loader:()=>t(()=>import(`./lua-B9t718Dn.js`),[])}),K({id:`liquid`,extensions:[`.liquid`,`.html.liquid`],aliases:[`Liquid`,`liquid`],mimetypes:[`application/liquid`],loader:()=>t(()=>import(`./liquid-B3EoZCCH.js`),__vite__mapDeps([13,2,3,4]))}),K({id:`m3`,extensions:[`.m3`,`.i3`,`.mg`,`.ig`],aliases:[`Modula-3`,`Modula3`,`modula3`,`m3`],loader:()=>t(()=>import(`./m3-BLRwY2ss.js`),[])}),K({id:`markdown`,extensions:[`.md`,`.markdown`,`.mdown`,`.mkdn`,`.mkd`,`.mdwn`,`.mdtxt`,`.mdtext`],aliases:[`Markdown`,`markdown`],loader:()=>t(()=>import(`./markdown-BFmZdZB5.js`),[])}),K({id:`mdx`,extensions:[`.mdx`],aliases:[`MDX`,`mdx`],loader:()=>t(()=>import(`./mdx-Bi_2NZxv.js`),__vite__mapDeps([14,2,3,4]))}),K({id:`mips`,extensions:[`.s`],aliases:[`MIPS`,`MIPS-V`],mimetypes:[`text/x-mips`,`text/mips`,`text/plaintext`],loader:()=>t(()=>import(`./mips-DF6-z2O6.js`),[])}),K({id:`msdax`,extensions:[`.dax`,`.msdax`],aliases:[`DAX`,`MSDAX`],loader:()=>t(()=>import(`./msdax-CHaAEINt.js`),[])}),K({id:`mysql`,extensions:[],aliases:[`MySQL`,`mysql`],loader:()=>t(()=>import(`./mysql-uPQg9vEB.js`),[])}),K({id:`objective-c`,extensions:[`.m`],aliases:[`Objective-C`],loader:()=>t(()=>import(`./objective-c-DDvj-3Gs.js`),[])}),K({id:`pascal`,extensions:[`.pas`,`.p`,`.pp`],aliases:[`Pascal`,`pas`],mimetypes:[`text/x-pascal-source`,`text/x-pascal`],loader:()=>t(()=>import(`./pascal-BtwdqP0I.js`),[])}),K({id:`pascaligo`,extensions:[`.ligo`],aliases:[`Pascaligo`,`ligo`],loader:()=>t(()=>import(`./pascaligo-CkCbT5yL.js`),[])}),K({id:`perl`,extensions:[`.pl`,`.pm`],aliases:[`Perl`,`pl`],loader:()=>t(()=>import(`./perl-Dani_kyN.js`),[])}),K({id:`pgsql`,extensions:[],aliases:[`PostgreSQL`,`postgres`,`pg`,`postgre`],loader:()=>t(()=>import(`./pgsql-C4qqkVfM.js`),[])}),K({id:`php`,extensions:[`.php`,`.php4`,`.php5`,`.phtml`,`.ctp`],aliases:[`PHP`,`php`],mimetypes:[`application/x-php`],loader:()=>t(()=>import(`./php-BoGZVf8G.js`),[])}),K({id:`pla`,extensions:[`.pla`],loader:()=>t(()=>import(`./pla-BN0i5Nh7.js`),[])}),K({id:`postiats`,extensions:[`.dats`,`.sats`,`.hats`],aliases:[`ATS`,`ATS/Postiats`],loader:()=>t(()=>import(`./postiats-D-rOik-N.js`),[])}),K({id:`powerquery`,extensions:[`.pq`,`.pqm`],aliases:[`PQ`,`M`,`Power Query`,`Power Query M`],loader:()=>t(()=>import(`./powerquery-zzNHAhSR.js`),[])}),K({id:`powershell`,extensions:[`.ps1`,`.psm1`,`.psd1`],aliases:[`PowerShell`,`powershell`,`ps`,`ps1`],loader:()=>t(()=>import(`./powershell-DElKmRYu.js`),[])}),K({id:`proto`,extensions:[`.proto`],aliases:[`protobuf`,`Protocol Buffers`],loader:()=>t(()=>import(`./protobuf-BLG_cB3K.js`),[])}),K({id:`pug`,extensions:[`.jade`,`.pug`],aliases:[`Pug`,`Jade`,`jade`],loader:()=>t(()=>import(`./pug-ZR8jtt1u.js`),[])}),K({id:`python`,extensions:[`.py`,`.rpy`,`.pyw`,`.cpy`,`.gyp`,`.gypi`],aliases:[`Python`,`py`],firstLine:`^#!/.*\\bpython[0-9.-]*\\b`,loader:()=>t(()=>import(`./python-Cg6U35xo.js`),__vite__mapDeps([15,2,3,4]))}),K({id:`qsharp`,extensions:[`.qs`],aliases:[`Q#`,`qsharp`],loader:()=>t(()=>import(`./qsharp-D2cee7Ne.js`),[])}),K({id:`r`,extensions:[`.r`,`.rhistory`,`.rmd`,`.rprofile`,`.rt`],aliases:[`R`,`r`],loader:()=>t(()=>import(`./r-DoHsXzjM.js`),[])}),K({id:`razor`,extensions:[`.cshtml`],aliases:[`Razor`,`razor`],mimetypes:[`text/x-cshtml`],loader:()=>t(()=>import(`./razor-C5j4Bh-b.js`),__vite__mapDeps([16,2,3,4]))}),K({id:`redis`,extensions:[`.redis`],aliases:[`redis`],loader:()=>t(()=>import(`./redis-DZVra2W1.js`),[])}),K({id:`redshift`,extensions:[],aliases:[`Redshift`,`redshift`],loader:()=>t(()=>import(`./redshift-DGeVCKd_.js`),[])}),K({id:`restructuredtext`,extensions:[`.rst`],aliases:[`reStructuredText`,`restructuredtext`],loader:()=>t(()=>import(`./restructuredtext-dKPOABuQ.js`),[])}),K({id:`ruby`,extensions:[`.rb`,`.rbx`,`.rjs`,`.gemspec`,`.pp`],filenames:[`rakefile`,`Gemfile`],aliases:[`Ruby`,`rb`],loader:()=>t(()=>import(`./ruby-l2URKD3u.js`),[])}),K({id:`rust`,extensions:[`.rs`,`.rlib`],aliases:[`Rust`,`rust`],loader:()=>t(()=>import(`./rust-BjohuVCv.js`),[])}),K({id:`sb`,extensions:[`.sb`],aliases:[`Small Basic`,`sb`],loader:()=>t(()=>import(`./sb-fQEEXGZ4.js`),[])}),K({id:`scala`,extensions:[`.scala`,`.sc`,`.sbt`],aliases:[`Scala`,`scala`,`SBT`,`Sbt`,`sbt`,`Dotty`,`dotty`],mimetypes:[`text/x-scala-source`,`text/x-scala`,`text/x-sbt`,`text/x-dotty`],loader:()=>t(()=>import(`./scala-BJn2uy72.js`),[])}),K({id:`scheme`,extensions:[`.scm`,`.ss`,`.sch`,`.rkt`],aliases:[`scheme`,`Scheme`],loader:()=>t(()=>import(`./scheme-uR45e6Cj.js`),[])}),K({id:`scss`,extensions:[`.scss`],aliases:[`Sass`,`sass`,`scss`],mimetypes:[`text/x-scss`,`text/scss`],loader:()=>t(()=>import(`./scss-Bb5aFLdH.js`),[])}),K({id:`shell`,extensions:[`.sh`,`.bash`],aliases:[`Shell`,`sh`],loader:()=>t(()=>import(`./shell-CVpK2JOU.js`),[])}),K({id:`sol`,extensions:[`.sol`],aliases:[`sol`,`solidity`,`Solidity`],loader:()=>t(()=>import(`./solidity-C5R0E1ET.js`),[])}),K({id:`aes`,extensions:[`.aes`],aliases:[`aes`,`sophia`,`Sophia`],loader:()=>t(()=>import(`./sophia-a9J0M0YJ.js`),[])}),K({id:`sparql`,extensions:[`.rq`],aliases:[`sparql`,`SPARQL`],loader:()=>t(()=>import(`./sparql-BstjA3WV.js`),[])}),K({id:`sql`,extensions:[`.sql`],aliases:[`SQL`],loader:()=>t(()=>import(`./sql-CWGlZ53m.js`),[])}),K({id:`st`,extensions:[`.st`,`.iecst`,`.iecplc`,`.lc3lib`,`.TcPOU`,`.TcDUT`,`.TcGVL`,`.TcIO`],aliases:[`StructuredText`,`scl`,`stl`],loader:()=>t(()=>import(`./st-BTv5IzCZ.js`),[])}),K({id:`swift`,aliases:[`Swift`,`swift`],extensions:[`.swift`],mimetypes:[`text/swift`],loader:()=>t(()=>import(`./swift-Co-87OWG.js`),[])}),K({id:`systemverilog`,extensions:[`.sv`,`.svh`],aliases:[`SV`,`sv`,`SystemVerilog`,`systemverilog`],loader:()=>t(()=>import(`./systemverilog-xWr6vjak.js`),[])}),K({id:`verilog`,extensions:[`.v`,`.vh`],aliases:[`V`,`v`,`Verilog`,`verilog`],loader:()=>t(()=>import(`./systemverilog-xWr6vjak.js`),[])}),K({id:`tcl`,extensions:[`.tcl`],aliases:[`tcl`,`Tcl`,`tcltk`,`TclTk`,`tcl/tk`,`Tcl/Tk`],loader:()=>t(()=>import(`./tcl-B6qTnlRI.js`),[])}),K({id:`twig`,extensions:[`.twig`],aliases:[`Twig`,`twig`],mimetypes:[`text/x-twig`],loader:()=>t(()=>import(`./twig-DC4COwrm.js`),[])}),K({id:`typescript`,extensions:[`.ts`,`.tsx`,`.cts`,`.mts`],aliases:[`TypeScript`,`ts`,`typescript`],mimetypes:[`text/typescript`],loader:()=>t(()=>import(`./typescript-CVK17w93.js`),__vite__mapDeps([12,2,3,4]))}),K({id:`typespec`,extensions:[`.tsp`],aliases:[`TypeSpec`],loader:()=>t(()=>import(`./typespec-DHt30vj3.js`),[])}),K({id:`vb`,extensions:[`.vb`],aliases:[`Visual Basic`,`vb`],loader:()=>t(()=>import(`./vb-BBAt_CPZ.js`),[])}),K({id:`wgsl`,extensions:[`.wgsl`],aliases:[`WebGPU Shading Language`,`WGSL`,`wgsl`],loader:()=>t(()=>import(`./wgsl-COrKLdj8.js`),[])}),K({id:`xml`,extensions:[`.xml`,`.xsd`,`.dtd`,`.ascx`,`.csproj`,`.config`,`.props`,`.targets`,`.wxi`,`.wxl`,`.wxs`,`.xaml`,`.svg`,`.svgz`,`.opf`,`.xslt`,`.xsl`],firstLine:`(\\<\\?xml.*)|(\\t(()=>import(`./xml-BU-TJ86q.js`),__vite__mapDeps([17,2,3,4]))}),K({id:`yaml`,extensions:[`.yaml`,`.yml`],aliases:[`YAML`,`yaml`,`YML`,`yml`],mimetypes:[`application/x-yaml`,`text/x-yaml`],loader:()=>t(()=>import(`./yaml-CSTQunUz.js`),__vite__mapDeps([18,2,3,4]))});var Jn=Object.defineProperty,Yn=(e,t,n)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t,n)=>Yn(e,typeof t==`symbol`?t:t+``,n),Xn,Zn,Qn,$n,er;function tr(e){return e.method!==void 0}var nr;(function(e){function t(e){return e}e.create=t})(nr||={});var J;(function(e){e.parseError=-32700,e.invalidRequest=-32600,e.methodNotFound=-32601,e.invalidParams=-32602,e.internalError=-32603;function t(e){return-32099<=e&&e<=-32e3}e.isServerError=t;function n(e){if(!t(e))throw Error(`Invalid range for a server error.`);return e}e.serverError=n,e.unexpectedServerError=-32e3;function r(e){return!0}e.isApplicationError=r;function i(e){return e}e.applicationError=i,e.genericApplicationError=-320100})(J||={});var rr=class{constructor(){q(this,`listeners`,new Set),q(this,`event`,e=>(this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}))}fire(e){this.listeners.forEach(t=>t(e))}},ir=class{constructor(e){q(this,`_value`),q(this,`eventEmitter`),this._value=e,this.eventEmitter=new rr}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.eventEmitter.fire(e))}get onChange(){return this.eventEmitter.event}};function ar(e,t){let n=setTimeout(t,e);return{dispose:()=>clearTimeout(n)}}function or(e,t,n){return e instanceof Set?(e.add(t),{dispose:()=>e.delete(t)}):(e.set(t,n),{dispose:()=>e.delete(t)})}var sr=class{constructor(){q(this,`_state`,`none`),q(this,`promise`),q(this,`resolve`,()=>{}),q(this,`reject`,()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}get state(){return this._state}};Xn=class{constructor(){q(this,`_unprocessedMessages`,[]),q(this,`_messageListener`),q(this,`id`,Xn.id++),q(this,`_state`,new ir({state:`open`})),q(this,`state`,this._state)}setListener(e){if(this._messageListener=e,e)for(;this._unprocessedMessages.length>0&&this._messageListener!==void 0;){let e=this._unprocessedMessages.shift();this._messageListener(e)}}send(e){return this._sendImpl(e)}_dispatchReceivedMessage(e){this._unprocessedMessages.length===0&&this._messageListener?this._messageListener(e):this._unprocessedMessages.push(e)}_onConnectionClosed(){this._state.value={state:`closed`,error:void 0}}log(e){return new cr(this,e??new lr)}},q(Xn,`id`,0);var cr=class{constructor(e,t){q(this,`baseStream`),q(this,`logger`),this.baseStream=e,this.logger=t}get state(){return this.baseStream.state}setListener(e){if(e===void 0){this.baseStream.setListener(void 0);return}this.baseStream.setListener(t=>{this.logger.log(this.baseStream,`incoming`,t),e(t)})}send(e){return this.logger.log(this.baseStream,`outgoing`,e),this.baseStream.send(e)}toString(){return`StreamLogger/${this.baseStream.toString()}`}},lr=class{log(e,t,n){console.log(`${t===`incoming`?`<-`:`->`} [${e.toString()}] ${JSON.stringify(n)}`)}},ur=class e{constructor(e){q(this,`connect`),this.connect=e}mapContext(t){return new e(e=>this.connect(e?dr(e,t):void 0))}};function dr(e,t){return{handleNotification:(n,r)=>e.handleNotification(n,t(r)),handleRequest:(n,r,i)=>e.handleRequest(n,r,t(i))}}var fr=class e{constructor(e,t,n){q(this,`_stream`),q(this,`_listener`),q(this,`_logger`),q(this,`_unprocessedResponses`,new Map),q(this,`_lastUsedRequestId`,0),this._stream=e,this._listener=t,this._logger=n,this._stream.setListener(e=>{tr(e)?e.id===void 0?this._processNotification(e):this._processRequest(e):this._processResponse(e)})}static createChannel(t,n){let r=!1;return new ur(i=>{if(r)throw Error(`A channel to the stream ${t} was already constructed!`);return r=!0,new e(t,i,n)})}get state(){return this._stream.state}async _processNotification(e){if(e.id!==void 0)throw Error();if(!this._listener){this._logger&&this._logger.debug({text:`Notification ignored`,message:e});return}try{await this._listener.handleNotification({method:e.method,params:e.params||null})}catch(t){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${t}`,exception:t,message:e})}}async _processRequest(e){if(e.id===void 0)throw Error();let t;if(this._listener)try{t=await this._listener.handleRequest({method:e.method,params:e.params||null},e.id)}catch(n){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${n}`,message:e,exception:n}),t={error:{code:J.internalError,message:`An unexpected exception was thrown.`,data:void 0}}}else this._logger&&this._logger.debug({text:`Received request even though not listening for requests`,message:e}),t={error:{code:J.methodNotFound,message:`This endpoint does not listen for requests or notifications.`,data:void 0}};let n;n=`result`in t?{jsonrpc:`2.0`,id:e.id,result:t.result}:{jsonrpc:`2.0`,id:e.id,error:t.error},await this._stream.send(n)}_processResponse(e){let t=``+e.id,n=this._unprocessedResponses.get(t);if(!n){this._logger&&this._logger.debug({text:`Got an unexpected response message`,message:e});return}this._unprocessedResponses.delete(t),n(e)}_newRequestId(){return this._lastUsedRequestId++}sendRequest(e,t,n){let r={jsonrpc:`2.0`,id:this._newRequestId(),method:e.method,params:e.params||void 0};return n&&n(r.id),new Promise((e,t)=>{let n=``+r.id;this._unprocessedResponses.set(n,n=>{`result`in n?e({result:n.result}):(n.error||t(Error(`Response had neither 'result' nor 'error' field set.`)),e({error:n.error}))}),this._stream.send(r).then(void 0,e=>{this._unprocessedResponses.delete(n),t(e)})})}sendNotification(e,t){let n={jsonrpc:`2.0`,id:void 0,method:e.method,params:e.params||void 0};return this._stream.send(n)}toString(){return`StreamChannel/`+this._stream.toString()}},pr;(function(e){function t(){return{deserializeFromJson:e=>({hasErrors:!1,value:e}),serializeToJson:e=>e}}e.sAny=t;function n(){return{deserializeFromJson:e=>({hasErrors:!1,value:{}}),serializeToJson:e=>({})}}e.sEmptyObject=n;function r(){return{deserializeFromJson:e=>({hasErrors:!1,value:void 0}),serializeToJson:e=>null}}e.sVoidFromNull=r})(pr||={});var mr=Symbol(`OptionalMethodNotFound`),hr=class{contextualize(e){return new gr(this,e)}},gr=class extends hr{constructor(e,t){super(),q(this,`underylingTypedChannel`),q(this,`converters`),this.underylingTypedChannel=e,this.converters=t}async request(e,t,n){let r=await this.converters.getSendContext(n);return this.underylingTypedChannel.request(e,t,r)}async notify(e,t,n){let r=await this.converters.getSendContext(n);return this.underylingTypedChannel.notify(e,t,r)}registerNotificationHandler(e,t){return this.underylingTypedChannel.registerNotificationHandler(e,async(e,n)=>await t(e,await this.converters.getNewContext(n)))}registerRequestHandler(e,t){return this.underylingTypedChannel.registerRequestHandler(e,async(e,n,r)=>await t(e,n,await this.converters.getNewContext(r)))}},_r=class e extends hr{constructor(e,t={}){super(),q(this,`channelCtor`),q(this,`_requestSender`),q(this,`_handler`,new Map),q(this,`_unknownNotificationHandler`,new Set),q(this,`_timeout`),q(this,`sendExceptionDetails`,!1),q(this,`_logger`),q(this,`listeningDeferred`,new sr),q(this,`onListening`,this.listeningDeferred.promise),q(this,`_requestDidErrorEventEmitter`,new rr),q(this,`onRequestDidError`,this._requestDidErrorEventEmitter.event),this.channelCtor=e,this._logger=t.logger,this.sendExceptionDetails=!!t.sendExceptionDetails,this._timeout=ar(1e3,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(t,n={}){return new e(fr.createChannel(t,n.logger),n)}startListen(){if(this._requestSender)throw Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&=(this._timeout.dispose(),void 0),this._requestSender=this.channelCtor.connect({handleRequest:(e,t,n)=>this.handleRequest(e,t,n),handleNotification:(e,t)=>this.handleNotification(e,t)}),this.listeningDeferred.resolve()}checkChannel(e){if(!e)throw Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(e,t,n){let r=this._handler.get(e.method);if(!r)return this._logger&&this._logger.debug({text:`No request handler for "${e.method}".`,data:{requestObject:e}}),{error:{code:J.methodNotFound,message:`No request handler for "${e.method}".`,data:{method:e.method}}};if(r.kind!=`request`){let t=`"${e.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e}}),{error:{code:J.invalidRequest,message:t,data:{method:e.method}}}}let i=r.requestType.paramsSerializer.deserializeFromJson(e.params);if(i.hasErrors){let t=`Got invalid params: ${i.errorMessage}`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e,errorMessage:i.errorMessage}}),{error:{code:J.invalidParams,message:t,data:{errors:i.errorMessage}}}}else{let a=i.value,o;try{let e=await r.handler(a,t,n);if(`error`in e||`errorMessage`in e){let t=e.error?r.requestType.errorSerializer.serializeToJson(e.error):void 0;o={error:{code:e.errorCode||J.genericApplicationError,message:e.errorMessage||`An error was returned`,data:t}}}else o={result:r.requestType.resultSerializer.serializeToJson(e.ok)}}catch(t){t instanceof yr?o={error:{code:t.code,message:t.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${t}.`,exception:t,data:{requestObject:e}}),o={error:{code:J.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${t}.`:`Server has thrown an unexpected exception`}})}return o}}async handleNotification(e,t){let n=this._handler.get(e.method);if(!n){for(let t of this._unknownNotificationHandler)t(e);this._unknownNotificationHandler.size===0&&this._logger&&this._logger.debug({text:`Unhandled notification "${e.method}"`,data:{requestObject:e}});return}if(n.kind!=`notification`){this._logger&&this._logger.debug({text:`"${e.method}" is registered as request, but was sent as notification.`,data:{requestObject:e}});return}let r=n.notificationType.paramsSerializer.deserializeFromJson(e.params);if(r.hasErrors){this._logger&&this._logger.debug({text:`Got invalid params: ${r}`,data:{requestObject:e,errorMessage:r.errorMessage}});return}let i=r.value;for(let r of n.handlers)try{r(i,t)}catch(t){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${t}.`,exception:t,data:{requestObject:e}})}}registerUnknownNotificationHandler(e){return or(this._unknownNotificationHandler,e)}registerRequestHandler(e,t){if(this._handler.get(e.method))throw Error(`Handler with method "${e.method}" already registered.`);return or(this._handler,e.method,{kind:`request`,requestType:e,handler:t})}registerNotificationHandler(e,t){let n=this._handler.get(e.method);if(!n)n={kind:`notification`,notificationType:e,handlers:new Set},this._handler.set(e.method,n);else{if(n.kind!==`notification`)throw Error(`Method "${e.method}" was already registered as request handler.`);if(n.notificationType!==e)throw Error(`Method "${e.method}" was registered for a different type.`)}return or(n.handlers,t)}getRegisteredTypes(){let e=[];for(let t of this._handler.values())t.kind===`notification`?e.push(t.notificationType):t.kind===`request`&&e.push(t.requestType);return e}async request(e,t,n){if(!this.checkChannel(this._requestSender))throw Error(`Impossible`);let r=e.paramsSerializer.serializeToJson(t);vr(r);let i=await this._requestSender.sendRequest({method:e.method,params:r},n);if(`error`in i){if(e.isOptional&&i.error.code===J.methodNotFound)return mr;let t;if(i.error.data!==void 0){let n=e.errorSerializer.deserializeFromJson(i.error.data);if(n.hasErrors)throw Error(n.errorMessage);t=n.value}else t=void 0;let n=new yr(i.error.message,t,i.error.code);throw this._requestDidErrorEventEmitter.fire({error:n}),n}else{let t=e.resultSerializer.deserializeFromJson(i.result);if(t.hasErrors)throw Error(`Could not deserialize response: `+t.errorMessage+` + +${JSON.stringify(i,null,2)}`);return t.value}}async notify(e,t,n){if(!this.checkChannel(this._requestSender))throw Error();let r=e.paramsSerializer.serializeToJson(t);vr(r),this._requestSender.sendNotification({method:e.method,params:r},n)}};function vr(e){if(e!==null&&Array.isArray(e)&&typeof e!=`object`)throw Error(`Invalid value! Only null, array and object is allowed.`)}var yr=class e extends Error{constructor(t,n,r=J.genericApplicationError){super(t),q(this,`data`),q(this,`code`),this.data=n,this.code=r,Object.setPrototypeOf(this,e.prototype)}},br=class e{constructor(e,t,n,r,i=!1){q(this,`method`),q(this,`paramsSerializer`),q(this,`resultSerializer`),q(this,`errorSerializer`),q(this,`isOptional`),q(this,`kind`,`request`),this.method=e,this.paramsSerializer=t,this.resultSerializer=n,this.errorSerializer=r,this.isOptional=i}withMethod(t){return new e(t,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new e(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},xr=class e{constructor(e,t){q(this,`method`),q(this,`paramsSerializer`),q(this,`kind`,`notification`),this.method=e,this.paramsSerializer=t}withMethod(t){return new e(t,this.paramsSerializer)}};function Y(e){return new br((e||{}).method,pr.sAny(),pr.sAny(),pr.sAny())}function X(e){return new xr((e||{}).method,pr.sAny())}var Sr=(Zn=Symbol(),Qn=class{constructor(e){q(this,`error`),q(this,Zn),this.error=e}},q(Qn,`factory`,e=>new Qn(e)),Qn);function Cr(e){let t=wr(e.server),n=wr(e.client);return new Tr(e.tags||[],t,n)}function wr(e){let t={};for(let[n,r]of Object.entries(e)){let e=r.method?r.method:n;t[n]=r.withMethod(e)}return t}var Tr=class e{constructor(e=[],t,n){q(this,`tags`),q(this,`server`),q(this,`client`),this.tags=e,this.server=t,this.client=n}_onlyDesignTime(){return Error(`This property is not meant to be accessed at runtime`)}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(e,t,n,r){let i=this.buildCounterpart(e,n),a=this.registerHandlers(e,t,r,i);return{counterpart:i,dispose:()=>a.dispose()}}buildCounterpart(e,t){let n={};for(let[r,i]of Object.entries(t)){let t;t=i.kind===`request`?i.isOptional?async(t,n)=>{t===void 0&&(t={});try{return await e.request(i,t,n)}catch(e){if(e&&e.code===J.methodNotFound)return mr;throw e}}:(t,n)=>(t===void 0&&(t={}),e.request(i,t,n)):(t,n)=>(t===void 0&&(t={}),e.notify(i,t,n)),n[r]=t}return n}registerHandlers(e,t,n,r){let i=[];for(let[a,o]of Object.entries(t))if(o.kind===`request`){let t=n[a];if(!t)continue;let s=this.createRequestHandler(r,t);i.push(e.registerRequestHandler(o,s))}else{let t=n[a];t&&i.push(e.registerNotificationHandler(o,(e,n)=>{t(e,{context:n,counterpart:r})}))}return{dispose:()=>i.forEach(e=>e.dispose())}}createRequestHandler(e,t){return async(n,r,i)=>{let a=await t(n,{context:i,counterpart:e,newErr:Sr.factory,requestId:r});return a instanceof Sr?a.error:{ok:a}}}static getServerFromStream(e,t,n,r){let i=_r.fromTransport(t,n),{server:a}=e.getServer(i,r);return i.startListen(),{channel:i,server:a}}static registerServerToStream(e,t,n,r){let i=_r.fromTransport(t,n),{client:a}=e.registerServer(i,r);return i.startListen(),{channel:i,client:a}}getServer(e,t){let{counterpart:n,dispose:r}=this.getInterface(e,this.client,this.server,t);return{server:n,dispose:r}}registerServer(e,t){let{counterpart:n,dispose:r}=this.getInterface(e,this.server,this.client,t);return{client:n,dispose:r}}withContext(){return new e(this.tags,this.server,this.client)}},Er=(function(e){return e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`,e})({}),Z=(function(e){return e[e.File=1]=`File`,e[e.Module=2]=`Module`,e[e.Namespace=3]=`Namespace`,e[e.Package=4]=`Package`,e[e.Class=5]=`Class`,e[e.Method=6]=`Method`,e[e.Property=7]=`Property`,e[e.Field=8]=`Field`,e[e.Constructor=9]=`Constructor`,e[e.Enum=10]=`Enum`,e[e.Interface=11]=`Interface`,e[e.Function=12]=`Function`,e[e.Variable=13]=`Variable`,e[e.Constant=14]=`Constant`,e[e.String=15]=`String`,e[e.Number=16]=`Number`,e[e.Boolean=17]=`Boolean`,e[e.Array=18]=`Array`,e[e.Object=19]=`Object`,e[e.Key=20]=`Key`,e[e.Null=21]=`Null`,e[e.EnumMember=22]=`EnumMember`,e[e.Struct=23]=`Struct`,e[e.Event=24]=`Event`,e[e.Operator=25]=`Operator`,e[e.TypeParameter=26]=`TypeParameter`,e})({}),Dr=(function(e){return e[e.Deprecated=1]=`Deprecated`,e})({}),Or=(function(e){return e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`,e})({}),Q=(function(e){return e[e.Text=1]=`Text`,e[e.Method=2]=`Method`,e[e.Function=3]=`Function`,e[e.Constructor=4]=`Constructor`,e[e.Field=5]=`Field`,e[e.Variable=6]=`Variable`,e[e.Class=7]=`Class`,e[e.Interface=8]=`Interface`,e[e.Module=9]=`Module`,e[e.Property=10]=`Property`,e[e.Unit=11]=`Unit`,e[e.Value=12]=`Value`,e[e.Enum=13]=`Enum`,e[e.Keyword=14]=`Keyword`,e[e.Snippet=15]=`Snippet`,e[e.Color=16]=`Color`,e[e.File=17]=`File`,e[e.Reference=18]=`Reference`,e[e.Folder=19]=`Folder`,e[e.EnumMember=20]=`EnumMember`,e[e.Constant=21]=`Constant`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`,e})({}),kr=(function(e){return e[e.Deprecated=1]=`Deprecated`,e})({}),Ar=(function(e){return e[e.PlainText=1]=`PlainText`,e[e.Snippet=2]=`Snippet`,e})({}),jr=(function(e){return e[e.Text=1]=`Text`,e[e.Read=2]=`Read`,e[e.Write=3]=`Write`,e})({}),Mr=(function(e){return e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e})({}),Nr=(function(e){return e[e.Error=1]=`Error`,e[e.Warning=2]=`Warning`,e[e.Information=3]=`Information`,e[e.Hint=4]=`Hint`,e})({}),Pr=(function(e){return e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`,e})({}),Fr=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=3]=`TriggerForIncompleteCompletions`,e})({}),Ir=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`,e})({}),Lr=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.Automatic=2]=`Automatic`,e})({}),$=class{constructor(e){this.method=e}},Rr={textDocumentImplementation:new $(`textDocument/implementation`),textDocumentTypeDefinition:new $(`textDocument/typeDefinition`),textDocumentDocumentColor:new $(`textDocument/documentColor`),textDocumentColorPresentation:new $(`textDocument/colorPresentation`),textDocumentFoldingRange:new $(`textDocument/foldingRange`),textDocumentDeclaration:new $(`textDocument/declaration`),textDocumentSelectionRange:new $(`textDocument/selectionRange`),textDocumentPrepareCallHierarchy:new $(`textDocument/prepareCallHierarchy`),textDocumentSemanticTokensFull:new $(`textDocument/semanticTokens/full`),textDocumentSemanticTokensFullDelta:new $(`textDocument/semanticTokens/full/delta`),textDocumentLinkedEditingRange:new $(`textDocument/linkedEditingRange`),workspaceWillCreateFiles:new $(`workspace/willCreateFiles`),workspaceWillRenameFiles:new $(`workspace/willRenameFiles`),workspaceWillDeleteFiles:new $(`workspace/willDeleteFiles`),textDocumentMoniker:new $(`textDocument/moniker`),textDocumentPrepareTypeHierarchy:new $(`textDocument/prepareTypeHierarchy`),textDocumentInlineValue:new $(`textDocument/inlineValue`),textDocumentInlayHint:new $(`textDocument/inlayHint`),textDocumentDiagnostic:new $(`textDocument/diagnostic`),textDocumentInlineCompletion:new $(`textDocument/inlineCompletion`),textDocumentWillSaveWaitUntil:new $(`textDocument/willSaveWaitUntil`),textDocumentCompletion:new $(`textDocument/completion`),textDocumentHover:new $(`textDocument/hover`),textDocumentSignatureHelp:new $(`textDocument/signatureHelp`),textDocumentDefinition:new $(`textDocument/definition`),textDocumentReferences:new $(`textDocument/references`),textDocumentDocumentHighlight:new $(`textDocument/documentHighlight`),textDocumentDocumentSymbol:new $(`textDocument/documentSymbol`),textDocumentCodeAction:new $(`textDocument/codeAction`),workspaceSymbol:new $(`workspace/symbol`),textDocumentCodeLens:new $(`textDocument/codeLens`),textDocumentDocumentLink:new $(`textDocument/documentLink`),textDocumentFormatting:new $(`textDocument/formatting`),textDocumentRangeFormatting:new $(`textDocument/rangeFormatting`),textDocumentRangesFormatting:new $(`textDocument/rangesFormatting`),textDocumentOnTypeFormatting:new $(`textDocument/onTypeFormatting`),textDocumentRename:new $(`textDocument/rename`),workspaceExecuteCommand:new $(`workspace/executeCommand`),workspaceDidCreateFiles:new $(`workspace/didCreateFiles`),workspaceDidRenameFiles:new $(`workspace/didRenameFiles`),workspaceDidDeleteFiles:new $(`workspace/didDeleteFiles`),workspaceDidChangeConfiguration:new $(`workspace/didChangeConfiguration`),textDocumentDidOpen:new $(`textDocument/didOpen`),textDocumentDidChange:new $(`textDocument/didChange`),textDocumentDidClose:new $(`textDocument/didClose`),textDocumentDidSave:new $(`textDocument/didSave`),textDocumentWillSave:new $(`textDocument/willSave`),workspaceDidChangeWatchedFiles:new $(`workspace/didChangeWatchedFiles`)};Cr({server:{textDocumentImplementation:Y({method:`textDocument/implementation`}),textDocumentTypeDefinition:Y({method:`textDocument/typeDefinition`}),textDocumentDocumentColor:Y({method:`textDocument/documentColor`}),textDocumentColorPresentation:Y({method:`textDocument/colorPresentation`}),textDocumentFoldingRange:Y({method:`textDocument/foldingRange`}),textDocumentDeclaration:Y({method:`textDocument/declaration`}),textDocumentSelectionRange:Y({method:`textDocument/selectionRange`}),textDocumentPrepareCallHierarchy:Y({method:`textDocument/prepareCallHierarchy`}),callHierarchyIncomingCalls:Y({method:`callHierarchy/incomingCalls`}),callHierarchyOutgoingCalls:Y({method:`callHierarchy/outgoingCalls`}),textDocumentSemanticTokensFull:Y({method:`textDocument/semanticTokens/full`}),textDocumentSemanticTokensFullDelta:Y({method:`textDocument/semanticTokens/full/delta`}),textDocumentSemanticTokensRange:Y({method:`textDocument/semanticTokens/range`}),textDocumentLinkedEditingRange:Y({method:`textDocument/linkedEditingRange`}),workspaceWillCreateFiles:Y({method:`workspace/willCreateFiles`}),workspaceWillRenameFiles:Y({method:`workspace/willRenameFiles`}),workspaceWillDeleteFiles:Y({method:`workspace/willDeleteFiles`}),textDocumentMoniker:Y({method:`textDocument/moniker`}),textDocumentPrepareTypeHierarchy:Y({method:`textDocument/prepareTypeHierarchy`}),typeHierarchySupertypes:Y({method:`typeHierarchy/supertypes`}),typeHierarchySubtypes:Y({method:`typeHierarchy/subtypes`}),textDocumentInlineValue:Y({method:`textDocument/inlineValue`}),textDocumentInlayHint:Y({method:`textDocument/inlayHint`}),inlayHintResolve:Y({method:`inlayHint/resolve`}),textDocumentDiagnostic:Y({method:`textDocument/diagnostic`}),workspaceDiagnostic:Y({method:`workspace/diagnostic`}),textDocumentInlineCompletion:Y({method:`textDocument/inlineCompletion`}),initialize:Y({method:`initialize`}),shutdown:Y({method:`shutdown`}),textDocumentWillSaveWaitUntil:Y({method:`textDocument/willSaveWaitUntil`}),textDocumentCompletion:Y({method:`textDocument/completion`}),completionItemResolve:Y({method:`completionItem/resolve`}),textDocumentHover:Y({method:`textDocument/hover`}),textDocumentSignatureHelp:Y({method:`textDocument/signatureHelp`}),textDocumentDefinition:Y({method:`textDocument/definition`}),textDocumentReferences:Y({method:`textDocument/references`}),textDocumentDocumentHighlight:Y({method:`textDocument/documentHighlight`}),textDocumentDocumentSymbol:Y({method:`textDocument/documentSymbol`}),textDocumentCodeAction:Y({method:`textDocument/codeAction`}),codeActionResolve:Y({method:`codeAction/resolve`}),workspaceSymbol:Y({method:`workspace/symbol`}),workspaceSymbolResolve:Y({method:`workspaceSymbol/resolve`}),textDocumentCodeLens:Y({method:`textDocument/codeLens`}),codeLensResolve:Y({method:`codeLens/resolve`}),textDocumentDocumentLink:Y({method:`textDocument/documentLink`}),documentLinkResolve:Y({method:`documentLink/resolve`}),textDocumentFormatting:Y({method:`textDocument/formatting`}),textDocumentRangeFormatting:Y({method:`textDocument/rangeFormatting`}),textDocumentRangesFormatting:Y({method:`textDocument/rangesFormatting`}),textDocumentOnTypeFormatting:Y({method:`textDocument/onTypeFormatting`}),textDocumentRename:Y({method:`textDocument/rename`}),textDocumentPrepareRename:Y({method:`textDocument/prepareRename`}),workspaceExecuteCommand:Y({method:`workspace/executeCommand`}),workspaceDidChangeWorkspaceFolders:X({method:`workspace/didChangeWorkspaceFolders`}),windowWorkDoneProgressCancel:X({method:`window/workDoneProgress/cancel`}),workspaceDidCreateFiles:X({method:`workspace/didCreateFiles`}),workspaceDidRenameFiles:X({method:`workspace/didRenameFiles`}),workspaceDidDeleteFiles:X({method:`workspace/didDeleteFiles`}),notebookDocumentDidOpen:X({method:`notebookDocument/didOpen`}),notebookDocumentDidChange:X({method:`notebookDocument/didChange`}),notebookDocumentDidSave:X({method:`notebookDocument/didSave`}),notebookDocumentDidClose:X({method:`notebookDocument/didClose`}),initialized:X({method:`initialized`}),exit:X({method:`exit`}),workspaceDidChangeConfiguration:X({method:`workspace/didChangeConfiguration`}),textDocumentDidOpen:X({method:`textDocument/didOpen`}),textDocumentDidChange:X({method:`textDocument/didChange`}),textDocumentDidClose:X({method:`textDocument/didClose`}),textDocumentDidSave:X({method:`textDocument/didSave`}),textDocumentWillSave:X({method:`textDocument/willSave`}),workspaceDidChangeWatchedFiles:X({method:`workspace/didChangeWatchedFiles`}),setTrace:X({method:`$/setTrace`}),cancelRequest:X({method:`$/cancelRequest`}),progress:X({method:`$/progress`})},client:{workspaceWorkspaceFolders:Y({method:`workspace/workspaceFolders`}).optional(),workspaceConfiguration:Y({method:`workspace/configuration`}).optional(),workspaceFoldingRangeRefresh:Y({method:`workspace/foldingRange/refresh`}).optional(),windowWorkDoneProgressCreate:Y({method:`window/workDoneProgress/create`}).optional(),workspaceSemanticTokensRefresh:Y({method:`workspace/semanticTokens/refresh`}).optional(),windowShowDocument:Y({method:`window/showDocument`}).optional(),workspaceInlineValueRefresh:Y({method:`workspace/inlineValue/refresh`}).optional(),workspaceInlayHintRefresh:Y({method:`workspace/inlayHint/refresh`}).optional(),workspaceDiagnosticRefresh:Y({method:`workspace/diagnostic/refresh`}).optional(),clientRegisterCapability:Y({method:`client/registerCapability`}).optional(),clientUnregisterCapability:Y({method:`client/unregisterCapability`}).optional(),windowShowMessageRequest:Y({method:`window/showMessageRequest`}).optional(),workspaceCodeLensRefresh:Y({method:`workspace/codeLens/refresh`}).optional(),workspaceApplyEdit:Y({method:`workspace/applyEdit`}).optional(),windowShowMessage:X({method:`window/showMessage`}),windowLogMessage:X({method:`window/logMessage`}),telemetryEvent:X({method:`telemetry/event`}),textDocumentPublishDiagnostics:X({method:`textDocument/publishDiagnostics`}),logTrace:X({method:`$/logTrace`}),cancelRequest:X({method:`$/cancelRequest`}),progress:X({method:`$/progress`})}}),$n=class{constructor(){q(this,`_store`,new zr)}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},q($n,`None`,Object.freeze({dispose(){}}));var zr=(er=class{constructor(){q(this,`_toDispose`,new Set),q(this,`_isDisposed`,!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(this._toDispose.size!==0)try{for(let e of this._toDispose)e.dispose()}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._isDisposed?er.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(e),e}},q(er,`DISABLE_DISPOSED_WARNING`,!1),er);Mr.Empty,Mr.QuickFix,Mr.Refactor,Mr.RefactorExtract,Mr.RefactorInline,Mr.RefactorRewrite,Mr.Source,Mr.SourceOrganizeImports,Mr.SourceFixAll,G.CodeActionTriggerType.Invoke,Lr.Invoked,G.CodeActionTriggerType.Auto,Lr.Automatic,Q.Text,G.CompletionItemKind.Text,Q.Method,G.CompletionItemKind.Method,Q.Function,G.CompletionItemKind.Function,Q.Constructor,G.CompletionItemKind.Constructor,Q.Field,G.CompletionItemKind.Field,Q.Variable,G.CompletionItemKind.Variable,Q.Class,G.CompletionItemKind.Class,Q.Interface,G.CompletionItemKind.Interface,Q.Module,G.CompletionItemKind.Module,Q.Property,G.CompletionItemKind.Property,Q.Unit,G.CompletionItemKind.Unit,Q.Value,G.CompletionItemKind.Value,Q.Enum,G.CompletionItemKind.Enum,Q.Keyword,G.CompletionItemKind.Keyword,Q.Snippet,G.CompletionItemKind.Snippet,Q.Color,G.CompletionItemKind.Color,Q.File,G.CompletionItemKind.File,Q.Reference,G.CompletionItemKind.Reference,Q.Folder,G.CompletionItemKind.Folder,Q.EnumMember,G.CompletionItemKind.EnumMember,Q.Constant,G.CompletionItemKind.Constant,Q.Struct,G.CompletionItemKind.Struct,Q.Event,G.CompletionItemKind.Event,Q.Operator,G.CompletionItemKind.Operator,Q.TypeParameter,G.CompletionItemKind.TypeParameter,kr.Deprecated,G.CompletionItemTag.Deprecated,G.CompletionTriggerKind.Invoke,Fr.Invoked,G.CompletionTriggerKind.TriggerCharacter,Fr.TriggerCharacter,G.CompletionTriggerKind.TriggerForIncompleteCompletions,Fr.TriggerForIncompleteCompletions,Ar.Snippet,G.CompletionItemInsertTextRule.InsertAsSnippet,Z.File,G.SymbolKind.File,Z.Module,G.SymbolKind.Module,Z.Namespace,G.SymbolKind.Namespace,Z.Package,G.SymbolKind.Package,Z.Class,G.SymbolKind.Class,Z.Method,G.SymbolKind.Method,Z.Property,G.SymbolKind.Property,Z.Field,G.SymbolKind.Field,Z.Constructor,G.SymbolKind.Constructor,Z.Enum,G.SymbolKind.Enum,Z.Interface,G.SymbolKind.Interface,Z.Function,G.SymbolKind.Function,Z.Variable,G.SymbolKind.Variable,Z.Constant,G.SymbolKind.Constant,Z.String,G.SymbolKind.String,Z.Number,G.SymbolKind.Number,Z.Boolean,G.SymbolKind.Boolean,Z.Array,G.SymbolKind.Array,Z.Object,G.SymbolKind.Object,Z.Key,G.SymbolKind.Key,Z.Null,G.SymbolKind.Null,Z.EnumMember,G.SymbolKind.EnumMember,Z.Struct,G.SymbolKind.Struct,Z.Event,G.SymbolKind.Event,Z.Operator,G.SymbolKind.Operator,Z.TypeParameter,G.SymbolKind.TypeParameter,Dr.Deprecated,G.SymbolTag.Deprecated,jr.Text,G.DocumentHighlightKind.Text,jr.Read,G.DocumentHighlightKind.Read,jr.Write,G.DocumentHighlightKind.Write,Er.Comment,G.FoldingRangeKind.Comment,Er.Imports,G.FoldingRangeKind.Imports,Er.Region,G.FoldingRangeKind.Region,Ge.Error,Nr.Error,Ge.Warning,Nr.Warning,Ge.Info,Nr.Information,Ge.Hint,Nr.Hint,Nr.Error,Ge.Error,Nr.Warning,Ge.Warning,Nr.Information,Ge.Info,Nr.Hint,Ge.Hint,Pr.Unnecessary,Ue.Unnecessary,Pr.Deprecated,Ue.Deprecated,G.SignatureHelpTriggerKind.Invoke,Ir.Invoked,G.SignatureHelpTriggerKind.TriggerCharacter,Ir.TriggerCharacter,G.SignatureHelpTriggerKind.ContentChange,Ir.ContentChange,Or.Type,G.InlayHintKind.Type,Or.Parameter,G.InlayHintKind.Parameter,new Map([...Object.values(Rr)].map(e=>[e.method,e])),typeof WebSocket<`u`||(typeof MozWebSocket<`u`?MozWebSocket:typeof global<`u`?global.WebSocket||global.MozWebSocket:typeof window<`u`?window.WebSocket||window.MozWebSocket:typeof self<`u`&&(self.WebSocket||self.MozWebSocket));function Br(){return Ke}globalThis.MonacoEnvironment?.globalAPI&&(globalThis.monaco=Br());var Vr=Br();Vr.languages.css=vn,Vr.languages.html=En,Vr.languages.typescript=Xe,Vr.languages.json=Vn;var Hr={class:`file-editor`},Ur={class:`editor-header`},Wr={class:`editor-filename`},Gr=j(v({__name:`FileEditor`,setup(e){self.MonacoEnvironment={getWorker(e,t){return new Worker(new URL(`/webui/assets/editor.worker-Bd9IXS8d.js`,``+import.meta.url),{type:`module`})}};let{t}=R(),n=He(),r=l(),i=Xt(),a=z(null),o=null,s=z(!1);de(()=>{!a.value||!i.editingFile||(o=We.create(a.value,{value:i.editingFile.content,language:i.editingFile.language,theme:document.documentElement.classList.contains(`dark`)?`vs-dark`:`vs`,minimap:{enabled:!1},fontSize:13,lineNumbers:`on`,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:`on`}),o.onDidChangeModelContent(()=>{i.editingFile&&(i.editingFile.content=o.getValue())}),o.addCommand(Je.CtrlCmd|qe.KeyS,()=>{c()}))}),C(()=>{o?.dispose(),o=null});async function c(){s.value=!0;try{await i.saveEditor(),n.success(t(`files.saved`))}catch{n.error(t(`files.saveFailed`))}finally{s.value=!1}}function d(){i.hasUnsavedChanges?r.warning({title:t(`files.unsavedChanges`),positiveText:t(`common.ok`),negativeText:t(`common.cancel`),onPositiveClick:()=>{i.closeEditor()}}):i.closeEditor()}return(e,n)=>(x(),F(`div`,Hr,[D(`div`,Ur,[D(`span`,Wr,M(A(i).editingFile?.path),1),O(A(u),null,{default:k(()=>[O(A(I),{size:`small`,type:`primary`,loading:s.value,onClick:c},{default:k(()=>[E(M(A(t)(`files.saveFile`)),1)]),_:1},8,[`loading`]),O(A(I),{size:`small`,onClick:d},{default:k(()=>[E(M(A(t)(`files.closeEditor`)),1)]),_:1})]),_:1})]),D(`div`,{ref_key:`editorContainer`,ref:a,class:`editor-container`},null,512)]))}}),[[`__scopeId`,`data-v-bf0681f5`]]),Kr={key:0,class:`file-preview`},qr={class:`preview-header`},Jr={class:`preview-filename`},Yr={class:`preview-content`},Xr=[`src`,`alt`],Zr={key:1,class:`preview-markdown`},Qr=j(v({__name:`FilePreview`,setup(e){let{t}=R(),n=Xt();function r(){return n.previewFile?Vt(n.previewFile.path):``}let i=()=>T(`svg`,{viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`currentColor`},[T(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`})]);return(e,a)=>A(n).previewFile?(x(),F(`div`,Kr,[D(`div`,qr,[D(`span`,Jr,M(A(n).previewFile.path),1),O(A(I),{size:`small`,quaternary:``,onClick:a[0]||=e=>A(n).closePreview()},{icon:k(()=>[O(A(o),null,{default:k(()=>[O(i)]),_:1})]),default:k(()=>[E(` `+M(A(t)(`files.closePreview`)),1)]),_:1})]),D(`div`,Yr,[A(n).previewFile.type===`image`?(x(),F(`img`,{key:0,src:r(),class:`preview-image`,alt:A(n).previewFile.path},null,8,Xr)):A(n).previewFile.type===`markdown`?(x(),F(`div`,Zr,[O($e,{content:A(n).previewFile.content||``},null,8,[`content`])])):p(``,!0)])])):p(``,!0)}}),[[`__scopeId`,`data-v-a9f9eb37`]]),$r={class:`upload-dragger`},ei=j(v({__name:`FileUploadModal`,props:{show:{type:Boolean}},emits:[`update:show`],setup(e,{emit:t}){let{t:n}=R(),r=He(),i=Xt(),a=e,o=t,s=z(!1),l=z([]);function d(e){l.value=e.fileList.map(e=>e.file).filter(e=>e!=null)}async function f(){if(l.value.length!==0){s.value=!0;try{await i.uploadFiles(l.value),r.success(n(`files.uploadSuccess`,{count:l.value.length})),l.value=[],o(`update:show`,!1)}catch(e){r.error(e.message||n(`files.uploadFailed`))}finally{s.value=!1}}}function p(){l.value=[],o(`update:show`,!1)}return(e,t)=>(x(),L(A(be),{show:a.show,preset:`dialog`,title:A(n)(`files.upload`),"onUpdate:show":p,style:{width:`500px`}},{action:k(()=>[O(A(u),null,{default:k(()=>[O(A(I),{onClick:p},{default:k(()=>[E(M(A(n)(`common.cancel`)),1)]),_:1}),O(A(I),{type:`primary`,loading:s.value,disabled:l.value.length===0,onClick:f},{default:k(()=>[E(M(A(n)(`files.upload`))+` (`+M(l.value.length)+`) `,1)]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:k(()=>[O(A(c),{multiple:``,"directory-dnd":``,"default-upload":!1,onChange:d},{default:k(()=>[D(`div`,$r,[D(`p`,null,M(A(n)(`files.dragDropHint`)),1)])]),_:1})]),_:1},8,[`show`,`title`]))}}),[[`__scopeId`,`data-v-e54e68b1`]]),ti=v({__name:`FileRenameModal`,props:{show:{type:Boolean},mode:{},entry:{}},emits:[`update:show`],setup(e,{emit:t}){let{t:n}=R(),r=He(),i=Xt(),a=e,o=t,s=z(``),c=z(!1);ge(()=>a.show,e=>{e&&(a.mode===`rename`&&a.entry?s.value=a.entry.name:s.value=``)});let l=g(()=>{switch(a.mode){case`newFile`:return n(`files.newFile`);case`newFolder`:return n(`files.newFolder`);case`rename`:return n(`files.rename`)}}),d=g(()=>{switch(a.mode){case`newFile`:return n(`files.newFileName`);case`newFolder`:return n(`files.newFolderName`);case`rename`:return n(`files.renameTo`)}});async function f(){if(s.value.trim()){c.value=!0;try{switch(a.mode){case`newFile`:await i.createFile(s.value.trim()),r.success(n(`files.created`));break;case`newFolder`:await i.createDir(s.value.trim()),r.success(n(`files.created`));break;case`rename`:a.entry&&(await i.renameEntry(a.entry,s.value.trim()),r.success(n(`files.renamed`)));break}o(`update:show`,!1)}catch(e){let t=a.mode===`rename`?n(`files.renameFailed`):n(`files.createFailed`);r.error(e.message||t)}finally{c.value=!1}}}return(e,t)=>(x(),L(A(be),{show:a.show,preset:`dialog`,title:l.value,"onUpdate:show":t[2]||=e=>o(`update:show`,!1),style:{width:`400px`}},{action:k(()=>[O(A(u),null,{default:k(()=>[O(A(I),{onClick:t[1]||=e=>o(`update:show`,!1)},{default:k(()=>[E(M(A(n)(`common.cancel`)),1)]),_:1}),O(A(I),{type:`primary`,loading:c.value,disabled:!s.value.trim(),onClick:f},{default:k(()=>[E(M(A(n)(`common.ok`)),1)]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:k(()=>[O(A(ae),{value:s.value,"onUpdate:value":t[0]||=e=>s.value=e,placeholder:d.value,onKeydown:Ve(f,[`enter`]),autofocus:``},null,8,[`value`,`placeholder`])]),_:1},8,[`show`,`title`]))}}),ni={class:`files-view`},ri={class:`files-tree-panel`},ii={class:`files-main-panel`},ai={class:`files-content`},oi=j(v({__name:`FilesView`,setup(e){let t=Xt(),n=z(null),r=z(!1),i=z(!1),a=z(`newFile`),o=z(null);function s(e,t){n.value?.show(e,t)}function c(){a.value=`newFile`,o.value=null,i.value=!0}function l(){a.value=`newFolder`,o.value=null,i.value=!0}function u(e){a.value=`rename`,o.value=e,i.value=!0}return de(()=>{t.fetchEntries(``)}),(e,d)=>(x(),F(`div`,ni,[D(`div`,ri,[O(Qt)]),D(`div`,ii,[O(nn,{onShowNewFile:c,onShowNewFolder:l,onShowUpload:d[0]||=e=>r.value=!0}),O(en),D(`div`,ai,[A(t).editingFile?(x(),L(Gr,{key:0})):A(t).previewFile?(x(),L(Qr,{key:1})):(x(),L(gn,{key:2,onContextmenuEntry:s}))])]),O(_n,{ref_key:`contextMenuRef`,ref:n,onRename:u},null,512),O(ei,{show:r.value,"onUpdate:show":d[1]||=e=>r.value=e},null,8,[`show`]),O(ti,{show:i.value,"onUpdate:show":d[2]||=e=>i.value=e,mode:a.value,entry:o.value},null,8,[`show`,`mode`,`entry`])]))}}),[[`__scopeId`,`data-v-4513759a`]]);export{oi as default}; \ No newline at end of file diff --git a/webui/assets/FilesView-W1cq2eQW.css b/webui/assets/FilesView-W1cq2eQW.css new file mode 100644 index 0000000000000000000000000000000000000000..16c35a80e1e55f5cc081d93f4170637c853e9dd7 --- /dev/null +++ b/webui/assets/FilesView-W1cq2eQW.css @@ -0,0 +1 @@ +[data-v-7f00b3bc]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-7f00b3bc]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.file-tree[data-v-7f00b3bc]{padding:8px}.tree-header[data-v-7f00b3bc]{cursor:pointer;color:var(--text-primary);border-radius:6px;align-items:center;gap:8px;padding:8px 12px;font-size:13px;font-weight:500;display:flex}.tree-header[data-v-7f00b3bc]:hover{background-color:rgba(var(--accent-primary-rgb), .06)}.file-breadcrumb[data-v-061302de]{padding:0 16px}.file-toolbar[data-v-138da008]{border-bottom:1px solid var(--border-color);padding:12px 16px}[data-v-ab2593c7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-ab2593c7]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.file-list[data-v-ab2593c7]{padding:8px 16px}.file-list-header[data-v-ab2593c7]{color:var(--text-muted);border-bottom:1px solid var(--border-light);-webkit-user-select:none;user-select:none;align-items:center;gap:16px;margin-bottom:4px;padding:6px 12px;font-size:12px;font-weight:500;display:flex}.sort-header[data-v-ab2593c7]{cursor:pointer}.sort-header[data-v-ab2593c7]:hover{color:var(--text-primary)}.sort-indicator[data-v-ab2593c7]{margin-left:2px;font-size:11px}.file-actions-placeholder[data-v-ab2593c7]{flex-shrink:0;width:60px}.file-list-row[data-v-ab2593c7]{cursor:pointer;border-radius:6px;align-items:center;gap:16px;padding:8px 12px;font-size:13px;display:flex}.file-list-row[data-v-ab2593c7]:hover{background-color:rgba(var(--accent-primary-rgb), .06)}.file-list-row:hover .file-actions[data-v-ab2593c7]{opacity:1}.file-name[data-v-ab2593c7]{text-overflow:ellipsis;white-space:nowrap;flex:1;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.file-icon[data-v-ab2593c7]{flex-shrink:0}.file-size[data-v-ab2593c7]{text-align:right;width:80px;color:var(--text-secondary);flex-shrink:0}.file-date[data-v-ab2593c7]{width:160px;color:var(--text-secondary);flex-shrink:0}.file-actions[data-v-ab2593c7]{opacity:0;flex-shrink:0;gap:4px;transition:opacity .15s;display:flex}@media (width<=768px){.file-size[data-v-ab2593c7],.file-date[data-v-ab2593c7]{display:none}}[data-v-bf0681f5]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-bf0681f5]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.file-editor[data-v-bf0681f5]{flex-direction:column;height:100%;display:flex}.editor-header[data-v-bf0681f5]{border-bottom:1px solid var(--border-color);background-color:var(--bg-card);justify-content:space-between;align-items:center;padding:8px 16px;display:flex}.editor-filename[data-v-bf0681f5]{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.editor-container[data-v-bf0681f5]{flex:1;min-height:0}[data-v-a9f9eb37]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-a9f9eb37]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.file-preview[data-v-a9f9eb37]{flex-direction:column;height:100%;display:flex}.preview-header[data-v-a9f9eb37]{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:8px 16px;display:flex}.preview-filename[data-v-a9f9eb37]{color:var(--text-secondary);font-size:13px}.preview-content[data-v-a9f9eb37]{flex:1;justify-content:center;padding:16px;display:flex;overflow:auto}.preview-image[data-v-a9f9eb37]{object-fit:contain;max-width:100%;max-height:100%}.preview-markdown[data-v-a9f9eb37]{width:100%;max-width:800px}.upload-dragger[data-v-e54e68b1]{text-align:center;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;padding:40px 20px;display:flex}.upload-dragger p[data-v-e54e68b1]{opacity:.6;margin-top:12px;font-size:14px}[data-v-4513759a]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-4513759a]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.files-view[data-v-4513759a]{height:100%;display:flex;overflow:hidden}.files-tree-panel[data-v-4513759a]{border-right:1px solid var(--border-color);flex-shrink:0;width:240px;min-width:180px;max-width:400px;overflow-y:auto}.files-main-panel[data-v-4513759a]{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.files-content[data-v-4513759a]{flex:1;min-height:0;overflow-y:auto}@media (width<=768px){.files-view[data-v-4513759a]{flex-direction:column}.files-tree-panel[data-v-4513759a]{border-right:none;border-bottom:1px solid var(--border-color);width:100%;max-width:none;height:200px}} diff --git a/webui/assets/FormItem-DB8yIr9W.js b/webui/assets/FormItem-DB8yIr9W.js new file mode 100644 index 0000000000000000000000000000000000000000..49d0c7a73abc3472d1abeee6ebfccc4b1f63823a --- /dev/null +++ b/webui/assets/FormItem-DB8yIr9W.js @@ -0,0 +1,110 @@ +import{$n as e,Dr as t,Fr as n,Ft as r,Hr as i,Ir as a,Kr as o,Lr as s,Pn as c,Rr as l,Ur as u,Wn as d,Xr as f,_ as p,_r as m,at as h,cn as g,er as _,fn as v,in as y,ir as b,it as x,ni as S,nr as C,ri as w,rn as ee,tn as te,tr as T,vn as E,yn as D}from"./index-Cl8-DFW_.js";function ne(e,t,n){let r=l(e,null);if(r===null)return;let o=a()?.proxy;f(n,s),s(n.value),i(()=>{s(void 0,n.value)});function s(e,n){if(!r)return;let i=r[t];n!==void 0&&c(i,n),e!==void 0&&u(i,e)}function c(e,t){e[t]||(e[t]=[]),e[t].splice(e[t].findIndex(e=>e===o),1)}function u(e,t){e[t]||(e[t]=[]),~e[t].findIndex(e=>e===o)||e[t].push(o)}}var O=c(`n-form`),re=c(`n-form-item-insts`),k=_(`form`,[C(`inline`,` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[_(`form-item`,{width:`auto`,marginRight:`18px`},[e(`&:last-child`,{marginRight:0})])])]),A=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},ie=n({name:`Form`,props:Object.assign(Object.assign({},x.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:`top`},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),setup(e){let{mergedClsPrefixRef:t}=y(e);x(`Form`,`-form`,k,p,e,t);let n={},r=S(void 0),i=e=>{let t=r.value;(t===void 0||e>=t)&&(r.value=e)};function a(){var e;for(let t of v(n)){let r=n[t];for(let t of r)(e=t.invalidateLabelWidth)==null||e.call(t)}}function s(e){return A(this,arguments,void 0,function*(e,t=()=>!0){return yield new Promise((r,i)=>{let a=[];for(let e of v(n)){let r=n[e];for(let e of r)e.path&&a.push(e.internalValidate(null,t))}Promise.all(a).then(t=>{let n=t.some(e=>!e.valid),a=[],o=[];t.forEach(e=>{e.errors?.length&&a.push(e.errors),e.warnings?.length&&o.push(e.warnings)}),e&&e(a.length?a:void 0,{warnings:o.length?o:void 0}),n?i(a.length?a:void 0):r({warnings:o.length?o:void 0})})})})}function c(){for(let e of v(n)){let t=n[e];for(let e of t)e.restoreValidation()}}return o(O,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:i}),o(re,{formItems:n}),Object.assign({validate:s,restoreValidation:c,invalidateLabelWidth:a},{mergedClsPrefix:t})},render(){let{mergedClsPrefix:e}=this;return s(`form`,{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F(e,t,n){return F=ae()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&P(i,n.prototype),i},F.apply(null,arguments)}function oe(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function I(e){var t=typeof Map==`function`?new Map:void 0;return I=function(e){if(e===null||!oe(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return F(e,arguments,N(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),P(n,e)},I(e)}var se=/%[sdj%]/g,ce=function(){};function L(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function R(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(se,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function le(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function z(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||le(t)&&typeof e==`string`&&!e)}function ue(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e||[]),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function B(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},G={integer:function(e){return G.number(e)&&parseInt(e,10)===e},float:function(e){return G.number(e)&&!G.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return typeof e==`object`&&!G.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(ve.email)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(_e())},hex:function(e){return typeof e==`string`&&!!e.match(ve.hex)}},ye=function(e,t,n,r,i){if(e.required&&t===void 0){he(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?G[o](t)||r.push(R(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(R(i.messages.types[o],e.fullField,e.type))},be=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(R(i.messages[u].len,e.fullField,e.len)):o&&!s&&le.max?r.push(R(i.messages[u].max,e.fullField,e.max)):o&&s&&(le.max)&&r.push(R(i.messages[u].range,e.fullField,e.min,e.max))},K=`enum`,q={required:he,whitespace:ge,type:ye,range:be,enum:function(e,t,n,r,i){e[K]=Array.isArray(e[K])?e[K]:[],e[K].indexOf(t)===-1&&r.push(R(i.messages[K],e.fullField,e[K].join(`, `)))},pattern:function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},xe=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t,`string`)&&!e.required)return n();q.required(e,t,r,a,i,`string`),z(t,`string`)||(q.type(e,t,r,a,i),q.range(e,t,r,a,i),q.pattern(e,t,r,a,i),e.whitespace===!0&&q.whitespace(e,t,r,a,i))}n(a)},Se=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&q.type(e,t,r,a,i)}n(a)},Ce=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),z(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&(q.type(e,t,r,a,i),q.range(e,t,r,a,i))}n(a)},we=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&q.type(e,t,r,a,i)}n(a)},Te=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t)&&!e.required)return n();q.required(e,t,r,a,i),z(t)||q.type(e,t,r,a,i)}n(a)},Ee=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&(q.type(e,t,r,a,i),q.range(e,t,r,a,i))}n(a)},De=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&(q.type(e,t,r,a,i),q.range(e,t,r,a,i))}n(a)},Oe=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();q.required(e,t,r,a,i,`array`),t!=null&&(q.type(e,t,r,a,i),q.range(e,t,r,a,i))}n(a)},ke=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&q.type(e,t,r,a,i)}n(a)},Ae=`enum`,je=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&q[Ae](e,t,r,a,i)}n(a)},Me=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t,`string`)&&!e.required)return n();q.required(e,t,r,a,i),z(t,`string`)||q.pattern(e,t,r,a,i)}n(a)},Ne=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t,`date`)&&!e.required)return n();if(q.required(e,t,r,a,i),!z(t,`date`)){var o=t instanceof Date?t:new Date(t);q.type(e,o,r,a,i),o&&q.range(e,o.getTime(),r,a,i)}}n(a)},Pe=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:typeof t;q.required(e,t,r,a,i,o),n(a)},J=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t,a)&&!e.required)return n();q.required(e,t,r,o,i,a),z(t,a)||q.type(e,t,r,o,i)}n(o)},Y={string:xe,method:Se,number:Ce,boolean:we,regexp:Te,integer:Ee,float:De,array:Oe,object:ke,enum:je,pattern:Me,date:Ne,url:J,hex:J,email:J,required:Pe,any:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(z(t)&&!e.required)return n();q.required(e,t,r,a,i)}n(a)}};function X(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Z=X(),Q=function(){function e(e){this.rules=null,this._messages=Z,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(typeof e!=`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=U(X(),e)),this._messages},t.validate=function(t,n,r){var i=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var a=t,o=n,s=r;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,e)}else t.push(e)}for(var i=0;ie.size===void 0?n?.props.size===void 0?r?.value?.Form?.size||`medium`:n.props.size:e.size)}}function Re(e){let n=l(O,null),r=t(()=>{let{labelPlacement:t}=e;return t===void 0?n?.props.labelPlacement?n.props.labelPlacement:`top`:t}),i=t(()=>r.value===`left`&&(e.labelWidth===`auto`||n?.props.labelWidth===`auto`)),a=t(()=>{if(r.value===`top`)return;let{labelWidth:t}=e;if(t!==void 0&&t!==`auto`)return D(t);if(i.value){let e=n?.maxChildLabelWidthRef.value;return e===void 0?void 0:D(e)}if(n?.props.labelWidth!==void 0)return D(n.props.labelWidth)}),o=t(()=>{let{labelAlign:t}=e;if(t)return t;if(n?.props.labelAlign)return n.props.labelAlign}),s=t(()=>[e.labelProps?.style,e.labelStyle,{width:a.value}]),c=t(()=>{let{showRequireMark:t}=e;return t===void 0?n?.props.showRequireMark:t}),u=t(()=>{let{requireMarkPlacement:t}=e;return t===void 0?n?.props.requireMarkPlacement||`right`:t}),d=S(!1),f=S(!1);return{validationErrored:d,validationWarned:f,mergedLabelStyle:s,mergedLabelPlacement:r,mergedLabelAlign:o,mergedShowRequireMark:c,mergedRequireMarkPlacement:u,mergedValidationStatus:t(()=>{let{validationStatus:t}=e;if(t!==void 0)return t;if(d.value)return`error`;if(f.value)return`warning`}),mergedShowFeedback:t(()=>{let{showFeedback:t}=e;return t===void 0?n?.props.showFeedback===void 0?!0:n.props.showFeedback:t}),mergedShowLabel:t(()=>{let{showLabel:t}=e;return t===void 0?n?.props.showLabel===void 0?!0:n.props.showLabel:t}),isAutoLabelWidth:i}}function ze(e){let n=l(O,null),i=t(()=>{let{rulePath:t}=e;if(t!==void 0)return t;let{path:n}=e;if(n!==void 0)return n}),a=t(()=>{let t=[],{rule:a}=e;if(a!==void 0&&(Array.isArray(a)?t.push(...a):t.push(a)),n){let{rules:e}=n.props,{value:a}=i;if(e!==void 0&&a!==void 0){let n=r(e,a);n!==void 0&&(Array.isArray(n)?t.push(...n):t.push(n))}}return t}),o=t(()=>a.value.some(e=>e.required));return{mergedRules:a,mergedRequired:t(()=>o.value||e.required)}}var Be=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Ve=Object.assign(Object.assign({},x.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object,contentClass:String,contentStyle:[String,Object]});v(Ve);function He(e,t){return(...n)=>{try{let r=e(...n);return!t&&(typeof r==`boolean`||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||E(`form-item/validate`,`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${t?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(e){E(`form-item/validate`,"An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(e);return}}}var Ue=n({name:`FormItem`,props:Ve,slots:Object,setup(e){ne(re,`formItems`,w(e,`path`));let{mergedClsPrefixRef:n,inlineThemeDisabled:i}=y(e),a=l(O,null),s=Le(e),c=Re(e),{validationErrored:m,validationWarned:h}=c,{mergedRequired:g,mergedRules:_}=ze(e),{mergedSize:v}=s,{mergedLabelPlacement:C,mergedLabelAlign:T,mergedRequireMarkPlacement:E}=c,D=S([]),k=S(d()),A=S(null),ie=a?w(a.props,`disabled`):S(!1),j=x(`Form`,`-form-item`,Ie,p,e,n);f(w(e,`path`),()=>{e.ignorePathChange||N()});function M(){if(!c.isAutoLabelWidth.value)return;let e=A.value;if(e!==null){let t=e.style.whiteSpace;e.style.whiteSpace=`nowrap`,e.style.width=``,a?.deriveMaxChildLabelWidth(Number(getComputedStyle(e).width.slice(0,-2))),e.style.whiteSpace=t}}function N(){D.value=[],m.value=!1,h.value=!1,e.feedback&&(k.value=d())}let P=(...t)=>Be(this,[...t],void 0,function*(t=null,n=()=>!0,i={suppressWarning:!0}){let{path:o}=e;i?i.first||=e.first:i={};let{value:s}=_,c=a?r(a.props.model,o||``):void 0,l={},u={},d=(t?s.filter(e=>Array.isArray(e.trigger)?e.trigger.includes(t):e.trigger===t):s).filter(n).map((e,t)=>{let n=Object.assign({},e);if(n.validator&&=He(n.validator,!1),n.asyncValidator&&=He(n.asyncValidator,!0),n.renderMessage){let e=`__renderMessage__${t}`;u[e]=n.message,n.message=e,l[e]=n.renderMessage}return n}),f=d.filter(e=>e.level!==`warning`),p=d.filter(e=>e.level===`warning`),g={valid:!0,errors:void 0,warnings:void 0};if(!d.length)return g;let v=o??`__n_no_path__`,y=new Q({[v]:f}),b=new Q({[v]:p}),{validateMessages:x}=a?.props||{};x&&(y.messages(x),b.messages(x));let S=e=>{D.value=e.map(e=>{let t=e?.message||``;return{key:t,render:()=>t.startsWith(`__renderMessage__`)?l[t]():t}}),e.forEach(e=>{e.message?.startsWith(`__renderMessage__`)&&(e.message=u[e.message])})};if(f.length){let e=yield new Promise(e=>{y.validate({[v]:c},i,e)});e?.length&&(g.valid=!1,g.errors=e,S(e))}if(p.length&&!g.errors){let e=yield new Promise(e=>{b.validate({[v]:c},i,e)});e?.length&&(S(e),g.warnings=e)}return!g.errors&&!g.warnings?N():(m.value=!!g.errors,h.value=!!g.warnings),g});function ae(){P(`blur`)}function F(){P(`change`)}function oe(){P(`focus`)}function I(){P(`input`)}function se(e,t){return Be(this,void 0,void 0,function*(){let n,r,i,a;return typeof e==`string`?(n=e,r=t):typeof e==`object`&&e&&(n=e.trigger,r=e.callback,i=e.shouldRuleBeApplied,a=e.options),yield new Promise((e,t)=>{P(n,i,a).then(({valid:n,errors:i,warnings:a})=>{n?(r&&r(void 0,{warnings:a}),e({warnings:a})):(r&&r(i,{warnings:a}),t(i))})})})}o(te,{path:w(e,`path`),disabled:ie,mergedSize:s.mergedSize,mergedValidationStatus:c.mergedValidationStatus,restoreValidation:N,handleContentBlur:ae,handleContentChange:F,handleContentFocus:oe,handleContentInput:I});let ce={validate:se,restoreValidation:N,internalValidate:P,invalidateLabelWidth:M};u(M);let L=t(()=>{let{value:e}=v,{value:t}=C,n=t===`top`?`vertical`:`horizontal`,{common:{cubicBezierEaseInOut:r},self:{labelTextColor:i,asteriskColor:a,lineHeight:o,feedbackTextColor:s,feedbackTextColorWarning:c,feedbackTextColorError:l,feedbackPadding:u,labelFontWeight:d,[b(`labelHeight`,e)]:f,[b(`blankHeight`,e)]:p,[b(`feedbackFontSize`,e)]:m,[b(`feedbackHeight`,e)]:h,[b(`labelPadding`,n)]:g,[b(`labelTextAlign`,n)]:_,[b(b(`labelFontSize`,t),e)]:y}}=j.value,x=T.value??_;return t===`top`&&(x=x===`right`?`flex-end`:`flex-start`),{"--n-bezier":r,"--n-line-height":o,"--n-blank-height":p,"--n-label-font-size":y,"--n-label-text-align":x,"--n-label-height":f,"--n-label-padding":g,"--n-label-font-weight":d,"--n-asterisk-color":a,"--n-label-text-color":i,"--n-feedback-padding":u,"--n-feedback-font-size":m,"--n-feedback-height":h,"--n-feedback-text-color":s,"--n-feedback-text-color-warning":c,"--n-feedback-text-color-error":l}}),R=i?ee(`form-item`,t(()=>`${v.value[0]}${C.value[0]}${T.value?.[0]||``}`),L,e):void 0,le=t(()=>C.value===`left`&&E.value===`left`&&T.value===`left`);return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:A,mergedClsPrefix:n,mergedRequired:g,feedbackId:k,renderExplains:D,reverseColSpace:le},c),s),ce),{cssVars:i?void 0:L,themeClass:R?.themeClass,onRender:R?.onRender})},render(){let{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:i,onRender:a}=this,o=r===void 0?this.mergedRequired:r;return a?.(),s(`div`,{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&(()=>{let e=this.$slots.label?this.$slots.label():this.label;if(!e)return null;let n=s(`span`,{class:`${t}-form-item-label__text`},e),r=o?s(`span`,{class:`${t}-form-item-label__asterisk`},i===`left`?`*\xA0`:`\xA0*`):i===`right-hanging`&&s(`span`,{class:`${t}-form-item-label__asterisk-placeholder`},`\xA0*`),{labelProps:a}=this;return s(`label`,Object.assign({},a,{class:[a?.class,`${t}-form-item-label`,`${t}-form-item-label--${i}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:`labelElementRef`}),i===`left`?[r,n]:[n,r])})(),s(`div`,{class:[`${t}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`],style:this.contentStyle},e),this.mergedShowFeedback?s(`div`,{key:this.feedbackId,style:this.feedbackStyle,class:[`${t}-form-item-feedback-wrapper`,this.feedbackClass]},s(m,{name:`fade-down-transition`,mode:`out-in`},{default:()=>{let{mergedValidationStatus:n}=this;return g(e.feedback,e=>{let{feedback:r}=this,i=e||r?s(`div`,{key:`__feedback__`,class:`${t}-form-item-feedback__line`},e||r):this.renderExplains.length?this.renderExplains?.map(({key:e,render:n})=>s(`div`,{key:e,class:`${t}-form-item-feedback__line`},n())):null;return i?n===`warning`?s(`div`,{key:`controlled-warning`,class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},i):n===`error`?s(`div`,{key:`controlled-error`,class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},i):n===`success`?s(`div`,{key:`controlled-success`,class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},i):s(`div`,{key:`controlled-default`,class:`${t}-form-item-feedback`},i):null})}})):null)}});export{ie as n,Ue as t}; \ No newline at end of file diff --git a/webui/assets/GatewaysView-B2c9soUv.css b/webui/assets/GatewaysView-B2c9soUv.css new file mode 100644 index 0000000000000000000000000000000000000000..5a9144e98c3dd1d25a4ad6bffde951dcb7f352a9 --- /dev/null +++ b/webui/assets/GatewaysView-B2c9soUv.css @@ -0,0 +1 @@ +[data-v-d70aa8a3]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-d70aa8a3]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.gateways-view[data-v-d70aa8a3]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.gateways-content[data-v-d70aa8a3]{flex:1;padding:20px;overflow-y:auto}.empty-state[data-v-d70aa8a3]{text-align:center;color:var(--text-muted);padding:40px 0}.gateway-list[data-v-d70aa8a3]{flex-direction:column;gap:12px;display:flex}.gateway-card[data-v-d70aa8a3]{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;justify-content:space-between;align-items:center;padding:16px 20px;transition:border-color .15s;display:flex}.gateway-card[data-v-d70aa8a3]:hover{border-color:var(--text-muted)}.gateway-name[data-v-d70aa8a3]{color:var(--text-primary);margin-bottom:4px;font-size:14px;font-weight:600}.gateway-meta[data-v-d70aa8a3]{gap:12px;display:flex}.meta-item[data-v-d70aa8a3]{color:var(--text-muted);font-size:12px}.gateway-actions[data-v-d70aa8a3]{align-items:center;gap:8px;display:flex} diff --git a/webui/assets/GatewaysView-BxceJN_D.js b/webui/assets/GatewaysView-BxceJN_D.js new file mode 100644 index 0000000000000000000000000000000000000000..ade876839adc20032521dffd103b262fa1ec13c3 --- /dev/null +++ b/webui/assets/GatewaysView-BxceJN_D.js @@ -0,0 +1 @@ +import{Ar as e,Fr as t,Gr as n,I as r,Nr as i,Or as a,Pr as o,Qr as s,Ur as c,ai as l,c as u,ci as d,gr as f,jr as p,k as m,lr as h,ni as g,pr as _,qr as v,u as y,wr as b,y as x}from"./index-Cl8-DFW_.js";async function S(){return(await _(`/api/hermes/gateways`)).gateways}async function C(e){return(await _(`/api/hermes/gateways/${e}/start`,{method:`POST`})).gateway}async function w(e){await _(`/api/hermes/gateways/${e}/stop`,{method:`POST`})}var T=f(`gateways`,()=>{let e=g([]),t=g(!1);async function n(){t.value=!0;try{let t=await S();e.value=Array.isArray(t)?t:Object.values(t||{})}finally{t.value=!1}}async function r(n){t.value=!0;try{let t=await C(n),r=e.value.findIndex(e=>e.profile===n);r>=0?e.value[r]=t:e.value.push(t)}finally{t.value=!1}}async function i(n){t.value=!0;try{await w(n);let t=e.value.find(e=>e.profile===n);t&&(t.running=!1,t.pid=void 0)}finally{t.value=!1}}return{gateways:e,loading:t,fetchStatus:n,start:r,stop:i}}),E={class:`gateways-view`},D={class:`page-header`},O={class:`header-title`},k={class:`gateways-content`},A={key:0,class:`empty-state`},j={key:1,class:`gateway-list`},M={class:`gateway-info`},N={class:`gateway-name`},P={class:`gateway-meta`},F={class:`meta-item`},I={key:0,class:`meta-item`},L={class:`gateway-actions`},R=u(t({__name:`GatewaysView`,setup(t){let{t:u}=h(),f=x(),g=T();c(()=>{g.fetchStatus()});async function _(e,t){try{t?(await g.stop(e),f.success(`${u(`gateways.stopped`)}: ${e}`)):(await g.start(e),f.success(`${u(`gateways.started`)}: ${e}`))}catch(e){f.error(e.message)}}return(t,c)=>(n(),p(`div`,E,[a(`header`,D,[a(`h2`,O,d(l(u)(`gateways.title`)),1)]),a(`div`,k,[o(l(y),{show:l(g).loading,size:`large`},{default:s(()=>[l(g).gateways.length===0?(n(),p(`div`,A,d(l(u)(`common.noData`)),1)):(n(),p(`div`,j,[(n(!0),p(b,null,v(l(g).gateways,t=>(n(),p(`div`,{key:t.profile,class:`gateway-card`},[a(`div`,M,[a(`div`,N,d(t.profile),1),a(`div`,P,[a(`span`,F,d(t.host)+`:`+d(t.port),1),t.pid?(n(),p(`span`,I,`PID: `+d(t.pid),1)):e(``,!0)])]),a(`div`,L,[o(l(r),{type:t.running?`success`:`default`,size:`small`,round:``},{default:s(()=>[i(d(t.running?l(u)(`gateways.running`):l(u)(`gateways.stopped`)),1)]),_:2},1032,[`type`]),o(l(m),{size:`small`,type:t.running?`warning`:`primary`,round:``,onClick:e=>_(t.profile,t.running)},{default:s(()=>[i(d(t.running?l(u)(`common.stop`):l(u)(`common.start`)),1)]),_:2},1032,[`type`,`onClick`])])]))),128))]))]),_:1},8,[`show`])])]))}}),[[`__scopeId`,`data-v-d70aa8a3`]]);export{R as default}; \ No newline at end of file diff --git a/webui/assets/GroupChatView-8G8m7Tft.js b/webui/assets/GroupChatView-8G8m7Tft.js new file mode 100644 index 0000000000000000000000000000000000000000..70e86ba4e2cb3de027404d9b53a5c93d6a9e72b4 --- /dev/null +++ b/webui/assets/GroupChatView-8G8m7Tft.js @@ -0,0 +1,43 @@ +import{o as e,r as t,t as n}from"./chunk-Dlc7tRH4.js";import{i as r}from"./create-EseJ7qR2.js";import{r as i,t as a}from"./Dropdown-ReirMLrI.js";import{t as o}from"./InputNumber-P0oq6NtF.js";import{t as s}from"./Space-BZigAtaW.js";import{t as c}from"./Popconfirm-ClpYjEYd.js";import{$n as l,$r as u,Ar as d,Bn as f,Br as p,D as m,Dr as h,E as g,F as _,Fr as v,Gr as y,K as b,Kr as x,L as S,Ln as C,Lr as w,N as T,Nr as E,Or as D,Pn as O,Pr as k,Qr as A,Rr as j,Sr as M,Tr as N,Ur as ee,Vn as te,Wn as ne,Wr as re,Xr as ie,_n as ae,ai as P,br as oe,c as F,ci as I,er as L,gr as se,hn as R,in as ce,it as le,jr as z,k as B,kr as ue,ln as de,lr as fe,ni as V,nr as H,nt as pe,oi as me,ot as he,pr as U,qr as ge,ri as _e,rn as ve,rr as ye,s as be,si as xe,sn as Se,tr as W,ur as Ce,wr as G,xr as we,y as Te,yr as Ee}from"./index-Cl8-DFW_.js";import{t as De}from"./MarkdownRenderer-P3bVUblX.js";var Oe=v({name:`ChevronLeft`,render(){return w(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},w(`path`,{d:`M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z`,fill:`currentColor`}))}}),ke=L(`collapse`,`width: 100%;`,[L(`collapse-item`,` + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + margin: var(--n-item-margin); + `,[H(`disabled`,[W(`header`,`cursor: not-allowed;`,[W(`header-main`,` + color: var(--n-title-text-color-disabled); + `),L(`collapse-item-arrow`,` + color: var(--n-arrow-color-disabled); + `)])]),L(`collapse-item`,`margin-left: 32px;`),l(`&:first-child`,`margin-top: 0;`),l(`&:first-child >`,[W(`header`,`padding-top: 0;`)]),H(`left-arrow-placement`,[W(`header`,[L(`collapse-item-arrow`,`margin-right: 4px;`)])]),H(`right-arrow-placement`,[W(`header`,[L(`collapse-item-arrow`,`margin-left: 4px;`)])]),W(`content-wrapper`,[W(`content-inner`,`padding-top: 16px;`),_({duration:`0.15s`})]),H(`active`,[W(`header`,[H(`active`,[L(`collapse-item-arrow`,`transform: rotate(90deg);`)])])]),l(`&:not(:first-child)`,`border-top: 1px solid var(--n-divider-color);`),ye(`disabled`,[H(`trigger-area-main`,[W(`header`,[W(`header-main`,`cursor: pointer;`),L(`collapse-item-arrow`,`cursor: default;`)])]),H(`trigger-area-arrow`,[W(`header`,[L(`collapse-item-arrow`,`cursor: pointer;`)])]),H(`trigger-area-extra`,[W(`header`,[W(`header-extra`,`cursor: pointer;`)])])]),W(`header`,` + font-size: var(--n-title-font-size); + display: flex; + flex-wrap: nowrap; + align-items: center; + transition: color .3s var(--n-bezier); + position: relative; + padding: var(--n-title-padding); + color: var(--n-title-text-color); + `,[W(`header-main`,` + display: flex; + flex-wrap: nowrap; + align-items: center; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + color: var(--n-title-text-color); + `),W(`header-extra`,` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),L(`collapse-item-arrow`,` + display: flex; + transition: + transform .15s var(--n-bezier), + color .3s var(--n-bezier); + font-size: 18px; + color: var(--n-arrow-color); + `)])])]),Ae=Object.assign(Object.assign({},le.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:`left`},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:`if`},triggerAreas:{type:Array,default:()=>[`main`,`extra`,`arrow`]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),je=O(`n-collapse`),Me=v({name:`Collapse`,props:Ae,slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=ce(e),a=V(e.defaultExpandedNames),o=C(h(()=>e.expandedNames),a),s=le(`Collapse`,`-collapse`,ke,m,e,n);function c(t){let{"onUpdate:expandedNames":n,onUpdateExpandedNames:r,onExpandedNamesChange:i}=e;r&&R(r,t),n&&R(n,t),i&&R(i,t),a.value=t}function l(t){let{onItemHeaderClick:n}=e;n&&R(n,t)}function u(t,n,r){let{accordion:i}=e,{value:a}=o;if(i)t?(c([n]),l({name:n,expanded:!0,event:r})):(c([]),l({name:n,expanded:!1,event:r}));else if(!Array.isArray(a))c([n]),l({name:n,expanded:!0,event:r});else{let e=a.slice(),t=e.findIndex(e=>n===e);~t?(e.splice(t,1),c(e),l({name:n,expanded:!1,event:r})):(e.push(n),c(e),l({name:n,expanded:!0,event:r}))}}x(je,{props:e,mergedClsPrefixRef:n,expandedNamesRef:o,slots:t,toggleItem:u});let d=he(`Collapse`,i,n),f=h(()=>{let{common:{cubicBezierEaseInOut:e},self:{titleFontWeight:t,dividerColor:n,titlePadding:r,titleTextColor:i,titleTextColorDisabled:a,textColor:o,arrowColor:c,fontSize:l,titleFontSize:u,arrowColorDisabled:d,itemMargin:f}}=s.value;return{"--n-font-size":l,"--n-bezier":e,"--n-text-color":o,"--n-divider-color":n,"--n-title-padding":r,"--n-title-font-size":u,"--n-title-text-color":i,"--n-title-text-color-disabled":a,"--n-title-font-weight":t,"--n-arrow-color":c,"--n-arrow-color-disabled":d,"--n-item-margin":f}}),p=r?ve(`collapse`,void 0,f,e):void 0;return{rtlEnabled:d,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:f,themeClass:p?.themeClass,onRender:p?.onRender}},render(){var e;return(e=this.onRender)==null||e.call(this),w(`div`,{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),Ne=v({name:`CollapseItemContent`,props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:te(_e(e,`show`))}},render(){return w(b,null,{default:()=>{let{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,i=t===`show`&&n,a=w(`div`,{class:`${r}-collapse-item__content-wrapper`},w(`div`,{class:`${r}-collapse-item__content-inner`},this.$slots));return i?u(a,[[oe,e]]):e?a:null}})}}),Pe=v({name:`CollapseItem`,props:{title:String,name:[String,Number],disabled:Boolean,displayDirective:String},setup(e){let{mergedRtlRef:t}=ce(e),n=ne(),i=f(()=>e.name??n),a=j(je);a||ae(`collapse-item`,"`n-collapse-item` must be placed inside `n-collapse`.");let{expandedNamesRef:o,props:s,mergedClsPrefixRef:c,slots:l}=a,u=h(()=>{let{value:e}=o;if(Array.isArray(e)){let{value:t}=i;return!~e.findIndex(e=>e===t)}else if(e){let{value:t}=i;return t!==e}return!0});return{rtlEnabled:he(`Collapse`,t,c),collapseSlots:l,randomName:n,mergedClsPrefix:c,collapsed:u,triggerAreas:_e(s,`triggerAreas`),mergedDisplayDirective:h(()=>{let{displayDirective:t}=e;return t||s.displayDirective}),arrowPlacement:h(()=>s.arrowPlacement),handleClick(t){let n=`main`;r(t,`arrow`)&&(n=`arrow`),r(t,`extra`)&&(n=`extra`),s.triggerAreas.includes(n)&&a&&!e.disabled&&a.toggleItem(u.value,i.value,t)}}},render(){let{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:s,triggerAreas:c}=this,l=Se(t.header,{collapsed:r},()=>[this.title]),u=t[`header-extra`]||e[`header-extra`],d=t.arrow||e.arrow;return w(`div`,{class:[`${o}-collapse-item`,`${o}-collapse-item--${n}-arrow-placement`,s&&`${o}-collapse-item--disabled`,!r&&`${o}-collapse-item--active`,c.map(e=>`${o}-collapse-item--trigger-area-${e}`)]},w(`div`,{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},w(`div`,{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n===`right`&&l,w(`div`,{class:`${o}-collapse-item-arrow`,key:+!this.rtlEnabled,"data-arrow":!0},Se(d,{collapsed:r},()=>[w(pe,{clsPrefix:o},{default:()=>this.rtlEnabled?w(Oe,null):w(i,null)})])),n===`left`&&l),de(u,{collapsed:r},e=>w(`div`,{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},e))),w(Ne,{clsPrefix:o,displayDirective:a,show:!r},t))}}),Fe=e(n(((e,t)=>{function n(e,t,n){e+=``;var r={"00":{A:{env:[`#ff2f2b`],clo:[`#fff`,`#000`],head:[`#fff`],mouth:[`#fff`,`#000`,`#000`],eyes:[`#000`,`none`,`#00FFFF`],top:[`#fff`,`#fff`]},B:{env:[`#ff1ec1`],clo:[`#000`,`#fff`],head:[`#ffc1c1`],mouth:[`#fff`,`#000`,`#000`],eyes:[`#FF2D00`,`#fff`,`none`],top:[`#a21d00`,`#fff`]},C:{env:[`#0079b1`],clo:[`#0e00b1`,`#d1fffe`],head:[`#f5aa77`],mouth:[`#fff`,`#000`,`#000`],eyes:[`#0c00de`,`#fff`,`none`],top:[`#acfffd`,`#acfffd`]}},"01":{A:{env:[`#a50000`],clo:[`#f06`,`#8e0039`],head:[`#85492C`],mouth:[`#000`],eyes:[`#000`,`#ff9809`],top:[`#ff9809`,`#ff9809`,`none`,`none`]},B:{env:[`#40E83B`],clo:[`#00650b`,`#62ce5a`],head:[`#f7c1a6`],mouth:[`#6e1c1c`],eyes:[`#000`,`#ff833b`],top:[`#67FFCC`,`none`,`none`,`#ecff3b`]},C:{env:[`#ff2c2c`],clo:[`#fff`,`#000`],head:[`#ffce8b`],mouth:[`#000`],eyes:[`#000`,`#0072ff`],top:[`#ff9809`,`none`,`#ffc809`,`none`]}},"02":{A:{env:[`#ff7520`],clo:[`#d12823`],head:[`#fee3c5`],mouth:[`#d12823`],eyes:[`#000`,`none`],top:[`#000`,`none`,`none`,`#FFCC00`,`red`]},B:{env:[`#ff9700`],clo:[`#000`],head:[`#d2ad6d`],mouth:[`#000`],eyes:[`#000`,`#00ffdc`],top:[`#fdff00`,`#fdff00`,`none`,`none`,`none`]},C:{env:[`#26a7ff`],clo:[`#d85cd7`],head:[`#542e02`],mouth:[`#f70014`],eyes:[`#000`,`magenta`],top:[`#FFCC00`,`#FFCC00`,`#FFCC00`,`#ff0000`,`yellow`]}},"03":{A:{env:[`#6FC30E`],clo:[`#b4e1fa`,`#5b5d6e`,`#515262`,`#a0d2f0`,`#a0d2f0`],head:[`#fae3b9`],mouth:[`#fff`,`#000`],eyes:[`#000`],top:[`#8eff45`,`#8eff45`,`none`,`none`]},B:{env:[`#00a58c`],clo:[`#000`,`none`,`none`,`none`,`none`],head:[`#FAD2B9`],mouth:[`#fff`,`#000`],eyes:[`#000`],top:[`#FFC600`,`none`,`#FFC600`,`none`]},C:{env:[`#ff501f`],clo:[`#000`,`#ff0000`,`#ff0000`,`#7d7d7d`,`#7d7d7d`],head:[`#fff3dc`],mouth:[`#d2001b`,`none`],eyes:[`#000`],top:[`#D2001B`,`none`,`none`,`#D2001B`]}},"04":{A:{env:[`#fc0`],clo:[`#901e0e`,`#ffbe1e`,`#ffbe1e`,`#c55f54`],head:[`#f8d9ad`],mouth:[`#000`,`none`,`#000`,`none`],eyes:[`#000`],top:[`#583D00`,`#AF892E`,`#462D00`,`#a0a0a0`]},B:{env:[`#386465`],clo:[`#fff`,`#333`,`#333`,`#333`],head:[`#FFD79D`],mouth:[`#000`,`#000`,`#000`,`#000`],eyes:[`#000`],top:[`#27363C`,`#5DCAD4`,`#314652`,`#333`]},C:{env:[`#DFFF00`],clo:[`#304267`,`#aab0b1`,`#aab0b1`,`#aab0b1`],head:[`#e6b876`],mouth:[`#50230a`,`#50230a`,`#50230a`,`#50230a`],eyes:[`#000`],top:[`#333`,`#afafaf`,`#222`,`#6d3a1d`]}},"05":{A:{env:[`#a09300`],clo:[`#c7d4e2`,`#435363`,`#435363`,`#141720`,`#141720`,`#e7ecf2`,`#e7ecf2`],head:[`#f5d4a6`],mouth:[`#000`,`#cf9f76`],eyes:[`#000`,`#000`,`#000`,`#000`,`#000`,`#000`,`#fff`,`#fff`,`#fff`,`#fff`,`#000`,`#000`],top:[`none`,`#fdff00`]},B:{env:[`#b3003e`],clo:[`#000`,`#435363`,`#435363`,`#000`,`none`,`#e7ecf2`,`#e7ecf2`],head:[`#f5d4a6`],mouth:[`#000`,`#af9f94`],eyes:[`#9ff3ff;opacity:0.96`,`#000`,`#9ff3ff;opacity:0.96`,`#000`,`#2f508a`,`#000`,`#000`,`#000`,`none`,`none`,`none`,`none`],top:[`#ff9a00`,`#ff9a00`]},C:{env:[`#884f00`],clo:[`#ff0000`,`#fff`,`#fff`,`#141720`,`#141720`,`#e7ecf2`,`#e7ecf2`],head:[`#c57b14`],mouth:[`#000`,`#cf9f76`],eyes:[`none`,`#000`,`none`,`#000`,`#5a0000`,`#000`,`#000`,`#000`,`none`,`none`,`none`,`none`],top:[`#efefef`,`none`]}},"06":{A:{env:[`#8acf00`],clo:[`#ee2829`,`#ff0`],head:[`#ffce73`],mouth:[`#fff`,`#000`],eyes:[`#000`],top:[`#000`,`#000`,`none`,`#000`,`#ff4e4e`,`#000`]},B:{env:[`#00d2a3`],clo:[`#0D0046`,`#ffce73`],head:[`#ffce73`],mouth:[`#000`,`none`],eyes:[`#000`],top:[`#000`,`#000`,`#000`,`none`,`#ffb358`,`#000`,`none`,`none`]},C:{env:[`#ff184e`],clo:[`#000`,`none`],head:[`#ffce73`],mouth:[`#ff0000`,`none`],eyes:[`#000`],top:[`none`,`none`,`none`,`none`,`none`,`#ffc107`,`none`,`none`]}},"07":{A:{env:[`#00deae`],clo:[`#ff0000`],head:[`#ffce94`],mouth:[`#f73b6c`,`#000`],eyes:[`#e91e63`,`#000`,`#e91e63`,`#000`,`#000`,`#000`],top:[`#dd104f`,`#dd104f`,`#f73b6c`,`#dd104f`]},B:{env:[`#181284`],clo:[`#491f49`,`#ff9809`,`#491f49`],head:[`#f6ba97`],mouth:[`#ff9809`,`#000`],eyes:[`#c4ffe4`,`#000`,`#c4ffe4`,`#000`,`#000`,`#000`],top:[`none`,`none`,`#d6f740`,`#516303`]},C:{env:[`#bcf700`],clo:[`#ff14e4`,`#000`,`#14fffd`],head:[`#7b401e`],mouth:[`#666`,`#000`],eyes:[`#00b5b4`,`#000`,`#00b5b4`,`#000`,`#000`,`#000`],top:[`#14fffd`,`#14fffd`,`#14fffd`,`#0d3a62`]}},"08":{A:{env:[`#0df`],clo:[`#571e57`,`#ff0`],head:[`#f2c280`],eyes:[`#795548`,`#000`],mouth:[`#ff0000`],top:[`#de3b00`,`none`]},B:{env:[`#B400C2`],clo:[`#0D204A`,`#00ffdf`],head:[`#ca8628`],eyes:[`#cbbdaf`,`#000`],mouth:[`#1a1a1a`],top:[`#000`,`#000`]},C:{env:[`#ffe926`],clo:[`#00d6af`,`#000`],head:[`#8c5100`],eyes:[`none`,`#000`],mouth:[`#7d0000`],top:[`#f7f7f7`,`none`]}},"09":{A:{env:[`#4aff0c`],clo:[`#101010`,`#fff`,`#fff`],head:[`#dbbc7f`],mouth:[`#000`],eyes:[`#000`,`none`,`none`],top:[`#531148`,`#531148`,`#531148`,`none`]},B:{env:[`#FFC107`],clo:[`#033c58`,`#fff`,`#fff`],head:[`#dbc97f`],mouth:[`#000`],eyes:[`none`,`#fff`,`#000`],top:[`#FFEB3B`,`#FFEB3B`,`none`,`#FFEB3B`]},C:{env:[`#FF9800`],clo:[`#b40000`,`#fff`,`#fff`],head:[`#E2AF6B`],mouth:[`#000`],eyes:[`none`,`#fff`,`#000`],top:[`#ec0000`,`#ec0000`,`none`,`none`]}},10:{A:{env:[`#104c8c`],clo:[`#354B65`,`#3D8EBB`,`#89D0DA`,`#00FFFD`],head:[`#cc9a5c`],mouth:[`#222`,`#fff`],eyes:[`#000`,`#000`],top:[`#fff`,`#fff`,`none`]},B:{env:[`#0DC15C`],clo:[`#212121`,`#fff`,`#212121`,`#fff`],head:[`#dca45f`],mouth:[`#111`,`#633b1d`],eyes:[`#000`,`#000`],top:[`none`,`#792B74`,`#792B74`]},C:{env:[`#ffe500`],clo:[`#1e5e80`,`#fff`,`#1e5e80`,`#fff`],head:[`#e8bc86`],mouth:[`#111`,`none`],eyes:[`#000`,`#000`],top:[`none`,`none`,`#633b1d`]}},11:{A:{env:[`#4a3f73`],clo:[`#e6e9ee`,`#f1543f`,`#ff7058`,`#fff`,`#fff`],head:[`#b27e5b`],mouth:[`#191919`,`#191919`],eyes:[`#000`,`#000`,`#57FFFD`],top:[`#ffc`,`#ffc`,`#ffc`]},B:{env:[`#00a08d`],clo:[`#FFBA32`,`#484848`,`#4e4e4e`,`#fff`,`#fff`],head:[`#ab5f2c`],mouth:[`#191919`,`#191919`],eyes:[`#000`,`#ff23fa;opacity:0.39`,`#000`],top:[`#ff90f4`,`#ff90f4`,`#ff90f4`]},C:{env:[`#22535d`],clo:[`#000`,`#ff2500`,`#ff2500`,`#fff`,`#fff`],head:[`#a76c44`],mouth:[`#191919`,`#191919`],eyes:[`#000`,`none`,`#000`],top:[`none`,`#00efff`,`none`]}},12:{A:{env:[`#2668DC`],clo:[`#2385c6`,`#b8d0e0`,`#b8d0e0`],head:[`#ad8a60`],mouth:[`#000`,`#4d4d4d`],eyes:[`#7fb5a2`,`#d1eddf`,`#301e19`],top:[`#fff510`,`#fff510`]},B:{env:[`#643869`],clo:[`#D67D1B`,`#b8d0e0`,`#b8d0e0`],head:[`#CC985A`,`none0000`],mouth:[`#000`,`#ececec`],eyes:[`#1f2644`,`#9b97ce`,`#301e19`],top:[`#00eaff`,`none`]},C:{env:[`#F599FF`],clo:[`#2823C6`,`#b8d0e0`,`#b8d0e0`],head:[`#C7873A`],mouth:[`#000`,`#4d4d4d`],eyes:[`#581b1b`,`#FF8B8B`,`#000`],top:[`none`,`#9c0092`]}},13:{A:{env:[`#d10084`],clo:[`#efedee`,`#00a1e0`,`#00a1e0`,`#efedee`,`#ffce1c`],head:[`#b35f49`],mouth:[`#3a484a`,`#000`],eyes:[`#000`],top:[`#000`,`none`,`#000`,`none`]},B:{env:[`#E6C117`],clo:[`#efedee`,`#ec0033`,`#ec0033`,`#efedee`,`#f2ff05`],head:[`#ffc016`],mouth:[`#4a3737`,`#000`],eyes:[`#000`],top:[`#ffe900`,`#ffe900`,`none`,`#ffe900`]},C:{env:[`#1d8c00`],clo:[`#e000cb`,`#fff`,`#fff`,`#e000cb`,`#ffce1c`],head:[`#b96438`],mouth:[`#000`,`#000`],eyes:[`#000`],top:[`#53ffff`,`#53ffff`,`none`,`none`]}},14:{A:{env:[`#fc0065`],clo:[`#708913`,`#fdea14`,`#708913`,`#fdea14`,`#708913`],head:[`#DEA561`],mouth:[`#444`,`#000`],eyes:[`#000`],top:[`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`]},B:{env:[`#81f72e`],clo:[`#ff0000`,`#ffc107`,`#ff0000`,`#ffc107`,`#ff0000`],head:[`#ef9831`],mouth:[`#6b0000`,`#000`],eyes:[`#000`],top:[`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`none`,`none`,`none`,`none`]},C:{env:[`#00D872`],clo:[`#590D00`,`#FD1336`,`#590D00`,`#FD1336`,`#590D00`],head:[`#c36c00`],mouth:[`#56442b`,`#000`],eyes:[`#000`],top:[`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`]}},15:{A:{env:[`#111`],clo:[`#000`,`#00FFFF`],head:[`#755227`],mouth:[`#fff`,`#000`],eyes:[`black`,`#008;opacity:0.67`,`aqua`],top:[`#fff`,`#fff`,`#fff`,`#fff`,`#fff`]},B:{env:[`#00D0D4`],clo:[`#000`,`#fff`],head:[`#755227`],mouth:[`#fff`,`#000`],eyes:[`black`,`#1df7ff;opacity:0.64`,`#fcff2c`],top:[`#fff539`,`none`,`#fff539`,`none`,`#fff539`]},C:{env:[`#DC75FF`],clo:[`#000`,`#FFBDEC`],head:[`#997549`],mouth:[`#fff`,`#000`],eyes:[`black`,`black`,`aqua`],top:[`#00fffd`,`none`,`none`,`none`,`none`]}}},i=[],a=``,o=``,s=``,c=``,l=`stroke-linecap:round;stroke-linejoin:round;stroke-width:`;i[`00`]=[],i[`00`].env=s,i[`00`].clo=``,i[`00`].head=c,i[`00`].mouth=``,i[`00`].eyes=``,i[`00`].top=``,i[`01`]=[],i[`01`].env=s,i[`01`].clo=``,i[`01`].head=c,i[`01`].mouth=``,i[`01`].eyes=``,i[`01`].top=``,i[`02`]=[],i[`02`].env=s,i[`02`].clo=``,i[`02`].head=c,i[`02`].mouth=``,i[`02`].eyes=``,i[`02`].top=``,i[`03`]=[],i[`03`].env=s,i[`03`].clo=``,i[`03`].head=c,i[`03`].mouth=``,i[`03`].eyes=``,i[`03`].top=``,i[`04`]=[],i[`04`].env=s,i[`04`].clo=``,i[`04`].head=c,i[`04`].mouth=``,i[`04`].eyes=``,i[`04`].top=``,i[`05`]=[],i[`05`].env=s,i[`05`].clo=``,i[`05`].head=c,i[`05`].mouth=``,i[`05`].eyes=``,i[`05`].top=``,i[`06`]=[],i[`06`].env=s,i[`06`].clo=``,i[`06`].head=c,i[`06`].mouth=``,i[`06`].eyes=``,i[`06`].top=``,i[`07`]=[],i[`07`].env=s,i[`07`].clo=``,i[`07`].head=c,i[`07`].mouth=``,i[`07`].eyes=``,i[`07`].top=``,i[`08`]=[],i[`08`].env=s,i[`08`].clo=``,i[`08`].head=c,i[`08`].mouth=``,i[`08`].eyes=``,i[`08`].top=``,i[`09`]=[],i[`09`].env=s,i[`09`].clo=``,i[`09`].head=c,i[`09`].mouth=``,i[`09`].eyes=``,i[`09`].top=``,i[10]=[],i[10].env=s,i[10].clo=``,i[10].head=c,i[10].mouth=``,i[10].eyes=``,i[10].top=``,i[11]=[],i[11].env=s,i[11].clo=``,i[11].head=c,i[11].mouth=``,i[11].eyes=``,i[11].top=``,i[12]=[],i[12].env=s,i[12].clo=``,i[12].head=c,i[12].mouth=``,i[12].eyes=``,i[12].top=``,i[13]=[],i[13].env=s,i[13].clo=``,i[13].head=c,i[13].mouth=``,i[13].eyes=``,i[13].top=``,i[14]=[],i[14].env=s,i[14].clo=``,i[14].head=c,i[14].mouth=``,i[14].eyes=``,i[14].top=``,i[15]=[],i[15].env=s,i[15].clo=``,i[15].head=c,i[15].mouth=``,i[15].eyes=``,i[15].top=``;var u=u||function(e,t){var n={},r=n.lib={},i=function(){},a=r.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty(`init`)||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(`toString`)&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=r.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n==t?4*e.length:n},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes;if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;i>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},l=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch{throw Error(`Malformed UTF-8 data`)}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){typeof e==`string`&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),s;if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,i=e.min(4*t,i),t){for(var c=0;cl;){var d;a:{d=c;for(var f=e.sqrt(d),p=2;p<=f;p++)if(!(d%p)){d=!1;break a}d=!0}d&&(8>l&&(a[l]=s(e.pow(c,.5))),o[l]=s(e.pow(c,1/3)),l++),c++}var m=[],n=n.SHA256=i.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],l=n[5],u=n[6],d=n[7],f=0;64>f;f++){if(16>f)m[f]=0|e[t+f];else{var p=m[f-15],h=m[f-2];m[f]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+m[f-7]+((h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10)+m[f-16]}p=d+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&u)+o[f]+m[f],h=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&a^i&a),d=u,u=l,l=c,c=s+p|0,s=a,a=i,i=r,r=p+h|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0,n[5]=n[5]+l|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(n),t.HmacSHA256=i._createHmacHelper(n)})(Math);var d=``;if(e.length==0)return d;d=u.SHA256(e).toString().replace(/\D/g,``).substring(0,12);var f=[];for(var p in f.env=d[0]+``+d[1],f.env=Math.round(.47*f.env)+``,f.clo=d[2]+``+d[3],f.clo=Math.round(.47*f.clo)+``,f.head=d[4]+``+d[5],f.head=Math.round(.47*f.head)+``,f.mouth=d[6]+``+d[7],f.mouth=Math.round(.47*f.mouth)+``,f.eyes=d[8]+``+d[9],f.eyes=Math.round(.47*f.eyes)+``,f.top=d[10]+``+d[11],f.top=Math.round(.47*f.top)+``,f){var m=f[p];m>31?((m=m-32+``).length==1&&(m=`0`+m),f[p]=m+`C`):m>15?((m=m-16+``).length==1&&(m=`0`+m),f[p]=m+`B`):f[p]=(m+``).length==1?`0`+m+`A`:m+`A`}var h=[];for(var p in f){var g=f[p].substring(0,2),_=f[p].substring(2,3);n!==void 0&&(g=n.part,_=n.theme),h[p]=v(p,g,_)}function v(e,t,n){var a=r[t][n][e],o=i[t][e],s=o.match(/#(.*?);/g),c=o;if(s!=null)for(var l=0;l{Ie[K[e]]=e});var Le={type:`error`,data:`parser error`},Re=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,ze=typeof ArrayBuffer==`function`,Be=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ve=({type:e,data:t},n,r)=>Re&&t instanceof Blob?n?r(t):He(t,r):ze&&(t instanceof ArrayBuffer||Be(t))?n?r(t):He(new Blob([t]),r):r(K[e]+(t||``)),He=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function Ue(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var We;function Ge(e,t){if(Re&&e.data instanceof Blob)return e.data.arrayBuffer().then(Ue).then(t);if(ze&&(e.data instanceof ArrayBuffer||Be(e.data)))return t(Ue(e.data));Ve(e,!1,e=>{We||=new TextEncoder,t(We.encode(e))})}var Ke=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,qe=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)qe[Ke.charCodeAt(e)]=e;var Je=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Ye=typeof ArrayBuffer==`function`,Xe=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:Qe(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:Ze(e.substring(1),t)}:Ie[n]?e.length>1?{type:Ie[n],data:e.substring(1)}:{type:Ie[n]}:Le},Ze=(e,t)=>Ye?Qe(Je(e),t):{base64:!0,data:e},Qe=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},$e=``,et=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{Ve(e,!1,e=>{r[a]=e,++i===n&&t(r.join($e))})})},tt=(e,t)=>{let n=e.split($e),r=[];for(let e=0;e{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var rt;function it(e){return e.reduce((e,t)=>e+t.length,0)}function at(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i2**21-1){s.enqueue(Le);break}i=a*2**32+t.getUint32(4),r=3}else{if(it(n)e){s.enqueue(Le);break}}}})}function q(e){if(e)return st(e)}function st(e){for(var t in q.prototype)e[t]=q.prototype[t];return e}q.prototype.on=q.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},q.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},q.prototype.off=q.prototype.removeListener=q.prototype.removeAllListeners=q.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;iPromise.resolve().then(e):(e,t)=>t(e,0),J=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),lt=`arraybuffer`;function ut(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var dt=J.setTimeout,ft=J.clearTimeout;function pt(e,t){t.useNativeTimers?(e.setTimeoutFn=dt.bind(J),e.clearTimeoutFn=ft.bind(J)):(e.setTimeoutFn=J.setTimeout.bind(J),e.clearTimeoutFn=J.clearTimeout.bind(J))}var mt=1.33;function ht(e){return typeof e==`string`?gt(e):Math.ceil((e.byteLength||e.size)*mt)}function gt(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function _t(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function vt(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function yt(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){tt(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,et(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=_t()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},Ct=!1;try{Ct=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var wt=Ct;function Tt(){}var Et=class extends St{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},Y=class e extends q{constructor(e,t,n){super(),this.createRequest=e,pt(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=ut(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(this._xhr===void 0||this._xhr===null)){if(this._xhr.onreadystatechange=Tt,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(Y.requestsCount=0,Y.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,Dt);else if(typeof addEventListener==`function`){let e=`onpagehide`in J?`pagehide`:`unload`;addEventListener(e,Dt,!1)}}function Dt(){for(let e in Y.requests)Y.requests.hasOwnProperty(e)&&Y.requests[e].abort()}var Ot=(function(){let e=At({xdomain:!1});return e&&e.responseType!==null})(),kt=class extends Et{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Ot&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Y(At,this.uri(),e)}};function At(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||wt))return new XMLHttpRequest}catch{}if(!t)try{return new J[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var jt=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Mt=class extends xt{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=jt?{}:ut(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(n,e)}catch{}r&&ct(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=_t()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Nt=J.WebSocket||J.MozWebSocket,Pt={websocket:class extends Mt{createSocket(e,t,n){return jt?new Nt(e,t,n):t?new Nt(e,t):new Nt(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends xt{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=ot(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=nt();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{r&&ct(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:kt},Ft=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,It=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Lt(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=Ft.exec(e||``),a={},o=14;for(;o--;)a[It[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=Rt(a,a.path),a.queryKey=zt(a,a.query),a}function Rt(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function zt(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var Bt=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Vt=[];Bt&&addEventListener(`offline`,()=>{Vt.forEach(e=>e())},!1);var Ht=class e extends q{constructor(e,t){if(super(),this.binaryType=lt,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=Lt(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Lt(t.host).host);pt(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:`/engine.io`,agent:!1,withCredentials:!1,upgrade:!0,timestampParam:`t`,rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=yt(this.opts.query)),Bt&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(`beforeunload`,this._beforeunloadEventListener,!1)),this.hostname!==`localhost`&&(this._offlineEventListener=()=>{this._onClose(`transport close`,{description:`network connection lost`})},Vt.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data);break}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(`drain`):this.flush()}flush(){if(this.readyState!==`closed`&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ct(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(`close`),this.transport.close(),this.transport.removeAllListeners(),Bt&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Vt.indexOf(this._offlineEventListener);e!==-1&&Vt.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};Ht.protocol=4;var Ut=class extends Ht{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;Ht.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;nPt[e]).filter(e=>!!e)),super(e,n)}};Wt.protocol;function Gt(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=Lt(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var Kt=typeof ArrayBuffer==`function`,qt=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Jt=Object.prototype.toString,Yt=typeof Blob==`function`||typeof Blob<`u`&&Jt.call(Blob)===`[object BlobConstructor]`,Xt=typeof File==`function`||typeof File<`u`&&Jt.call(File)===`[object FileConstructor]`;function Zt(e){return Kt&&(e instanceof ArrayBuffer||qt(e))||Yt&&e instanceof Blob||Xt&&e instanceof File}function Qt(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t=0&&e.numsn,Encoder:()=>on,PacketType:()=>X,isPacketValid:()=>mn,protocol:()=>5}),an=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],X;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(X||={});var on=class{constructor(e){this.replacer=e}encode(e){return(e.type===X.EVENT||e.type===X.ACK)&&Qt(e)?this.encodeAsBinary({type:e.type===X.EVENT?X.BINARY_EVENT:X.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===X.BINARY_EVENT||e.type===X.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=$t(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},sn=class e extends q{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===X.BINARY_EVENT;n||t.type===X.BINARY_ACK?(t.type=n?X.EVENT:X.ACK,this.reconstructor=new cn(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(Zt(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(X[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===X.BINARY_EVENT||r.type===X.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!un(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&!(t.charAt(n)===`,`||n===t.length););r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case X.CONNECT:return fn(t);case X.DISCONNECT:return t===void 0;case X.CONNECT_ERROR:return typeof t==`string`||fn(t);case X.EVENT:case X.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&an.indexOf(t[0])===-1);case X.ACK:case X.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},cn=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=tn(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function ln(e){return typeof e==`string`}var un=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function dn(e){return e===void 0||un(e)}function fn(e){return Object.prototype.toString.call(e)===`[object Object]`}function pn(e,t){switch(e){case X.CONNECT:return t===void 0||fn(t);case X.DISCONNECT:return t===void 0;case X.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&an.indexOf(t[0])===-1);case X.ACK:return Array.isArray(t);case X.CONNECT_ERROR:return typeof t==`string`||fn(t);default:return!1}}function mn(e){return ln(e.nsp)&&dn(e.id)&&pn(e.type,e.data)}function Z(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var hn=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),gn=class extends q{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Z(e,`open`,this.onopen.bind(this)),Z(e,`packet`,this.onpacket.bind(this)),Z(e,`error`,this.onerror.bind(this)),Z(e,`close`,this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===`open`&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(hn.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:X.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:X.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case X.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,Error(`It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)`));break;case X.EVENT:case X.BINARY_EVENT:this.onevent(e);break;case X.ACK:case X.BINARY_ACK:this.onack(e);break;case X.DISCONNECT:this.ondisconnect();break;case X.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:X.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:X.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}Q.prototype.duration=function(){var e=this.ms*this.factor**+ this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},Q.prototype.reset=function(){this.attempts=0},Q.prototype.setMin=function(e){this.ms=e},Q.prototype.setMax=function(e){this.max=e},Q.prototype.setJitter=function(e){this.jitter=e};var _n=class extends q{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,pt(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new Q({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||rn;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new Wt(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=Z(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=Z(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(Z(e,`ping`,this.onping.bind(this)),Z(e,`data`,this.ondata.bind(this)),Z(e,`error`,this.onerror.bind(this)),Z(e,`close`,this.onclose.bind(this)),Z(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){ct(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new gn(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;ne()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},vn={};function yn(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=Gt(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=vn[i]&&a in vn[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new _n(r,t):(vn[i]||(vn[i]=new _n(r,t)),c=vn[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(yn,{Manager:_n,Socket:gn,io:yn,connect:yn});var $=null;function bn(e){if($?.connected)return $;let t=Ce(),n=e?.userId||localStorage.getItem(`gc_user_id`)||Cn();return localStorage.setItem(`gc_user_id`,n),$=yn(`/group-chat`,{auth:{token:t||void 0,userId:n,name:e?.userName||localStorage.getItem(`gc_user_name`)||void 0,description:e?.description||localStorage.getItem(`gc_user_description`)||void 0},transports:[`websocket`],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:3e4}),$}function xn(){let e=localStorage.getItem(`gc_user_id`);return e||(e=Cn(),localStorage.setItem(`gc_user_id`,e)),e}function Sn(){return localStorage.getItem(`gc_user_name`)}function Cn(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function wn(){return $?.connected?$:null}function Tn(){$&&=($.disconnect(),null)}async function En(e){return U(`/api/hermes/group-chat/rooms`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})}async function Dn(){return U(`/api/hermes/group-chat/rooms`)}async function On(e){return U(`/api/hermes/group-chat/rooms/${e}`)}async function kn(e){return U(`/api/hermes/group-chat/rooms/join/${e}`)}async function An(e,t){return U(`/api/hermes/group-chat/rooms/${e}/agents`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})}async function jn(e){return U(`/api/hermes/group-chat/rooms/${e}/agents`)}async function Mn(e,t){return U(`/api/hermes/group-chat/rooms/${e}/agents/${t}`,{method:`DELETE`})}async function Nn(e){return U(`/api/hermes/group-chat/rooms/${e}`,{method:`DELETE`})}async function Pn(e,t){return U(`/api/hermes/group-chat/rooms/${e}/config`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})}async function Fn(e){return U(`/api/hermes/group-chat/rooms/${e}/compress`,{method:`POST`})}var In=se(`groupChat`,()=>{let e=V(!1),t=V(null),n=V([]),r=V([]),i=V([]),a=V([]),o=V(``),s=V(!1),c=V(null),l=V(new Map),u=V(new Map),d=h(()=>{for(let[,e]of u.value)return e;return null}),f=V(xn()),p=V(Sn()||``),m=h(()=>[...r.value].sort((e,t)=>e.timestamp-t.timestamp)),g=h(()=>i.value.map(e=>e.name)),_=h(()=>Array.from(l.value.values()).map(e=>e.name)),v=h(()=>{let e=_.value;return e.length===0?``:e.length===1?`${e[0]} is typing...`:e.length===2?`${e[0]} and ${e[1]} are typing...`:`${e[0]} and ${e.length-1} others are typing...`});function y(){let a=bn({userId:f.value,userName:p.value||void 0});console.log(`[GroupChat] connecting...`,{userId:f.value,userName:p.value}),a.on(`connect`,()=>{console.log(`[GroupChat] connected, socket id:`,a.id),e.value=!0,c.value=null}),a.on(`disconnect`,t=>{console.log(`[GroupChat] disconnected:`,t),e.value=!1}),a.on(`connect_error`,t=>{console.error(`[GroupChat] connect_error:`,t.message),c.value=t.message,e.value=!1}),a.on(`message`,e=>{e.roomId===t.value&&r.value.push(e)}),a.on(`member_joined`,e=>{e.roomId===t.value&&(i.value=e.members)}),a.on(`member_left`,e=>{e.roomId===t.value&&(i.value=e.members)}),a.on(`typing`,e=>{if(e.roomId===t.value&&!l.value.has(e.userId)){let t=setTimeout(()=>l.value.delete(e.userId),5e3);l.value.set(e.userId,{name:e.userName,timer:t})}}),a.on(`stop_typing`,e=>{if(e.roomId===t.value&&l.value.has(e.userId)){let t=l.value.get(e.userId);clearTimeout(t.timer),l.value.delete(e.userId)}}),a.on(`context_status`,e=>{e.roomId===t.value&&(e.status===`ready`?u.value.delete(e.agentName):u.value.set(e.agentName,{agentName:e.agentName,status:e.status}),u.value=new Map(u.value))}),a.on(`room_updated`,e=>{let t=n.value.find(t=>t.id===e.roomId);t&&(t.totalTokens=e.totalTokens)})}function b(){Tn(),e.value=!1,t.value=null,r.value=[],i.value=[],a.value=[],o.value=``,l.value.clear(),u.value.clear()}function x(e,t){p.value=e,localStorage.setItem(`gc_user_name`,e),localStorage.setItem(`gc_user_description`,t)}async function S(e){s.value=!0,c.value=null;try{let n=await On(e);t.value=n.room.id,o.value=n.room.name,r.value=n.messages,a.value=n.agents,i.value=n.members||[]}catch(e){throw c.value=e.message,e}finally{s.value=!1}let n=wn();n&&await new Promise(t=>{n.emit(`join`,{roomId:e,name:p.value||void 0},e=>{if(!e?.error){if(i.value=e.members||[],e.agents&&(a.value=e.agents),e.typingUsers){for(let t of e.typingUsers)if(!l.value.has(t.userId)){let e=setTimeout(()=>l.value.delete(t.userId),5e3);l.value.set(t.userId,{name:t.userName,timer:e})}}e.contextStatuses&&(u.value=new Map(e.contextStatuses.map(e=>[e.agentName,e])))}t()})})}async function C(e){let n=wn();if(!(!n||!t.value))return N(),new Promise((r,i)=>{n.emit(`message`,{roomId:t.value,content:e},e=>{if(e.error){i(Error(e.error));return}r()})})}async function w(){try{n.value=(await Dn()).rooms}catch(e){c.value=e.message}}async function T(e,t,r,i){try{let a=await En({name:e,inviteCode:t,agents:r,compression:i||{triggerTokens:1e5,maxHistoryTokens:32e3,tailMessageCount:20}});return n.value.push(a.room),a}catch(e){throw c.value=e.message,e}}async function E(e){try{let t=await kn(e);return await S(t.room.id),t.room}catch(e){throw c.value=e.message,e}}async function D(e){try{await Nn(e),n.value=n.value.filter(t=>t.id!==e),t.value===e&&(t.value=null,r.value=[],i.value=[],a.value=[],o.value=``)}catch(e){throw c.value=e.message,e}}async function O(e){try{a.value=(await jn(e)).agents}catch{}}async function k(e,t){try{let n=await An(e,t);return a.value.push(n.agent),n.agent}catch(e){throw c.value=e.message,e}}async function A(e,t){try{await Mn(e,t),a.value=a.value.filter(e=>e.id!==t)}catch(e){throw c.value=e.message,e}}let j=null;function M(){let e=wn();!e||!t.value||(e.emit(`typing`,{roomId:t.value}),j&&clearTimeout(j),j=setTimeout(()=>N(),4e3))}function N(){let e=wn();!e||!t.value||(e.emit(`stop_typing`,{roomId:t.value}),j&&=(clearTimeout(j),null))}return{connected:e,currentRoomId:t,rooms:n,messages:r,members:i,agents:a,roomName:o,isJoining:s,error:c,contextStatus:d,contextStatuses:u,userId:f,userName:p,sortedMessages:m,memberNames:g,typingNames:_,typingText:v,connect:y,disconnect:b,setUserInfo:x,joinRoom:S,sendMessage:C,loadRooms:w,emitTyping:M,emitStopTyping:N,createNewRoom:T,joinByCode:E,deleteRoom:D,loadAgents:O,addAgentToRoom:k,removeAgentFromRoom:A}}),Ln={class:`avatar`},Rn=[`innerHTML`],zn={class:`msg-body`},Bn={class:`msg-header`},Vn={class:`sender-name`},Hn={key:0,class:`agent-desc`},Un={class:`msg-time`},Wn=F(v({__name:`GroupMessageItem`,props:{message:{},agents:{},currentUserId:{}},setup(e){let t=e,n=h(()=>t.agents.some(e=>e.agentId===t.message.senderId)),r=h(()=>!!t.currentUserId&&t.message.senderId===t.currentUserId),i=h(()=>t.agents.find(e=>e.agentId===t.message.senderId)),a=h(()=>new Date(t.message.timestamp).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})),o=h(()=>(0,Fe.default)(t.message.senderName||t.message.senderId)),s=h(()=>t.agents.map(e=>e.name).filter(Boolean));return(t,c)=>(y(),z(`div`,{class:me([`group-message`,{agent:n.value,self:r.value}])},[D(`div`,Ln,[D(`span`,{innerHTML:o.value},null,8,Rn)]),D(`div`,zn,[D(`div`,Bn,[D(`span`,Vn,I(e.message.senderName),1),n.value&&i.value?.description?(y(),z(`span`,Hn,I(i.value.description),1)):d(``,!0)]),D(`div`,{class:me([`msg-content`,{"agent-content":n.value}])},[k(De,{content:e.message.content,"mention-names":s.value},null,8,[`content`,`mention-names`])],2),D(`span`,Un,I(a.value),1)])],2))}}),[[`__scopeId`,`data-v-0a07afd6`]]),Gn={key:0,class:`empty-state`},Kn=F(v({__name:`GroupMessageList`,setup(e,{expose:t}){let{t:n}=fe(),r=In(),i=V(),a=V(!0);function o(){if(!i.value)return;let{scrollTop:e,scrollHeight:t,clientHeight:n}=i.value;a.value=t-e-n<200}function s(){i.value&&(i.value.scrollTop=i.value.scrollHeight)}function c(){o()}return ie(()=>r.messages.length,async()=>{await p(),a.value&&s()}),t({scrollToBottom:s}),(e,t)=>(y(),z(`div`,{ref_key:`listRef`,ref:i,class:`message-list`,onScroll:c},[P(r).sortedMessages.length===0?(y(),z(`div`,Gn,[t[0]||=D(`svg`,{width:`32`,height:`32`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[D(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})],-1),D(`p`,null,I(P(n)(`common.noData`)),1)])):d(``,!0),(y(!0),z(G,null,ge(P(r).sortedMessages,e=>(y(),ue(Wn,{key:e.id,message:e,agents:P(r).agents,"current-user-id":P(r).userId},null,8,[`message`,`agents`,`current-user-id`]))),128))],544))}}),[[`__scopeId`,`data-v-abded617`]]),qn={class:`chat-input-area`},Jn={class:`input-wrapper`},Yn=[`placeholder`],Xn={class:`input-actions`},Zn=F(v({__name:`GroupChatInput`,emits:[`send`],setup(e,{emit:t}){let{t:n}=fe(),r=t,i=In(),o=V(``),s=V(),c=V(!1),l=V(!1),d=V(``),f=V(-1),m=V(0),g=V(0),_=V(0),v=h(()=>{let e=d.value.toLowerCase();return i.agents.filter(t=>t.name.toLowerCase().includes(e))}),b=h(()=>v.value.map((e,t)=>({label:`${e.name} (${e.profile})`,key:e.name,index:t}))),x=h(()=>!!o.value.trim());function S(){let e=s.value;if(!e){l.value=!1;return}let t=o.value,n=e.selectionStart,r=-1;for(let e=n-1;e>=0;e--){if(t[e]===`@`){r=e;break}if(t[e]===` `||t[e]===` +`)break}if(r===-1){l.value=!1;return}if(r>0&&t[r-1]!==` `&&t[r-1]!==` +`){l.value=!1;return}let i=t.slice(r+1,n);if(i.includes(` `)){l.value=!1;return}d.value=i,f.value=r,_.value=0;let a=document.createElement(`span`),c=getComputedStyle(e);[`fontFamily`,`fontSize`,`fontWeight`,`letterSpacing`,`textTransform`,`wordSpacing`,`textIndent`,`border`,`padding`,`boxSizing`,`lineHeight`].forEach(e=>{a.style[e]=c[e]}),a.style.position=`absolute`,a.style.visibility=`hidden`,a.style.whiteSpace=`nowrap`,a.textContent=t.slice(0,r+1);let u=e.getBoundingClientRect();document.body.appendChild(a);let p=a.getBoundingClientRect();document.body.removeChild(a),m.value=u.left+p.width-e.scrollLeft,g.value=u.top-e.scrollTop-8,l.value=v.value.length>0}function C(e){let t=s.value;if(!t||f.value===-1)return;let n=o.value.slice(0,f.value);o.value=`${n}@${e} ${o.value.slice(t.selectionStart)}`,l.value=!1,p(()=>{if(t){let r=n.length+e.length+2;t.setSelectionRange(r,r),t.focus(),t.style.height=`auto`,t.style.height=Math.min(t.scrollHeight,100)+`px`}})}function w(e){if(l.value&&v.value.length>0){if(e.key===`ArrowDown`){e.preventDefault(),_.value=(_.value+1)%v.value.length;return}if(e.key===`ArrowUp`){e.preventDefault(),_.value=(_.value-1+v.value.length)%v.value.length;return}if(e.key===`Enter`||e.key===`Tab`){e.preventDefault(),C(v.value[_.value].name);return}if(e.key===`Escape`){e.preventDefault(),l.value=!1;return}}e.key!==`Enter`||e.shiftKey||c.value||e.isComposing||e.keyCode===229||(e.preventDefault(),T())}function T(){let e=o.value.trim();e&&(r(`send`,e),o.value=``,l.value=!1,p(()=>{s.value&&(s.value.style.height=`auto`)}))}function O(e){i.emitTyping();let t=e.target;t.style.height=`auto`,t.style.height=Math.min(t.scrollHeight,100)+`px`,c.value||S()}function j(e){C(e)}function M(){l.value=!1}function N(){c.value=!0}function ee(){requestAnimationFrame(()=>{c.value=!1,S()})}return(e,t)=>(y(),z(`div`,qn,[D(`div`,Jn,[u(D(`textarea`,{ref_key:`textareaRef`,ref:s,"onUpdate:modelValue":t[0]||=e=>o.value=e,class:`input-textarea`,placeholder:P(n)(`groupChat.inputPlaceholder`),rows:`1`,onKeydown:w,onCompositionstart:N,onCompositionend:ee,onInput:O},null,40,Yn),[[Ee,o.value]]),D(`div`,Xn,[k(P(B),{size:`small`,type:`primary`,disabled:!x.value,onClick:T},{icon:A(()=>[...t[1]||=[D(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[D(`line`,{x1:`22`,y1:`2`,x2:`11`,y2:`13`}),D(`polygon`,{points:`22 2 15 22 11 13 2 9 22 2`})],-1)]]),default:A(()=>[E(` `+I(P(n)(`chat.send`)),1)]),_:1},8,[`disabled`])])]),k(P(a),{placement:`top-start`,trigger:`manual`,x:m.value,y:g.value,options:b.value,show:l.value,"render-icon":()=>null,onSelect:j,onClickoutside:M},null,8,[`x`,`y`,`options`,`show`])]))}}),[[`__scopeId`,`data-v-d354da76`]]),Qn={class:`create-form`},$n={class:`form-group`},er={class:`form-label`},tr={class:`form-group`},nr={class:`form-label`},rr={class:`form-group`},ir={class:`form-label`},ar={class:`form-group`},or={class:`form-label`},sr={class:`code-row`},cr={class:`compression-fields`},lr={class:`form-group`},ur={class:`form-label`},dr={class:`form-hint`},fr={class:`form-group`},pr={class:`form-label`},mr={class:`form-hint`},hr={class:`form-group`},gr={class:`form-label`},_r={class:`form-hint`},vr={class:`modal-actions`},yr=F(v({__name:`CreateRoomForm`,emits:[`submit`,`cancel`],setup(e,{emit:t}){let{t:n}=fe(),r=t,i=V(``),a=V(``),c=V(``),l=V(``),u=V(null),d=V({triggerTokens:1e5,maxHistoryTokens:32e3,tailMessageCount:20});function f(){let e=``;for(let t=0;t<6;t++)e+=`ABCDEFGHJKLMNPQRSTUVWXYZ23456789`[Math.floor(Math.random()*32)];return e}function m(){let e=i.value.trim(),t=a.value.trim()||f(),n=c.value.trim();!e||!n||r(`submit`,e,t,n,l.value.trim(),{...d.value})}function h(){p(()=>u.value?.focus())}return(e,t)=>(y(),z(`div`,Qn,[D(`div`,$n,[D(`label`,er,I(P(n)(`groupChat.yourName`)),1),k(P(T),{value:c.value,"onUpdate:value":t[0]||=e=>c.value=e,placeholder:P(n)(`groupChat.yourNamePlaceholder`),onKeyup:we(h,[`enter`])},null,8,[`value`,`placeholder`])]),D(`div`,tr,[D(`label`,nr,I(P(n)(`groupChat.yourDescription`)),1),k(P(T),{value:l.value,"onUpdate:value":t[1]||=e=>l.value=e,type:`textarea`,rows:2,placeholder:P(n)(`groupChat.yourDescriptionPlaceholder`)},null,8,[`value`,`placeholder`])]),D(`div`,rr,[D(`label`,ir,I(P(n)(`groupChat.roomName`)),1),k(P(T),{ref_key:`roomInput`,ref:u,value:i.value,"onUpdate:value":t[2]||=e=>i.value=e,placeholder:P(n)(`groupChat.roomNamePlaceholder`),onKeyup:we(m,[`enter`])},null,8,[`value`,`placeholder`])]),D(`div`,ar,[D(`label`,or,I(P(n)(`groupChat.inviteCode`)),1),D(`div`,sr,[k(P(T),{value:a.value,"onUpdate:value":t[3]||=e=>a.value=e,placeholder:P(n)(`groupChat.autoGenerate`)},null,8,[`value`,`placeholder`]),k(P(B),{size:`small`,onClick:t[4]||=e=>a.value=f()},{default:A(()=>[...t[9]||=[D(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[D(`polyline`,{points:`23 4 23 10 17 10`}),D(`path`,{d:`M20.49 15a9 9 0 1 1-2.12-9.36L23 10`})],-1)]]),_:1})])]),k(P(Me),{class:`compression-collapse`},{default:A(()=>[k(P(Pe),{title:P(n)(`groupChat.compressionSettings`),name:`compression`},{default:A(()=>[D(`div`,cr,[D(`div`,lr,[D(`label`,ur,I(P(n)(`groupChat.triggerTokens`)),1),k(P(o),{value:d.value.triggerTokens,"onUpdate:value":t[5]||=e=>d.value.triggerTokens=e,min:1e3,step:1e3,style:{width:`100%`}},null,8,[`value`]),D(`p`,dr,I(P(n)(`groupChat.triggerTokensDesc`)),1)]),D(`div`,fr,[D(`label`,pr,I(P(n)(`groupChat.maxHistoryTokens`)),1),k(P(o),{value:d.value.maxHistoryTokens,"onUpdate:value":t[6]||=e=>d.value.maxHistoryTokens=e,min:1e3,step:1e3,style:{width:`100%`}},null,8,[`value`]),D(`p`,mr,I(P(n)(`groupChat.maxHistoryTokensDesc`)),1)]),D(`div`,hr,[D(`label`,gr,I(P(n)(`groupChat.tailMessageCount`)),1),k(P(o),{value:d.value.tailMessageCount,"onUpdate:value":t[7]||=e=>d.value.tailMessageCount=e,min:1,step:5,style:{width:`100%`}},null,8,[`value`]),D(`p`,_r,I(P(n)(`groupChat.tailMessageCountDesc`)),1)])])]),_:1},8,[`title`])]),_:1}),D(`div`,vr,[k(P(s),{justify:`end`},{default:A(()=>[k(P(B),{onClick:t[8]||=e=>r(`cancel`)},{default:A(()=>[E(I(P(n)(`common.cancel`)),1)]),_:1}),k(P(B),{type:`primary`,disabled:!i.value.trim()||!c.value.trim(),onClick:m},{default:A(()=>[E(I(P(n)(`common.create`)),1)]),_:1},8,[`disabled`])]),_:1})])]))}}),[[`__scopeId`,`data-v-f150f087`]]),br={class:`group-chat-panel`},xr={key:0,class:`room-sidebar`},Sr={class:`sidebar-header`},Cr={class:`sidebar-title`},wr={class:`sidebar-actions`},Tr=[`title`],Er={class:`room-list`},Dr=[`onClick`],Or={class:`room-info`},kr={class:`room-name`},Ar={key:0,class:`room-code`},jr={class:`room-tokens`},Mr={key:0,class:`empty-rooms`},Nr={class:`chat-main`},Pr={class:`chat-header`},Fr={class:`room-title-text`},Ir={class:`header-info`},Lr={class:`avatar-stack-inner`},Rr=[`innerHTML`],zr=[`innerHTML`],Br={key:0,class:`avatar-stack-more`},Vr={class:`agent-popover`},Hr={class:`agent-popover-item`,style:{"margin-bottom":`8px`,"padding-bottom":`8px`,"border-bottom":`1px solid var(--n-border-color, #efeff5)`}},Ur=[`innerHTML`],Wr={class:`agent-popover-info`},Gr={class:`agent-popover-name`},Kr={class:`agent-popover-profile`},qr={class:`agent-popover-title`},Jr=[`innerHTML`],Yr={class:`agent-popover-info`},Xr={class:`agent-popover-name`},Zr={class:`agent-popover-profile`},Qr=[`onClick`],$r={key:1,class:`avatar-stack-inner`},ei={class:`avatar-stack-item`},ti=[`innerHTML`],ni=[`title`],ri=[`title`],ii={key:2,class:`member-count`},ai={key:0,class:`status-bar`},oi={key:0,class:`context-status-list`},si={key:0},ci={key:1},li={key:1,class:`typing-indicator`},ui={key:1,class:`no-room`},di={class:`modal`},fi={class:`modal`},pi={class:`form-group`},mi={class:`form-group`},hi={class:`form-label`},gi={class:`form-group`},_i={class:`form-label`},vi={class:`modal-actions`},yi={class:`modal`},bi={class:`form-group`},xi={class:`form-label`},Si={class:`form-hint`},Ci={class:`form-group`},wi={class:`form-label`},Ti={class:`form-hint`},Ei={class:`form-group`},Di={class:`form-label`},Oi={class:`form-hint`},ki={style:{"margin-top":`8px`}},Ai={class:`modal-actions`},ji=F(v({...v({components:{CreateRoomForm:yr}}),__name:`GroupChatPanel`,setup(e){let{t}=fe(),n=Te(),r=In(),i=be(),a=V(!0),l=V(!1),u=V(!1),f=V(!1),m=V({triggerTokens:1e5,maxHistoryTokens:32e3,tailMessageCount:20}),_=V(!1),v=V(null),b=V(``),x=V(``),C=h(()=>i.profiles.map(e=>({label:e.name,value:e.name}))),w=new Map;function O(e){if(w.has(e))return w.get(e);let t=(0,Fe.default)(e);return w.set(e,t),t}let j=h(()=>!!r.currentRoomId);function ee(e){return e>=1e3?`${(e/1e3).toFixed(1)}k tokens`:`${e} tokens`}function te(){a.value=!a.value}async function ne(e,i,a,o,s){try{r.setUserInfo(a,o);let c=await r.createNewRoom(e,i,void 0,s);l.value=!1,n.success(t(`groupChat.roomCreated`)),await r.joinRoom(c.room.id)}catch{n.error(t(`common.saveFailed`))}}async function re(e){try{await r.deleteRoom(e),n.success(t(`groupChat.roomDeleted`))}catch{n.error(t(`common.saveFailed`))}}async function ae(e){try{await r.joinRoom(e),window.innerWidth<=768&&(a.value=!1)}catch{n.error(t(`groupChat.joinFailed`))}}async function oe(e){try{await r.sendMessage(e)}catch(e){n.error(e.message)}}async function F(){await i.fetchProfiles(),u.value=!0}async function L(){if(!(!v.value||!r.currentRoomId))try{await r.addAgentToRoom(r.currentRoomId,{profile:v.value,name:b.value.trim()||void 0,description:x.value.trim()||void 0}),u.value=!1,v.value=null,b.value=``,x.value=``,n.success(t(`groupChat.agentAdded`))}catch(e){e.message?.includes(`already`)?n.warning(t(`groupChat.agentAlreadyInRoom`)):n.error(t(`common.saveFailed`))}}function se(){let e=r.rooms.find(e=>e.id===r.currentRoomId);e&&(m.value={triggerTokens:e.triggerTokens??1e5,maxHistoryTokens:e.maxHistoryTokens??32e3,tailMessageCount:e.tailMessageCount??20}),f.value=!0}async function R(){if(r.currentRoomId)try{let e=await Pn(r.currentRoomId,{...m.value}),i=r.rooms.findIndex(e=>e.id===r.currentRoomId);i>=0&&e.room&&(r.rooms[i]=e.room),f.value=!1,n.success(t(`groupChat.compressionSaved`))}catch{n.error(t(`common.saveFailed`))}}async function ce(){if(!(!r.currentRoomId||_.value)){if(r.contextStatuses.size>0){n.warning(t(`groupChat.compressingInProgress`));return}_.value=!0;try{await Fn(r.currentRoomId),n.success(t(`groupChat.compressionSaved`))}catch{n.error(t(`common.saveFailed`))}finally{_.value=!1}}}async function le(e){if(r.currentRoomId)try{await r.removeAgentFromRoom(r.currentRoomId,e)}catch{n.error(t(`common.deleteFailed`))}}let de=V();return ie(()=>r.sortedMessages.length,async()=>{await p(),de.value?.scrollToBottom()}),(e,n)=>(y(),z(`div`,br,[D(`div`,{class:me([`sidebar-backdrop`,{active:a.value}]),onClick:n[0]||=e=>a.value=!1},null,2),a.value?(y(),z(`div`,xr,[D(`div`,Sr,[D(`span`,Cr,I(P(t)(`groupChat.title`)),1),D(`div`,wr,[D(`button`,{class:`icon-btn`,title:P(t)(`groupChat.createRoom`),onClick:n[1]||=e=>l.value=!0},[...n[15]||=[D(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[D(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),D(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]],8,Tr)])]),D(`div`,Er,[(y(!0),z(G,null,ge(P(r).rooms,e=>(y(),z(`div`,{key:e.id,class:me([`room-item`,{active:P(r).currentRoomId===e.id}]),onClick:t=>ae(e.id)},[n[17]||=D(`svg`,{class:`room-icon`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[D(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})],-1),D(`div`,Or,[D(`span`,kr,I(e.name||e.id),1),e.inviteCode?(y(),z(`span`,Ar,I(e.inviteCode),1)):d(``,!0),D(`span`,jr,I(ee(e.totalTokens||0)),1)]),k(P(c),{onPositiveClick:t=>re(e.id)},{trigger:A(()=>[D(`button`,{class:`room-delete-btn`,onClick:n[2]||=M(()=>{},[`stop`])},[...n[16]||=[D(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[D(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),D(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])]),default:A(()=>[E(` `+I(P(t)(`groupChat.deleteRoomConfirm`)),1)]),_:1},8,[`onPositiveClick`])],10,Dr))),128)),P(r).rooms.length===0?(y(),z(`div`,Mr,I(P(t)(`groupChat.noRooms`)),1)):d(``,!0)])])):d(``,!0),D(`div`,Nr,[D(`div`,Pr,[D(`button`,{class:`icon-btn`,onClick:te},[...n[18]||=[D(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[D(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),D(`line`,{x1:`9`,y1:`3`,x2:`9`,y2:`21`})],-1)]]),D(`span`,Fr,I(P(r).roomName||P(r).currentRoomId||P(t)(`groupChat.title`)),1),D(`div`,Ir,[P(r).agents.length?(y(),ue(P(S),{key:0,trigger:`click`,placement:`bottom-end`,width:220},{trigger:A(()=>[D(`div`,Lr,[D(`span`,{class:`avatar-stack-item`,style:xe({zIndex:P(r).agents.length+1})},[D(`span`,{class:`agent-avatar`,innerHTML:O(P(r).userName||P(r).userId)},null,8,Rr)],4),(y(!0),z(G,null,ge(P(r).agents.slice(-4),(e,t)=>(y(),z(`span`,{key:e.id,class:`avatar-stack-item`,style:xe({zIndex:P(r).agents.length-t})},[D(`span`,{class:`agent-avatar`,innerHTML:O(e.name)},null,8,zr)],4))),128)),P(r).agents.length>4?(y(),z(`span`,Br,`+`+I(P(r).agents.length-4),1)):d(``,!0)])]),default:A(()=>[D(`div`,Vr,[D(`div`,Hr,[D(`span`,{class:`agent-avatar`,innerHTML:O(P(r).userName||P(r).userId)},null,8,Ur),D(`div`,Wr,[D(`span`,Gr,I(P(r).userName||`You`),1),D(`span`,Kr,I(P(t)(`groupChat.you`)),1)])]),D(`div`,qr,I(P(t)(`groupChat.agents`))+` (`+I(P(r).agents.length)+`)`,1),(y(!0),z(G,null,ge(P(r).agents,e=>(y(),z(`div`,{key:e.id,class:`agent-popover-item`},[D(`span`,{class:`agent-avatar`,innerHTML:O(e.name)},null,8,Jr),D(`div`,Yr,[D(`span`,Xr,I(e.name),1),D(`span`,Zr,I(e.profile),1)]),D(`button`,{class:`agent-popover-remove`,onClick:t=>le(e.id)},[...n[19]||=[D(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[D(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),D(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,Qr)]))),128))])]),_:1})):P(r).userName?(y(),z(`div`,$r,[D(`span`,ei,[D(`span`,{class:`agent-avatar`,innerHTML:O(P(r).userName||P(r).userId)},null,8,ti)])])):d(``,!0),D(`button`,{class:`icon-btn`,title:P(t)(`groupChat.addAgent`),onClick:F},[...n[20]||=[D(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[D(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),D(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]],8,ni),D(`button`,{class:`icon-btn`,title:P(t)(`groupChat.compressionConfig`),onClick:se},[...n[21]||=[D(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[D(`circle`,{cx:`12`,cy:`12`,r:`3`}),D(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 4.6a1.65 1.65 0 0 0 1.51 1V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.51 1z`})],-1)]],8,ri),P(r).members.length?(y(),z(`span`,ii,I(P(r).members.length)+` `+I(P(t)(`groupChat.members`)),1)):d(``,!0),D(`span`,{class:me([`connection-dot`,{connected:P(r).connected,disconnected:!P(r).connected}])},null,2)])]),j.value?(y(),z(G,{key:0},[k(Kn,{ref_key:`messageListRef`,ref:de},null,512),P(r).contextStatuses.size>0||P(r).typingText&&P(r).contextStatuses.size===0?(y(),z(`div`,ai,[P(r).contextStatuses.size>0?(y(),z(`div`,oi,[(y(!0),z(G,null,ge(P(r).contextStatuses,([e,r])=>(y(),z(`div`,{key:e,class:`context-status`},[n[22]||=D(`span`,{class:`typing-dots`},[D(`span`),D(`span`),D(`span`)],-1),r.status===`compressing`?(y(),z(`span`,si,` @`+I(r.agentName)+` `+I(P(t)(`groupChat.agentCompressing`)),1)):(y(),z(`span`,ci,` @`+I(r.agentName)+` `+I(P(t)(`groupChat.agentReplying`)),1))]))),128))])):P(r).typingText?(y(),z(`div`,li,[n[23]||=D(`span`,{class:`typing-dots`},[D(`span`),D(`span`),D(`span`)],-1),E(` `+I(P(r).typingText),1)])):d(``,!0)])):d(``,!0),k(Zn,{onSend:oe})],64)):(y(),z(`div`,ui,[n[24]||=D(`div`,{class:`no-room-icon`},[D(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[D(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})])],-1),D(`p`,null,I(P(t)(`groupChat.selectOrCreate`)),1)]))]),(y(),ue(N,{to:`body`},[l.value?(y(),z(`div`,{key:0,class:`modal-backdrop`,onClick:n[4]||=M(e=>l.value=!1,[`self`])},[D(`div`,di,[D(`h3`,null,I(P(t)(`groupChat.createRoom`)),1),k(yr,{onSubmit:ne,onCancel:n[3]||=e=>l.value=!1})])])):d(``,!0)])),(y(),ue(N,{to:`body`},[u.value?(y(),z(`div`,{key:0,class:`modal-backdrop`,onClick:n[9]||=M(e=>u.value=!1,[`self`])},[D(`div`,fi,[D(`h3`,null,I(P(t)(`groupChat.addAgent`)),1),D(`div`,pi,[k(P(g),{value:v.value,"onUpdate:value":n[5]||=e=>v.value=e,options:C.value,placeholder:P(t)(`groupChat.selectProfile`),filterable:``},null,8,[`value`,`options`,`placeholder`])]),D(`div`,mi,[D(`label`,hi,I(P(t)(`groupChat.agentName`)),1),k(P(T),{value:b.value,"onUpdate:value":n[6]||=e=>b.value=e,placeholder:P(t)(`groupChat.agentNamePlaceholder`)},null,8,[`value`,`placeholder`])]),D(`div`,gi,[D(`label`,_i,I(P(t)(`groupChat.agentDesc`)),1),k(P(T),{value:x.value,"onUpdate:value":n[7]||=e=>x.value=e,type:`textarea`,rows:2,placeholder:P(t)(`groupChat.agentDescPlaceholder`)},null,8,[`value`,`placeholder`])]),D(`div`,vi,[k(P(s),{justify:`end`},{default:A(()=>[k(P(B),{onClick:n[8]||=e=>u.value=!1},{default:A(()=>[E(I(P(t)(`common.cancel`)),1)]),_:1}),k(P(B),{type:`primary`,disabled:!v.value,onClick:L},{default:A(()=>[E(I(P(t)(`common.add`)),1)]),_:1},8,[`disabled`])]),_:1})])])])):d(``,!0),f.value?(y(),z(`div`,{key:1,class:`modal-backdrop`,onClick:n[14]||=M(e=>f.value=!1,[`self`])},[D(`div`,yi,[D(`h3`,null,I(P(t)(`groupChat.compressionConfig`)),1),D(`div`,bi,[D(`label`,xi,I(P(t)(`groupChat.triggerTokens`)),1),k(P(o),{value:m.value.triggerTokens,"onUpdate:value":n[10]||=e=>m.value.triggerTokens=e,min:1e3,step:1e4,style:{width:`100%`}},null,8,[`value`]),D(`p`,Si,I(P(t)(`groupChat.triggerTokensDesc`)),1)]),D(`div`,Ci,[D(`label`,wi,I(P(t)(`groupChat.maxHistoryTokens`)),1),k(P(o),{value:m.value.maxHistoryTokens,"onUpdate:value":n[11]||=e=>m.value.maxHistoryTokens=e,min:1e3,step:1e3,style:{width:`100%`}},null,8,[`value`]),D(`p`,Ti,I(P(t)(`groupChat.maxHistoryTokensDesc`)),1)]),D(`div`,Ei,[D(`label`,Di,I(P(t)(`groupChat.tailMessageCount`)),1),k(P(o),{value:m.value.tailMessageCount,"onUpdate:value":n[12]||=e=>m.value.tailMessageCount=e,min:1,step:5,style:{width:`100%`}},null,8,[`value`]),D(`p`,Oi,I(P(t)(`groupChat.tailMessageCountDesc`)),1)]),D(`div`,ki,[k(P(B),{block:``,disabled:_.value||P(r).contextStatuses.size>0,loading:_.value,onClick:ce},{default:A(()=>[E(I(_.value?P(t)(`groupChat.compressingInProgress`):P(t)(`groupChat.compressNow`)),1)]),_:1},8,[`disabled`,`loading`])]),D(`div`,Ai,[k(P(s),{justify:`end`},{default:A(()=>[k(P(B),{onClick:n[13]||=e=>f.value=!1},{default:A(()=>[E(I(P(t)(`common.cancel`)),1)]),_:1}),k(P(B),{type:`primary`,onClick:R},{default:A(()=>[E(I(P(t)(`common.save`)),1)]),_:1})]),_:1})])])])):d(``,!0)]))]))}}),[[`__scopeId`,`data-v-9cda5948`]]),Mi={class:`group-chat-view`},Ni=F(v({__name:`GroupChatView`,setup(e){let t=In();return ee(()=>{t.connect(),t.loadRooms()}),re(()=>{t.disconnect()}),(e,t)=>(y(),z(`div`,Mi,[k(ji)]))}}),[[`__scopeId`,`data-v-6a221d32`]]);export{Ni as default}; \ No newline at end of file diff --git a/webui/assets/GroupChatView-CjrsrmTX.css b/webui/assets/GroupChatView-CjrsrmTX.css new file mode 100644 index 0000000000000000000000000000000000000000..9efd7d4fa799df2dd6e012c710370d22ccef0646 --- /dev/null +++ b/webui/assets/GroupChatView-CjrsrmTX.css @@ -0,0 +1 @@ +[data-v-0a07afd6]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-0a07afd6]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.group-message[data-v-0a07afd6]{gap:10px;padding:2px 0;display:flex}.group-message.agent[data-v-0a07afd6],.group-message.self[data-v-0a07afd6]{flex-direction:row-reverse}.group-message.agent .msg-body[data-v-0a07afd6],.group-message.self .msg-body[data-v-0a07afd6]{align-items:flex-end}.group-message.agent .msg-header[data-v-0a07afd6],.group-message.self .msg-header[data-v-0a07afd6]{flex-direction:row-reverse}.group-message.agent .msg-content.agent-content[data-v-0a07afd6]{background-color:rgba(var(--accent-primary-rgb), .06)}.group-message.self .msg-content[data-v-0a07afd6]{background-color:rgba(var(--accent-primary-rgb), .1)}.avatar[data-v-0a07afd6]{border-radius:8px;flex-shrink:0;width:36px;height:36px;margin-top:2px;overflow:hidden}.avatar[data-v-0a07afd6] svg{width:36px;height:36px}.msg-body[data-v-0a07afd6]{flex-direction:column;min-width:0;max-width:85%;display:flex}.msg-header[data-v-0a07afd6]{align-items:center;gap:8px;padding-bottom:2px;display:flex}.msg-header .sender-name[data-v-0a07afd6]{color:var(--text-primary);font-size:13px;font-weight:600}.msg-header .agent-desc[data-v-0a07afd6]{color:var(--text-muted);font-size:11px;font-style:italic}.msg-time[data-v-0a07afd6]{color:var(--text-muted);opacity:.6;margin-top:2px;font-size:12px}.msg-content[data-v-0a07afd6]{color:var(--text-primary);background-color:var(--msg-user-bg);word-break:break-word;overflow-wrap:break-word;border-radius:10px;padding:10px 14px;font-size:14px;line-height:1.65}.msg-content[data-v-0a07afd6] .mention-highlight{color:#409eff;cursor:default;font-weight:600}[data-v-abded617]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-abded617]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.message-list[data-v-abded617]{background-color:var(--bg-card);flex-direction:column;flex:1;gap:12px;padding:16px 20px;display:flex;overflow-y:auto}.empty-state[data-v-abded617]{color:var(--text-muted);opacity:.4;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;display:flex}.empty-state p[data-v-abded617]{font-size:14px}[data-v-d354da76]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-d354da76]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.chat-input-area[data-v-d354da76]{border-top:1px solid var(--border-color);flex-shrink:0;padding:20px 20px 16px}.typing-dots[data-v-d354da76]{align-items:center;gap:2px;display:inline-flex}.typing-dots span[data-v-d354da76]{background-color:var(--text-muted);border-radius:50%;width:4px;height:4px;animation:1.2s infinite typing-bounce-d354da76;display:block}.typing-dots span[data-v-d354da76]:nth-child(2){animation-delay:.2s}.typing-dots span[data-v-d354da76]:nth-child(3){animation-delay:.4s}@keyframes typing-bounce-d354da76{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.input-wrapper[data-v-d354da76]{background-color:var(--bg-input);border:1px solid var(--border-color);border-radius:10px;align-items:center;gap:10px;padding:10px 12px;transition:border-color .15s,background-color .15s;display:flex}.input-wrapper[data-v-d354da76]:focus-within{border-color:var(--accent-primary)}.dark .input-wrapper[data-v-d354da76]{background-color:#333}.input-textarea[data-v-d354da76]{color:var(--text-primary);resize:none;background:0 0;border:none;outline:none;flex:1;min-height:20px;max-height:100px;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5;overflow-y:auto}.input-textarea[data-v-d354da76]::placeholder{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.input-actions[data-v-d354da76]{flex-shrink:0;align-items:center;gap:6px;display:flex}[data-v-f150f087]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-f150f087]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.create-form .form-group[data-v-f150f087]{margin-bottom:16px}.form-label[data-v-f150f087]{color:var(--text-secondary);margin-bottom:6px;font-size:13px;font-weight:500;display:block}.form-hint[data-v-f150f087]{color:var(--text-muted);margin:4px 0 0;font-size:11px}.code-row[data-v-f150f087]{align-items:center;gap:8px;display:flex}.compression-collapse[data-v-f150f087]{margin-bottom:16px}.compression-fields[data-v-f150f087]{padding-top:8px}[data-v-9cda5948]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-9cda5948]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.group-chat-panel[data-v-9cda5948]{height:100%;display:flex;position:relative;overflow:hidden}.sidebar-backdrop[data-v-9cda5948]{display:none}@media (width<=768px){.sidebar-backdrop[data-v-9cda5948]{z-index:99;opacity:0;pointer-events:none;background:#0006;transition:opacity .15s;display:block;position:absolute;inset:0}.sidebar-backdrop.active[data-v-9cda5948]{opacity:1;pointer-events:auto}}.status-bar[data-v-9cda5948]{flex-shrink:0;padding:6px 20px;overflow:hidden}.context-status-list[data-v-9cda5948]{flex-wrap:nowrap;gap:8px;display:flex;overflow-x:auto}.context-status-list[data-v-9cda5948]::-webkit-scrollbar{height:0}.context-status[data-v-9cda5948]{color:var(--text-secondary);background-color:var(--bg-card-hover);border-radius:6px;align-items:center;gap:6px;padding:4px 10px;font-size:12px;display:inline-flex}.dark .context-status[data-v-9cda5948]{background-color:#ffffff0f}.typing-indicator[data-v-9cda5948]{color:var(--text-muted);align-items:center;gap:6px;font-size:12px;display:flex}.typing-dots[data-v-9cda5948]{align-items:center;gap:2px;display:inline-flex}.typing-dots span[data-v-9cda5948]{background-color:var(--text-muted);border-radius:50%;width:4px;height:4px;animation:1.2s infinite typing-bounce-9cda5948;display:block}.typing-dots span[data-v-9cda5948]:nth-child(2){animation-delay:.2s}.typing-dots span[data-v-9cda5948]:nth-child(3){animation-delay:.4s}@keyframes typing-bounce-9cda5948{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.room-sidebar[data-v-9cda5948]{border-right:1px solid var(--border-color);flex-direction:column;flex-shrink:0;width:220px;display:flex}.sidebar-header[data-v-9cda5948]{flex-shrink:0;justify-content:space-between;align-items:center;padding:12px;display:flex}.sidebar-header .sidebar-title[data-v-9cda5948]{color:var(--text-primary);font-size:15px;font-weight:600}.sidebar-header .sidebar-actions[data-v-9cda5948]{gap:4px;display:flex}.room-list[data-v-9cda5948]{flex:1;padding:8px;overflow-y:auto}.room-item[data-v-9cda5948]{cursor:pointer;border-radius:6px;align-items:center;gap:10px;padding:10px;transition:background-color .15s;display:flex}.room-item[data-v-9cda5948]:hover{background-color:rgba(var(--accent-primary-rgb), .06)}.room-item.active[data-v-9cda5948]{background-color:rgba(var(--accent-primary-rgb), .12)}.room-item .room-icon[data-v-9cda5948]{color:var(--text-muted);flex-shrink:0}.room-item .room-info[data-v-9cda5948]{flex-direction:column;flex:1;min-width:0;display:flex}.room-item .room-name[data-v-9cda5948]{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.room-item .room-code[data-v-9cda5948]{color:var(--text-muted);font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:11px}.room-item .room-tokens[data-v-9cda5948]{color:var(--text-muted);font-size:11px}.room-item .room-delete-btn[data-v-9cda5948]{width:24px;height:24px;color:var(--text-muted);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;transition:opacity .15s,color .15s,background-color .15s;display:flex}.room-item .room-delete-btn[data-v-9cda5948]:hover{color:var(--error);background-color:rgba(var(--error-rgb), .1)}.room-item:hover .room-delete-btn[data-v-9cda5948]{opacity:1}.empty-rooms[data-v-9cda5948]{text-align:center;color:var(--text-muted);padding:20px 12px;font-size:13px}.chat-main[data-v-9cda5948]{background-color:#0000;flex-direction:column;flex:1;min-width:0;display:flex}.chat-header[data-v-9cda5948]{border-bottom:1px solid var(--border-color);align-items:center;gap:12px;padding:21px 20px;display:flex}.chat-header .room-title-text[data-v-9cda5948]{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:16px;font-weight:600;overflow:hidden}.chat-header .header-info[data-v-9cda5948]{flex-shrink:0;align-items:center;gap:8px;display:flex}.chat-header .member-count[data-v-9cda5948]{color:var(--text-muted);font-size:12px}.avatar-stack[data-v-9cda5948]{cursor:pointer}.avatar-stack-inner[data-v-9cda5948]{align-items:center;display:flex}.avatar-stack-item[data-v-9cda5948]{border:2px solid var(--bg-card);background-color:var(--bg-secondary);border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;margin-left:-12px;transition:transform .15s;display:flex;overflow:hidden}.avatar-stack-item[data-v-9cda5948]:first-child{margin-left:0}.avatar-stack-item[data-v-9cda5948]:hover{transform:translateY(-2px);z-index:100!important}.avatar-stack-more[data-v-9cda5948]{border:2px solid var(--bg-card);background-color:var(--bg-secondary);width:28px;height:28px;color:var(--text-secondary);border-radius:50%;justify-content:center;align-items:center;margin-left:-12px;font-size:11px;font-weight:600;display:flex}.agent-avatar[data-v-9cda5948]{justify-content:center;align-items:center;width:28px;height:28px;display:flex}.agent-avatar[data-v-9cda5948] svg{width:100%;height:100%}.agent-popover[data-v-9cda5948]{max-height:300px;overflow-y:auto}.agent-popover-title[data-v-9cda5948]{color:var(--text-muted);border-bottom:1px solid var(--border-color);margin-bottom:8px;padding:0 0 8px;font-size:12px;font-weight:600}.agent-popover-item[data-v-9cda5948]{border-radius:6px;align-items:center;gap:8px;padding:6px 4px;transition:background-color .15s;display:flex}.agent-popover-item[data-v-9cda5948]:hover{background-color:rgba(var(--accent-primary-rgb), .06)}.agent-popover-item .agent-popover-info[data-v-9cda5948]{flex:1;min-width:0}.agent-popover-item .agent-popover-name[data-v-9cda5948]{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:13px;display:block;overflow:hidden}.agent-popover-item .agent-popover-profile[data-v-9cda5948]{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:11px;display:block;overflow:hidden}.agent-popover-item .agent-popover-remove[data-v-9cda5948]{width:24px;height:24px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;transition:all .15s;display:flex}.agent-popover-item .agent-popover-remove[data-v-9cda5948]:hover{color:var(--error);background-color:#c8323214}.no-room[data-v-9cda5948]{color:var(--text-muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;display:flex}.no-room .no-room-icon[data-v-9cda5948]{opacity:.3}.no-room p[data-v-9cda5948]{font-size:14px}.icon-btn[data-v-9cda5948]{width:32px;height:32px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:all .15s;display:flex}.icon-btn[data-v-9cda5948]:hover{background-color:rgba(var(--accent-primary-rgb), .08);color:var(--text-primary)}.modal-backdrop[data-v-9cda5948]{z-index:1000;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal[data-v-9cda5948]{background:var(--bg-card);border-radius:14px;width:400px;max-width:90vw;padding:24px;box-shadow:0 8px 32px #0000001f}.modal h3[data-v-9cda5948]{color:var(--text-primary);margin:0 0 20px;font-size:16px;font-weight:600}.form-group[data-v-9cda5948]{margin-bottom:16px}.modal-actions[data-v-9cda5948]{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.form-hint[data-v-9cda5948]{color:var(--text-muted);margin:4px 0 0;font-size:11px}.connection-dot[data-v-9cda5948]{border-radius:50%;flex-shrink:0;width:8px;height:8px}.connection-dot.connected[data-v-9cda5948]{background-color:var(--success);box-shadow:0 0 6px rgba(var(--success-rgb), .5)}.connection-dot.disconnected[data-v-9cda5948]{background-color:var(--error)}@media (width<=768px){.room-sidebar[data-v-9cda5948]{z-index:100;position:absolute;top:0;bottom:0;left:0;box-shadow:4px 0 16px #0000001a}.chat-header[data-v-9cda5948]{padding-left:56px}}.group-chat-view[data-v-6a221d32]{height:calc(100 * var(--vh));flex-direction:column;display:flex} diff --git a/webui/assets/InputNumber-P0oq6NtF.js b/webui/assets/InputNumber-P0oq6NtF.js new file mode 100644 index 0000000000000000000000000000000000000000..791ee77fd9970c3e93d63703d17b38790df30261 --- /dev/null +++ b/webui/assets/InputNumber-P0oq6NtF.js @@ -0,0 +1,13 @@ +import{t as e}from"./Add-D070kowG.js";import{$n as t,A as n,Bn as r,Br as i,Dr as a,Fr as o,Ln as s,Lr as c,N as l,P as u,U as d,Un as f,Xr as ee,cn as p,er as m,hn as h,in as te,it as g,j as _,ni as v,nn as ne,nt as y,on as b,ot as re,qn as ie,ri as ae,rt as x,st as oe}from"./index-Cl8-DFW_.js";var S=o({name:`Remove`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))}});function C(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var se=x({name:`InputNumber`,common:d,peers:{Button:_,Input:u},self:C}),w=t([m(`input-number-suffix`,` + display: inline-block; + margin-right: 10px; + `),m(`input-number-prefix`,` + display: inline-block; + margin-left: 10px; + `)]);function T(e){return e==null||typeof e==`string`&&e.trim()===``?null:Number(e)}function E(e){return e.includes(`.`)&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e===`-`||e===`-0`}function D(e){return e==null?!0:!Number.isNaN(e)}function O(e,t){return typeof e==`number`?t===void 0?String(e):e.toFixed(t):``}function k(e){if(e===null)return null;if(typeof e==`number`)return e;{let t=Number(e);return Number.isNaN(t)?null:t}}var A=800,j=100,M=o({name:`InputNumber`,props:Object.assign(Object.assign({},g.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:`right`},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),slots:Object,setup(e){let{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:o,mergedComponentPropsRef:c}=te(e),l=g(`InputNumber`,`-input-number`,w,se,e,n),{localeRef:u}=oe(`InputNumber`),d=ne(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:c?.value?.InputNumber?.size||`medium`}}),{mergedSizeRef:p,mergedDisabledRef:m,mergedStatusRef:_}=d,y=v(null),b=v(null),x=v(null),S=v(e.defaultValue),C=s(ae(e,`value`),S),M=v(``),N=e=>{let t=String(e).split(`.`)[1];return t?t.length:0},ce=t=>{let n=[e.min,e.max,e.step,t].map(e=>e===void 0?0:N(e));return Math.max(...n)},le=r(()=>{let{placeholder:t}=e;return t===void 0?u.value.placeholder:t}),P=r(()=>{let t=k(e.step);return t===null||t===0?1:Math.abs(t)}),F=r(()=>{let t=k(e.min);return t===null?null:t}),I=r(()=>{let t=k(e.max);return t===null?null:t}),L=()=>{let{value:t}=C;if(D(t)){let{format:n,precision:r}=e;n?M.value=n(t):t===null||r===void 0||N(t)>r?M.value=O(t,void 0):M.value=O(t,r)}else M.value=String(t)};L();let R=t=>{let{value:n}=C;if(t===n){L();return}let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=d;a&&h(a,t),i&&h(i,t),r&&h(r,t),S.value=t,o(),s()},z=({offset:t,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{let{value:a}=M;if(i&&E(a))return!1;let o=(e.parse||T)(a);if(o===null)return n&&R(null),null;if(D(o)){let a=N(o),{precision:s}=e;if(s!==void 0&&st){if(!n||i)return!1;c=t}if(r!==null&&cz({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),V=r(()=>{let{value:t}=C;if(e.validator&&t===null)return!1;let{value:n}=P;return z({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),H=r(()=>{let{value:t}=C;if(e.validator&&t===null)return!1;let{value:n}=P;return z({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function U(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=d;n&&h(n,t),r()}function ue(t){if(t.target===y.value?.wrapperElRef)return;let n=z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){let e=y.value?.inputElRef;e&&(e.value=String(n||``)),C.value===n&&L()}else L();let{onBlur:r}=e,{nTriggerFormBlur:a}=d;r&&h(r,t),a(),i(()=>{L()})}function W(t){let{onClear:n}=e;n&&h(n,t)}function G(){let{value:t}=H;if(!t){$();return}let{value:n}=C;if(n===null)e.validator||R(q());else{let{value:e}=P;z({offset:e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function K(){let{value:t}=V;if(!t){Z();return}let{value:n}=C;if(n===null)e.validator||R(q());else{let{value:e}=P;z({offset:-e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}let de=U,fe=ue;function q(){if(e.validator)return null;let{value:t}=F,{value:n}=I;return t===null?n===null?0:Math.min(0,n):Math.max(0,t)}function pe(e){W(e),R(null)}function me(e){var t;x.value?.$el.contains(e.target)&&e.preventDefault(),b.value?.$el.contains(e.target)&&e.preventDefault(),(t=y.value)==null||t.activate()}let J=null,Y=null,X=null;function Z(){X&&=(window.clearTimeout(X),null),J&&=(window.clearInterval(J),null)}let Q=null;function $(){Q&&=(window.clearTimeout(Q),null),Y&&=(window.clearInterval(Y),null)}function he(){Z(),X=window.setTimeout(()=>{J=window.setInterval(()=>{K()},j)},A),f(`mouseup`,document,Z,{once:!0})}function ge(){$(),Q=window.setTimeout(()=>{Y=window.setInterval(()=>{G()},j)},A),f(`mouseup`,document,$,{once:!0})}let _e=()=>{Y||G()},ve=()=>{J||K()};function ye(t){var n;if(t.key===`Enter`){if(t.target===y.value?.wrapperElRef)return;z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((n=y.value)==null||n.deactivate())}else if(t.key===`ArrowUp`){if(!H.value||e.keyboard.ArrowUp===!1)return;t.preventDefault(),z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&G()}else if(t.key===`ArrowDown`){if(!V.value||e.keyboard.ArrowDown===!1)return;t.preventDefault(),z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&K()}}function be(t){M.value=t,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&z({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}ee(C,()=>{L()});let xe={focus:()=>y.value?.focus(),blur:()=>y.value?.blur(),select:()=>y.value?.select()},Se=re(`InputNumber`,o,n);return Object.assign(Object.assign({},xe),{rtlEnabled:Se,inputInstRef:y,minusButtonInstRef:b,addButtonInstRef:x,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:S,mergedValue:C,mergedPlaceholder:le,displayedValueInvalid:B,mergedSize:p,mergedDisabled:m,displayedValue:M,addable:H,minusable:V,mergedStatus:_,handleFocus:de,handleBlur:fe,handleClear:pe,handleMouseDown:me,handleAddClick:_e,handleMinusClick:ve,handleAddMousedown:ge,handleMinusMousedown:he,handleKeyDown:ye,handleUpdateDisplayedValue:be,mergedTheme:l,inputThemeOverrides:{paddingSmall:`0 8px 0 10px`,paddingMedium:`0 8px 0 12px`,paddingLarge:`0 8px 0 14px`},buttonThemeOverrides:a(()=>{let{self:{iconColorDisabled:e}}=l.value,[t,n,r,i]=ie(e);return{textColorTextDisabled:`rgb(${t}, ${n}, ${r})`,opacityDisabled:`${i}`}})})},render(){let{mergedClsPrefix:t,$slots:r}=this,i=()=>c(n,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:`minusButtonInstRef`},{icon:()=>b(r[`minus-icon`],()=>[c(y,{clsPrefix:t},{default:()=>c(S,null)})])}),a=()=>c(n,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:`addButtonInstRef`},{icon:()=>b(r[`add-icon`],()=>[c(y,{clsPrefix:t},{default:()=>c(e,null)})])});return c(`div`,{class:[`${t}-input-number`,this.rtlEnabled&&`${t}-input-number--rtl`]},c(l,{ref:`inputInstRef`,autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?`line-through`:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>this.showButton&&this.buttonPlacement===`both`?[i(),p(r.prefix,e=>e?c(`span`,{class:`${t}-input-number-prefix`},e):null)]:r.prefix?.call(r),suffix:()=>this.showButton?[p(r.suffix,e=>e?c(`span`,{class:`${t}-input-number-suffix`},e):null),this.buttonPlacement===`right`?i():null,a()]:r.suffix?.call(r)}))}});export{M as t}; \ No newline at end of file diff --git a/webui/assets/JobsView-CuKEnltM.js b/webui/assets/JobsView-CuKEnltM.js new file mode 100644 index 0000000000000000000000000000000000000000..c09ac984c2ca9bee6f5044e57623153dff6a95f5 --- /dev/null +++ b/webui/assets/JobsView-CuKEnltM.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jobs-BrAnck6c.js","assets/index-Cl8-DFW_.js","assets/chunk-Dlc7tRH4.js","assets/preload-helper-CPuF8Owr.js","assets/_baseFor-tDInUmcl.js","assets/create-EseJ7qR2.js","assets/app-IytcAxLh.js","assets/index-BTGffw30.css"])))=>i.map(i=>d[i]); +import{t as e}from"./preload-helper-CPuF8Owr.js";import{n as t,t as n}from"./FormItem-DB8yIr9W.js";import{t as r}from"./InputNumber-P0oq6NtF.js";import{t as i}from"./Tooltip-DQzh27d-.js";import{Ar as a,Dr as o,E as s,Fr as c,Gr as l,Mr as u,N as d,Nr as f,Or as p,Pr as m,Qr as h,Ur as g,ai as _,b as v,c as y,ci as b,gr as x,jr as S,k as C,kr as w,lr as T,ni as E,oi as D,qr as O,u as k,wr as A,y as j}from"./index-Cl8-DFW_.js";import{a as M,c as N,i as P,n as F,o as I,s as L,t as ee}from"./jobs-BrAnck6c.js";function R(e,t){return e.job_id===t||e.id===t}var z=x(`jobs`,()=>{let e=E([]),t=E(!1);async function n(){t.value=!0;try{e.value=await P()}catch(e){console.error(`Failed to fetch jobs:`,e)}finally{t.value=!1}}async function r(t){let n=await ee(t);return e.value.unshift(n),n}async function i(t,n){let r=await N(t,n),i=e.value.findIndex(e=>R(e,t));return i!==-1&&(e.value[i]=r),r}async function a(t){await F(t),e.value=e.value.filter(e=>!R(e,t))}async function o(t){let n=await M(t),r=e.value.findIndex(e=>R(e,t));r!==-1&&(e.value[r]=n)}async function s(t){let n=await I(t),r=e.value.findIndex(e=>R(e,t));r!==-1&&(e.value[r]=n)}async function c(t){let n=await L(t),r=e.value.findIndex(e=>R(e,t));r!==-1&&(e.value[r]=n)}return{jobs:e,loading:t,fetchJobs:n,createJob:r,updateJob:i,deleteJob:a,pauseJob:o,resumeJob:s,runJob:c}}),B={class:`job-card`},V={class:`card-header`},H={class:`job-name`},U={class:`card-body`},W={class:`info-row`},G={class:`info-label`},K={class:`info-value mono`},q={class:`info-row`},J={class:`info-label`},Y={class:`info-value`},X={class:`info-row`},Z={class:`info-label`},Q={class:`info-value`},te={class:`info-row`},ne={class:`info-label`},re={class:`info-value`},ie={key:0,class:`info-row`},ae={class:`info-label`},oe={class:`info-value`},se={class:`card-actions`},ce=y(c({__name:`JobCard`,props:{job:{}},emits:[`edit`],setup(e,{emit:t}){let n=e,r=t,{t:s}=T(),c=z(),u=j(),d=o(()=>n.job.job_id||n.job.id),g=o(()=>n.job.state===`running`?s(`jobs.status.running`):n.job.state===`paused`?s(`jobs.status.paused`):n.job.enabled?s(`jobs.status.scheduled`):s(`jobs.status.disabled`)),v=o(()=>n.job.state===`running`?`info`:n.job.state===`paused`?`warning`:n.job.enabled?`success`:`error`),y=o(()=>{let e=n.job.schedule;return typeof e==`string`?e:e?.expr||n.job.schedule_display||`—`}),x=e=>e?new Date(e).toLocaleString():`—`;async function E(){try{await c.pauseJob(d.value),u.success(s(`jobs.jobPaused`))}catch(e){u.error(e.message)}}async function O(){try{await c.resumeJob(d.value),u.success(s(`jobs.jobResumed`))}catch(e){u.error(e.message)}}async function k(){try{await c.runJob(d.value),u.info(s(`jobs.jobTriggered`))}catch(e){u.error(e.message)}}async function M(){try{await c.deleteJob(d.value),u.success(s(`jobs.jobDeleted`))}catch(e){u.error(e.message)}}return(t,n)=>(l(),S(`div`,B,[p(`div`,V,[p(`h3`,H,b(e.job.name),1),p(`span`,{class:D([`status-badge`,v.value])},b(g.value),3)]),p(`div`,U,[p(`div`,W,[p(`span`,G,b(_(s)(`jobs.info.schedule`)),1),p(`code`,K,b(y.value),1)]),p(`div`,q,[p(`span`,J,b(_(s)(`jobs.info.lastRun`)),1),p(`span`,Y,[f(b(x(e.job.last_run_at))+` `,1),e.job.last_status?(l(),S(`span`,{key:0,class:D([`run-status`,{ok:e.job.last_status===`ok`,err:e.job.last_status!==`ok`}])},b(e.job.last_status===`ok`?_(s)(`common.ok`):e.job.last_status),3)):a(``,!0)])]),p(`div`,X,[p(`span`,Z,b(_(s)(`jobs.info.nextRun`)),1),p(`span`,Q,b(x(e.job.next_run_at)),1)]),p(`div`,te,[p(`span`,ne,b(_(s)(`jobs.info.deliver`)),1),p(`span`,re,[f(b(e.job.deliver),1),e.job.origin?(l(),S(A,{key:0},[f(` (`+b(e.job.origin.platform)+`)`,1)],64)):a(``,!0)])]),e.job.repeat?(l(),S(`div`,ie,[p(`span`,ae,b(_(s)(`jobs.info.repeat`)),1),p(`span`,oe,[typeof e.job.repeat==`string`?(l(),S(A,{key:0},[f(b(e.job.repeat),1)],64)):(l(),S(A,{key:1},[f(b(e.job.repeat.completed)+` / `+b(e.job.repeat.times??`∞`),1)],64))])])):a(``,!0)]),p(`div`,se,[e.job.state!==`paused`&&e.job.enabled?(l(),w(_(i),{key:0},{trigger:h(()=>[m(_(C),{size:`tiny`,quaternary:``,onClick:E},{default:h(()=>[f(b(_(s)(`jobs.action.pause`)),1)]),_:1})]),default:h(()=>[f(` `+b(_(s)(`jobs.action.pauseJob`)),1)]),_:1})):e.job.state===`paused`?(l(),w(_(i),{key:1},{trigger:h(()=>[m(_(C),{size:`tiny`,quaternary:``,onClick:O},{default:h(()=>[f(b(_(s)(`jobs.action.resume`)),1)]),_:1})]),default:h(()=>[f(` `+b(_(s)(`jobs.action.resumeJob`)),1)]),_:1})):a(``,!0),m(_(i),null,{trigger:h(()=>[m(_(C),{size:`tiny`,quaternary:``,onClick:k},{default:h(()=>[f(b(_(s)(`jobs.action.runNow`)),1)]),_:1})]),default:h(()=>[f(` `+b(_(s)(`jobs.action.triggerImmediately`)),1)]),_:1}),m(_(C),{size:`tiny`,quaternary:``,onClick:n[0]||=e=>r(`edit`,d.value)},{default:h(()=>[f(b(_(s)(`common.edit`)),1)]),_:1}),m(_(C),{size:`tiny`,quaternary:``,type:`error`,onClick:M},{default:h(()=>[f(b(_(s)(`common.delete`)),1)]),_:1})])]))}}),[[`__scopeId`,`data-v-5c958088`]]),le={key:0,class:`empty-state`},$={key:1,class:`jobs-grid`},ue=y(c({__name:`JobsPanel`,emits:[`edit`],setup(e,{emit:t}){let{t:n}=T(),r=t,i=z();return(e,t)=>_(i).jobs.length===0?(l(),S(`div`,le,[t[0]||=u(``,1),p(`p`,null,b(_(n)(`jobs.noJobs`)),1)])):(l(),S(`div`,$,[(l(!0),S(A,null,O(_(i).jobs,e=>(l(),w(ce,{key:e.id,job:e,onEdit:t=>r(`edit`,e.id)},null,8,[`job`,`onEdit`]))),128))]))}}),[[`__scopeId`,`data-v-a0a8d138`]]),de={class:`modal-footer`},fe=y(c({__name:`JobFormModal`,props:{jobId:{}},emits:[`close`,`saved`],setup(i,{emit:a}){let{t:c}=T(),u=i,y=a,x=z(),S=j(),D=E(!0),O=E(!1),k=E({name:``,schedule:``,prompt:``,deliver:`origin`,repeat_times:null}),A=E(null),M=o(()=>!!u.jobId),N=o(()=>[{label:c(`jobs.presetEveryMinute`),value:`* * * * *`},{label:c(`jobs.presetEvery5Min`),value:`*/5 * * * *`},{label:c(`jobs.presetEveryHour`),value:`0 * * * *`},{label:c(`jobs.presetEveryDay`),value:`0 0 * * *`},{label:c(`jobs.presetEveryDay9`),value:`0 9 * * *`},{label:c(`jobs.presetEveryMonday`),value:`0 9 * * 1`},{label:c(`jobs.presetEveryMonth`),value:`0 9 1 * *`}]),P=o(()=>[{label:c(`jobs.origin`),value:`origin`},{label:c(`jobs.local`),value:`local`}]),F=E(null);g(async()=>{if(u.jobId)try{let{getJob:t}=await e(async()=>{let{getJob:e}=await import(`./jobs-BrAnck6c.js`).then(e=>e.r);return{getJob:e}},__vite__mapDeps([0,1,2,3,4,5,6,7])),n=await t(u.jobId);k.value={name:n.name,schedule:typeof n.schedule==`string`?n.schedule:n.schedule?.expr||n.schedule_display||``,prompt:n.prompt,deliver:n.deliver||`origin`,repeat_times:typeof n.repeat==`number`?n.repeat:typeof n.repeat==`object`?n.repeat.times:null},typeof n.schedule==`object`&&n.schedule&&(F.value=n.schedule)}catch(e){S.error(c(`jobs.loadFailed`)+`: `+e.message)}});async function I(){if(!k.value.name.trim()){S.warning(c(`jobs.nameRequired`));return}if(!k.value.schedule.trim()){S.warning(c(`jobs.scheduleRequired`));return}O.value=!0;try{let e={name:k.value.name,schedule:k.value.schedule,prompt:k.value.prompt,deliver:k.value.deliver,repeat:k.value.repeat_times??void 0};M.value&&F.value&&(e.schedule={kind:F.value.kind,expr:k.value.schedule,display:k.value.schedule}),M.value?(await x.updateJob(u.jobId,e),S.success(c(`jobs.jobUpdated`))):(await x.createJob(e),S.success(c(`jobs.jobCreated`))),y(`saved`)}catch(e){S.error(e.message)}finally{O.value=!1}}function L(){D.value=!1,setTimeout(()=>y(`close`),200)}return(e,i)=>(l(),w(_(v),{show:D.value,"onUpdate:show":i[7]||=e=>D.value=e,preset:`card`,title:M.value?_(c)(`jobs.editJob`):_(c)(`jobs.createJob`),style:{width:`min(520px, calc(100vw - 32px))`},"mask-closable":!O.value,onAfterLeave:i[8]||=e=>y(`close`)},{footer:h(()=>[p(`div`,de,[m(_(C),{onClick:L},{default:h(()=>[f(b(_(c)(`common.cancel`)),1)]),_:1}),m(_(C),{type:`primary`,loading:O.value,onClick:I},{default:h(()=>[f(b(M.value?_(c)(`common.update`):_(c)(`common.create`)),1)]),_:1},8,[`loading`])])]),default:h(()=>[m(_(t),{"label-placement":`top`},{default:h(()=>[m(_(n),{label:_(c)(`jobs.name`),required:``},{default:h(()=>[m(_(d),{value:k.value.name,"onUpdate:value":i[0]||=e=>k.value.name=e,placeholder:_(c)(`jobs.namePlaceholder`),maxlength:`200`,"show-count":``},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),m(_(n),{label:_(c)(`jobs.schedule`),required:``},{default:h(()=>[m(_(d),{value:k.value.schedule,"onUpdate:value":i[1]||=e=>k.value.schedule=e,placeholder:_(c)(`jobs.schedulePlaceholder`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),m(_(n),{label:_(c)(`jobs.quickPresets`)},{default:h(()=>[m(_(s),{value:A.value,"onUpdate:value":[i[2]||=e=>A.value=e,i[3]||=e=>k.value.schedule=e],options:N.value,placeholder:_(c)(`jobs.selectPreset`)},null,8,[`value`,`options`,`placeholder`])]),_:1},8,[`label`]),m(_(n),{label:_(c)(`jobs.prompt`),required:``},{default:h(()=>[m(_(d),{value:k.value.prompt,"onUpdate:value":i[4]||=e=>k.value.prompt=e,type:`textarea`,placeholder:_(c)(`jobs.promptPlaceholder`),rows:4,maxlength:`5000`,"show-count":``},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),m(_(n),{label:_(c)(`jobs.deliverTarget`)},{default:h(()=>[m(_(s),{value:k.value.deliver,"onUpdate:value":i[5]||=e=>k.value.deliver=e,options:P.value},null,8,[`value`,`options`])]),_:1},8,[`label`]),m(_(n),{label:_(c)(`jobs.repeatCount`)},{default:h(()=>[m(_(r),{value:k.value.repeat_times,"onUpdate:value":i[6]||=e=>k.value.repeat_times=e,min:1,placeholder:_(c)(`jobs.repeatPlaceholder`),clearable:``,style:{width:`100%`}},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])]),_:1})]),_:1},8,[`show`,`title`,`mask-closable`]))}}),[[`__scopeId`,`data-v-b339cfa2`]]),pe={class:`jobs-view`},me={class:`page-header`},he={class:`header-title`},ge={class:`jobs-content`},_e=y(c({__name:`JobsView`,setup(e){let{t}=T(),n=z(),r=E(!1),i=E(null);g(()=>{n.fetchJobs()});function o(){i.value=null,r.value=!0}function s(e){i.value=e,r.value=!0}function c(){r.value=!1,i.value=null}async function u(){await n.fetchJobs(),c()}return(e,d)=>(l(),S(`div`,pe,[p(`header`,me,[p(`h2`,he,b(_(t)(`jobs.title`)),1),m(_(C),{type:`primary`,size:`small`,onClick:o},{icon:h(()=>[...d[0]||=[p(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[p(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),p(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),default:h(()=>[f(` `+b(_(t)(`jobs.createJob`)),1)]),_:1})]),p(`div`,ge,[m(_(k),{show:_(n).loading&&_(n).jobs.length===0},{default:h(()=>[m(ue,{onEdit:s})]),_:1},8,[`show`])]),r.value?(l(),w(fe,{key:0,"job-id":i.value,onClose:c,onSaved:u},null,8,[`job-id`])):a(``,!0)]))}}),[[`__scopeId`,`data-v-c0d68ae3`]]);export{_e as default}; \ No newline at end of file diff --git a/webui/assets/JobsView-DlZj5jxn.css b/webui/assets/JobsView-DlZj5jxn.css new file mode 100644 index 0000000000000000000000000000000000000000..82a16b692e97663c43f77cd0626bcabd926ef532 --- /dev/null +++ b/webui/assets/JobsView-DlZj5jxn.css @@ -0,0 +1 @@ +[data-v-5c958088]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-5c958088]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.job-card[data-v-5c958088]{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;padding:16px;transition:border-color .15s}.job-card[data-v-5c958088]:hover{border-color:rgba(var(--accent-primary-rgb), .3)}.card-header[data-v-5c958088]{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.job-name[data-v-5c958088]{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;max-width:70%;font-size:15px;font-weight:600;overflow:hidden}.status-badge[data-v-5c958088]{border-radius:10px;padding:2px 8px;font-size:11px;font-weight:500}.status-badge.success[data-v-5c958088]{background:rgba(var(--success-rgb), .12);color:var(--success)}.status-badge.info[data-v-5c958088]{background:rgba(var(--accent-primary-rgb), .12);color:var(--accent-primary)}.status-badge.warning[data-v-5c958088]{background:rgba(var(--warning-rgb), .12);color:var(--warning)}.status-badge.error[data-v-5c958088]{background:rgba(var(--error-rgb), .12);color:var(--error)}.card-body[data-v-5c958088]{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.info-row[data-v-5c958088]{justify-content:space-between;align-items:center;display:flex}.info-label[data-v-5c958088]{color:var(--text-muted);font-size:12px}.info-value[data-v-5c958088]{color:var(--text-secondary);font-size:12px}.run-status[data-v-5c958088]{margin-left:6px;font-size:11px;font-weight:500}.run-status.ok[data-v-5c958088]{color:var(--success)}.run-status.err[data-v-5c958088]{color:var(--error)}.mono[data-v-5c958088]{font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:12px}.card-actions[data-v-5c958088]{border-top:1px solid var(--border-light);gap:4px;padding-top:10px;display:flex}[data-v-a0a8d138]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-a0a8d138]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.empty-state[data-v-a0a8d138]{height:100%;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex}.empty-state .empty-icon[data-v-a0a8d138]{opacity:.3}.empty-state p[data-v-a0a8d138]{font-size:14px}.jobs-grid[data-v-a0a8d138]{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:14px;display:grid}.modal-footer[data-v-b339cfa2]{justify-content:flex-end;gap:8px;display:flex}[data-v-c0d68ae3]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-c0d68ae3]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.jobs-view[data-v-c0d68ae3]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.jobs-content[data-v-c0d68ae3]{flex:1;padding:20px;overflow-y:auto} diff --git a/webui/assets/LoginView-YmilKiMi.css b/webui/assets/LoginView-YmilKiMi.css new file mode 100644 index 0000000000000000000000000000000000000000..6f21ac9c870f909be9338e47bf94d3e4c54c37de --- /dev/null +++ b/webui/assets/LoginView-YmilKiMi.css @@ -0,0 +1 @@ +[data-v-6f801147]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-6f801147]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.login-view[data-v-6f801147]{height:calc(100 * var(--vh));background:var(--bg-primary);justify-content:center;align-items:center;display:flex}.login-card[data-v-6f801147]{border:1px solid var(--border-color);background:var(--bg-card);text-align:center;border-radius:14px;width:480px;max-width:calc(100vw - 32px);padding:56px}@media (width<=768px){.login-card[data-v-6f801147]{padding:32px 24px}}.login-logo[data-v-6f801147]{margin-bottom:24px}.login-title[data-v-6f801147]{color:var(--text-primary);margin:0 0 10px;font-size:26px;font-weight:600}.login-desc[data-v-6f801147]{color:var(--text-muted);margin:0 0 32px;font-size:14px;line-height:1.6}.login-method-toggle[data-v-6f801147]{border:1px solid var(--border-color);border-radius:6px;margin-bottom:24px;display:flex;overflow:hidden}.login-method-toggle .toggle-btn[data-v-6f801147]{color:var(--text-muted);cursor:pointer;background:0 0;border:none;flex:1;padding:10px;font-size:13px;transition:all .15s}.login-method-toggle .toggle-btn.active[data-v-6f801147]{background:var(--text-primary);color:var(--text-on-accent)}.login-method-toggle .toggle-btn[data-v-6f801147]:not(.active):hover{background:rgba(var(--accent-primary-rgb), .06)}.login-form[data-v-6f801147]{flex-direction:column;gap:14px;display:flex}.login-input[data-v-6f801147]{border:1px solid var(--border-color);width:100%;color:var(--text-primary);background:var(--bg-input);box-sizing:border-box;border-radius:6px;outline:none;padding:14px 16px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:15px;transition:border-color .15s}.login-input[data-v-6f801147]::placeholder{color:var(--text-muted)}.login-input[data-v-6f801147]:focus{border-color:var(--accent-primary)}.login-error[data-v-6f801147]{color:var(--error);text-align:left;font-size:13px}.login-btn[data-v-6f801147]{background:var(--text-primary);width:100%;color:var(--text-on-accent);cursor:pointer;border:none;border-radius:6px;padding:14px;font-size:15px;font-weight:500;transition:opacity .15s}.login-btn[data-v-6f801147]:hover{opacity:.85}.login-btn[data-v-6f801147]:disabled{opacity:.5;cursor:not-allowed} diff --git a/webui/assets/LoginView-vUCsbDMV.js b/webui/assets/LoginView-vUCsbDMV.js new file mode 100644 index 0000000000000000000000000000000000000000..795a57facef168bfd70a84081d1b836ae1f2563d --- /dev/null +++ b/webui/assets/LoginView-vUCsbDMV.js @@ -0,0 +1 @@ +import{$r as e,Ar as t,Fr as n,Gr as r,Or as i,Sr as a,Ur as o,ai as s,c,ci as l,fr as u,hr as d,jr as f,lr as p,mr as m,ni as h,oi as g,wr as _,xr as v,yr as y}from"./index-Cl8-DFW_.js";import{i as b,r as x}from"./auth-B-i69M-u.js";var S={class:`login-view`},C={class:`login-card`},w={class:`login-title`},T={class:`login-desc`},E={key:0,class:`login-method-toggle`},D=[`placeholder`],O=[`placeholder`],k=[`placeholder`],A={key:2,class:`login-error`},j=[`disabled`],M=c(n({__name:`LoginView`,setup(n){let{t:c}=p(),M=d(),N=window.__LOGIN_TOKEN__||``,P=h(N),F=h(``),I=h(``),L=h(!1),R=h(``),z=h(`token`),B=h(!1);u()&&M.replace(`/hermes/chat`),o(async()=>{try{let e=await x();B.value=e.hasPasswordLogin,e.hasPasswordLogin&&!N&&(z.value=`password`)}catch{}});async function V(){z.value===`token`?await H():await U()}async function H(){let e=P.value.trim();if(!e){R.value=c(`login.tokenRequired`);return}L.value=!0,R.value=``;try{if((await fetch(`/api/hermes/sessions`,{headers:{Authorization:`Bearer ${e}`}})).status===401){R.value=c(`login.invalidToken`),L.value=!1;return}m(e),M.replace(`/hermes/chat`)}catch{R.value=c(`login.connectionFailed`)}finally{L.value=!1}}async function U(){if(!F.value.trim()||!I.value){R.value=c(`login.credentialsRequired`);return}L.value=!0,R.value=``;try{m(await b(F.value.trim(),I.value)),M.replace(`/hermes/chat`)}catch(e){R.value=e.message||c(`login.invalidCredentials`)}finally{L.value=!1}}return(n,o)=>(r(),f(`div`,S,[i(`div`,C,[o[5]||=i(`div`,{class:`login-logo`},[i(`img`,{src:`/webui/logo.png`,alt:`Hermes`,width:`80`,height:`80`})],-1),i(`h1`,w,l(s(c)(`login.title`)),1),i(`p`,T,l(s(c)(`login.description`)),1),B.value?(r(),f(`div`,E,[i(`button`,{class:g([`toggle-btn`,{active:z.value===`password`}]),onClick:o[0]||=e=>z.value=`password`},l(s(c)(`login.passwordLogin`)),3),i(`button`,{class:g([`toggle-btn`,{active:z.value===`token`}]),onClick:o[1]||=e=>z.value=`token`},l(s(c)(`login.tokenLogin`)),3)])):t(``,!0),i(`form`,{class:`login-form`,onSubmit:a(V,[`prevent`])},[z.value===`token`?e((r(),f(`input`,{key:0,"onUpdate:modelValue":o[2]||=e=>P.value=e,type:`password`,class:`login-input`,placeholder:s(c)(`login.placeholder`),autofocus:``},null,8,D)),[[y,P.value]]):t(``,!0),z.value===`password`?(r(),f(_,{key:1},[e(i(`input`,{"onUpdate:modelValue":o[3]||=e=>F.value=e,type:`text`,class:`login-input`,placeholder:s(c)(`login.usernamePlaceholder`),autofocus:``},null,8,O),[[y,F.value]]),e(i(`input`,{"onUpdate:modelValue":o[4]||=e=>I.value=e,type:`password`,class:`login-input`,placeholder:s(c)(`login.passwordPlaceholder`),onKeyup:v(V,[`enter`])},null,40,k),[[y,I.value]])],64)):t(``,!0),R.value?(r(),f(`div`,A,l(R.value),1)):t(``,!0),i(`button`,{type:`submit`,class:`login-btn`,disabled:L.value},l(L.value?`...`:s(c)(`login.submit`)),9,j)],32)])]))}}),[[`__scopeId`,`data-v-6f801147`]]);export{M as default}; \ No newline at end of file diff --git a/webui/assets/LogsView-B7bccIME.js b/webui/assets/LogsView-B7bccIME.js new file mode 100644 index 0000000000000000000000000000000000000000..aa0a8c5e6d15a9f837ecd05e66d2ce227757ca9a --- /dev/null +++ b/webui/assets/LogsView-B7bccIME.js @@ -0,0 +1 @@ +import{$r as e,Ar as t,Dr as n,E as r,Fr as i,Gr as a,Nr as o,Or as s,Pr as c,Qr as l,Ur as u,ai as d,c as f,ci as p,jr as m,k as h,lr as g,ni as _,oi as v,pr as y,qr as b,u as x,wr as S,y as C,yr as w}from"./index-Cl8-DFW_.js";async function T(){return(await y(`/api/hermes/logs`)).files}async function E(e,t){let n=new URLSearchParams;t?.lines&&n.set(`lines`,String(t.lines)),t?.level&&n.set(`level`,t.level),t?.session&&n.set(`session`,t.session),t?.since&&n.set(`since`,t.since);let r=n.toString();return(await y(`/api/hermes/logs/${e}${r?`?${r}`:``}`)).entries.filter(e=>e!==null)}var D={class:`logs-view`},ee={class:`page-header`},O={class:`header-title`},k={class:`header-actions`},A=[`placeholder`],j={class:`logs-body`},M={key:0,class:`logs-empty`},N={class:`log-list`},P={class:`log-time`},F={class:`log-logger`},I={class:`access-method`},L={class:`access-path`},R={key:1,class:`log-message`},z=f(i({__name:`LogsView`,setup(i){let{t:f}=g(),y=C(),z=_([]),B=_(`agent`),V=_([]),H=_(!1),U=_(100),W=_(``),G=_(``),K=n(()=>z.value.map(e=>({label:`${e.name} (${e.size})`,value:e.name}))),q=n(()=>[{label:f(`logs.all`),value:``},{label:`ERROR`,value:`ERROR`},{label:`WARNING`,value:`WARNING`},{label:`INFO`,value:`INFO`},{label:`DEBUG`,value:`DEBUG`}]),J=[{label:`50`,value:50},{label:`100`,value:100},{label:`200`,value:200},{label:`500`,value:500}],Y=n(()=>{if(!G.value)return V.value;let e=G.value.toLowerCase();return V.value.filter(t=>t.message.toLowerCase().includes(e)||t.logger.toLowerCase().includes(e)||t.raw.toLowerCase().includes(e))});function X(e){switch(e){case`ERROR`:return`level-error`;case`WARNING`:return`level-warning`;case`DEBUG`:return`level-debug`;default:return`level-info`}}function Z(e){let t=e.match(/\d{2}:\d{2}:\d{2}/);return t?t[0]:e}function Q(e){let t=e.match(/"(\w+)\s+(\S+)\s+HTTP\/[^"]+"\s+(\d+)/);return t?{method:t[1],path:t[2],status:t[3]}:null}async function $(){H.value=!0;try{V.value=(await E(B.value,{lines:U.value,level:W.value||void 0})).filter(e=>e!==null)}catch(e){y.error(e.message)}finally{H.value=!1}}return u(async()=>{z.value=await T(),await $()}),(n,i)=>(a(),m(`div`,D,[s(`header`,ee,[s(`h2`,O,p(d(f)(`logs.title`)),1),s(`div`,k,[c(d(r),{value:B.value,"onUpdate:value":[i[0]||=e=>B.value=e,$],options:K.value,size:`small`,class:`input-md`},null,8,[`value`,`options`]),c(d(r),{value:W.value,options:q.value,size:`small`,class:`input-sm`,"onUpdate:value":i[1]||=e=>{W.value=e,$()}},null,8,[`value`,`options`]),c(d(r),{value:U.value,options:J,size:`small`,class:`input-sm`,"onUpdate:value":i[2]||=e=>{U.value=e,$()}},null,8,[`value`]),e(s(`input`,{"onUpdate:modelValue":i[3]||=e=>G.value=e,class:`search-input`,placeholder:d(f)(`logs.searchPlaceholder`)},null,8,A),[[w,G.value]]),c(d(h),{size:`small`,loading:H.value,onClick:$},{default:l(()=>[o(p(d(f)(`logs.refresh`)),1)]),_:1},8,[`loading`])])]),s(`div`,j,[c(d(x),{show:H.value},{default:l(()=>[Y.value.length===0&&!H.value?(a(),m(`div`,M,p(d(f)(`logs.noEntries`)),1)):t(``,!0),s(`div`,N,[(a(!0),m(S,null,b(Y.value,(e,t)=>(a(),m(`div`,{key:t,class:v([`log-entry`,X(e.level)])},[s(`span`,P,p(Z(e.timestamp)),1),s(`span`,{class:v([`log-level`,X(e.level)])},p(e.level),3),s(`span`,F,p(e.logger),1),Q(e.message)?(a(),m(S,{key:0},[s(`span`,I,p(Q(e.message).method),1),s(`span`,L,p(Q(e.message).path),1),s(`span`,{class:v([`access-status`,`status-`+(Q(e.message).status?.[0]||`x`)])},p(Q(e.message).status),3)],64)):(a(),m(`span`,R,p(e.message),1))],2))),128))])]),_:1},8,[`show`])])]))}}),[[`__scopeId`,`data-v-c785e2a9`]]);export{z as default}; \ No newline at end of file diff --git a/webui/assets/LogsView-BuxFUnEf.css b/webui/assets/LogsView-BuxFUnEf.css new file mode 100644 index 0000000000000000000000000000000000000000..e2cbd11531866b70233fbed7282e2bfa5d6e99a1 --- /dev/null +++ b/webui/assets/LogsView-BuxFUnEf.css @@ -0,0 +1 @@ +[data-v-c785e2a9]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-c785e2a9]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.logs-view[data-v-c785e2a9]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.page-header[data-v-c785e2a9]{flex-wrap:wrap;gap:12px}.header-actions[data-v-c785e2a9]{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.search-input[data-v-c785e2a9]{border:1px solid var(--border-color);background:var(--bg-input);color:var(--text-primary);border-radius:6px;outline:none;width:160px;padding:4px 10px;font-size:13px;transition:border-color .15s}.search-input[data-v-c785e2a9]:focus{border-color:var(--accent-primary)}.search-input[data-v-c785e2a9]::placeholder{color:var(--text-muted)}.logs-body[data-v-c785e2a9]{flex:1;min-height:0;overflow-y:auto}.logs-empty[data-v-c785e2a9]{height:100%;color:var(--text-muted);justify-content:center;align-items:center;font-size:13px;display:flex}.log-list[data-v-c785e2a9]{padding:4px 0}.log-entry[data-v-c785e2a9]{border-left:2px solid #0000;align-items:center;gap:8px;padding:3px 20px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:12px;line-height:1.6;display:flex}.log-entry[data-v-c785e2a9]:hover{background-color:rgba(var(--accent-primary-rgb), .03)}.log-entry.level-error[data-v-c785e2a9]{border-left-color:var(--error)}.log-entry.level-error .log-message[data-v-c785e2a9]{color:var(--error)}.log-entry.level-warning[data-v-c785e2a9]{border-left-color:var(--warning)}.log-entry.level-warning .log-message[data-v-c785e2a9]{color:var(--warning)}.log-time[data-v-c785e2a9]{color:var(--text-muted);font-variant-numeric:tabular-nums;flex-shrink:0}.log-level[data-v-c785e2a9]{text-align:center;border-radius:2px;flex-shrink:0;min-width:42px;padding:0 4px;font-size:10px;font-weight:600}.log-level.level-error[data-v-c785e2a9]{background:rgba(var(--error-rgb), .12);color:var(--error)}.log-level.level-warning[data-v-c785e2a9]{background:rgba(var(--warning-rgb), .12);color:var(--warning)}.log-level.level-debug[data-v-c785e2a9],.log-level.level-info[data-v-c785e2a9]{background:rgba(var(--accent-primary-rgb), .06);color:var(--text-muted)}.log-logger[data-v-c785e2a9]{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;max-width:160px;overflow:hidden}.log-message[data-v-c785e2a9]{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.access-method[data-v-c785e2a9]{color:var(--text-primary);flex-shrink:0;font-weight:600}.access-path[data-v-c785e2a9]{color:var(--accent-primary);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.access-status[data-v-c785e2a9]{flex-shrink:0;font-size:11px;font-weight:600}.access-status.status-2[data-v-c785e2a9]{color:var(--success)}.access-status.status-3[data-v-c785e2a9]{color:var(--warning)}.access-status.status-4[data-v-c785e2a9],.access-status.status-5[data-v-c785e2a9]{color:var(--error)} diff --git a/webui/assets/MarkdownRenderer-BLJUO767.css b/webui/assets/MarkdownRenderer-BLJUO767.css new file mode 100644 index 0000000000000000000000000000000000000000..6953488b7a70269e01084e64a89afd803e32fc11 --- /dev/null +++ b/webui/assets/MarkdownRenderer-BLJUO767.css @@ -0,0 +1 @@ +:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.markdown-body{box-sizing:border-box;min-width:0;max-width:100%;font-size:14px;line-height:1.65;overflow-x:auto}.markdown-body p{margin:0 0 8px}.markdown-body p:last-child{margin-bottom:0}.markdown-body ul,.markdown-body ol{margin:4px 0 8px;padding-left:20px}.markdown-body li{margin:2px 0}.markdown-body strong{color:var(--text-primary);font-weight:600}.markdown-body em{color:var(--text-secondary)}.markdown-body a{color:var(--accent-primary);text-underline-offset:2px;text-decoration:underline}.markdown-body a:hover{color:var(--accent-hover)}.markdown-body blockquote{border-left:3px solid var(--border-color);color:var(--text-secondary);margin:8px 0;padding:4px 12px}.markdown-body code:not(.hljs){background:var(--code-bg);color:var(--accent-primary);border-radius:4px;padding:2px 6px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:13px}.markdown-body table{border-collapse:collapse;width:100%;margin:8px 0;display:block;overflow-x:auto}.markdown-body table th,.markdown-body table td{border:1px solid var(--border-color);text-align:left;padding:6px 12px;font-size:13px}.markdown-body table th{background:rgba(var(--accent-primary-rgb), .08);color:var(--text-primary);font-weight:600}.markdown-body table td{color:var(--text-secondary)}.markdown-body hr{border:none;border-top:1px solid var(--border-color);margin:12px 0}.markdown-body .mermaid-diagram{border:1px solid var(--border-color);background:rgba(var(--accent-primary-rgb), .04);border-radius:8px;margin:10px 0;padding:14px;overflow-x:auto}.markdown-body .mermaid-diagram svg{max-width:100%;height:auto;margin:0 auto;display:block}.markdown-body .mermaid-loading{color:var(--text-secondary);justify-content:center;align-items:center;min-height:60px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:13px;display:flex} diff --git a/webui/assets/MarkdownRenderer-P3bVUblX.js b/webui/assets/MarkdownRenderer-P3bVUblX.js new file mode 100644 index 0000000000000000000000000000000000000000..5c699dcd5a7176118493a133d90b72db39798082 --- /dev/null +++ b/webui/assets/MarkdownRenderer-P3bVUblX.js @@ -0,0 +1,26 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-DDVKiIRn.js","assets/preload-helper-CPuF8Owr.js","assets/chunk-U2HBQHQK-C4Z8_HX4.js","assets/src-DZYWZEqD.js","assets/chunk-Dlc7tRH4.js","assets/chunk-5PVQY5BW-D8dVtMiH.js","assets/index-Cl8-DFW_.js","assets/_baseFor-tDInUmcl.js","assets/create-EseJ7qR2.js","assets/app-IytcAxLh.js","assets/index-BTGffw30.css","assets/dist-Ur6PXDdt.js","assets/chunk-ICPOFSXX-BhJj4Z4R.js","assets/isEmpty-_CIYlAqN.js","assets/chunk-336JU56O-AgjSGONQ.js","assets/chunk-5FUZZQ4R-dz-eHLU2.js","assets/chunk-X2U36JSP-BrQ3X179.js","assets/chunk-ZZ45TVLE-620quLQs.js","assets/rough.esm-6CnTHTkH.js","assets/chunk-ENJZ2VHE-BgCfVyME.js","assets/line-CkXJICAw.js","assets/path-B0d9ncVi.js","assets/array-BwJyW1Dp.js","assets/chunk-BSJP7CBP-DfPpUNd1.js","assets/chunk-426QAEUC-Cy3oYJ1h.js","assets/chunk-XPW4576I-DVyaFXvV.js"])))=>i.map(i=>d[i]); +import{o as e,r as t,t as n}from"./chunk-Dlc7tRH4.js";import{t as r}from"./preload-helper-CPuF8Owr.js";import{Br as i,Dr as a,Fr as o,Gr as s,Hr as c,Ur as l,Xr as u,dr as d,jr as f,lr as p,ni as m,ur as h,y as g}from"./index-Cl8-DFW_.js";function _(e,t){let n=d(),r=new URLSearchParams({path:e});t&&r.set(`name`,t);let i=h();return i&&r.set(`token`,i),`${n}/api/hermes/download?${r.toString()}`}async function v(e,t){let n=_(e,t),r=await fetch(n);if(!r.ok){let e=await r.json().catch(()=>({error:`HTTP ${r.status}`}));throw Error(e.error||`Download failed: ${r.status}`)}let i=await r.blob(),a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=t||e.split(`/`).pop()||`download`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)}var y={};function b(e){let t=y[e];if(t)return t;t=y[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n=55296&&e<=57343?t+=`���`:t+=String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+91114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}x.defaultChars=`;/?:@&=+$,#`,x.componentChars=``;var S={};function C(e){let t=S[e];if(t)return t;t=S[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}w.defaultChars=`;/?:@&=+$,-_.!~*'()#`,w.componentChars=`-_.!~*'()`;function T(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function E(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var D=/^([a-z0-9.+-]+:)/i,O=/:[0-9]*$/,k=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,A=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,` +`,` `],j=[`/`,`?`,`#`],M=255,N=/^[+a-z0-9A-Z_-]{0,63}$/,P=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,F={javascript:!0,"javascript:":!0},I={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function L(e,t){if(e&&e instanceof E)return e;let n=new E;return n.parse(e,t),n}E.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=k.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=D.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&F[o])&&(a=a.substr(2),this.slashes=!0)),!F[o]&&(i||o&&!I[o])){let e=-1;for(let t=0;t127?r+=`x`:r+=n[e];if(!r.match(N)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(P);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>M&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),I[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},E.prototype.parseHost=function(e){let t=O.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var R=t({decode:()=>x,encode:()=>w,format:()=>T,parse:()=>L}),z=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,B=/[\0-\x1F\x7F-\x9F]/,ee=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,te=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ne=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,re=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ie=t({Any:()=>z,Cc:()=>B,Cf:()=>ee,P:()=>te,S:()=>ne,Z:()=>re}),ae=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),oe=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),se=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ce=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function le(e){return e>=55296&&e<=57343||e>1114111?65533:se.get(e)??e}var V;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(V||={});var ue=32,de;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(de||={});function fe(e){return e>=V.ZERO&&e<=V.NINE}function pe(e){return e>=V.UPPER_A&&e<=V.UPPER_F||e>=V.LOWER_A&&e<=V.LOWER_F}function me(e){return e>=V.UPPER_A&&e<=V.UPPER_Z||e>=V.LOWER_A&&e<=V.LOWER_Z||fe(e)}function he(e){return e===V.EQUALS||me(e)}var H;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(H||={});var U;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(U||={});var ge=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=H.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=U.Strict}startEntity(e){this.decodeMode=e,this.state=H.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case H.EntityStart:return e.charCodeAt(t)===V.NUM?(this.state=H.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=H.NamedEntity,this.stateNamedEntity(e,t));case H.NumericStart:return this.stateNumericStart(e,t);case H.NumericDecimal:return this.stateNumericDecimal(e,t);case H.NumericHex:return this.stateNumericHex(e,t);case H.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|ue)===V.LOWER_X?(this.state=H.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=H.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t>14;for(;t>14,i!==0){if(a===V.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==U.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&de.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~de.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case H.NamedEntity:return this.result!==0&&(this.decodeMode!==U.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case H.NumericDecimal:return this.emitNumericEntity(0,2);case H.NumericHex:return this.emitNumericEntity(0,3);case H.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case H.EntityStart:return 0}}};function W(e){let t=``,n=new ge(e,e=>t+=ce(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function _e(e,t,n,r){let i=(t&de.BRANCH_LENGTH)>>7,a=t&de.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(nr)s=t-1;else return e[t+i]}return-1}var ve=W(ae);W(oe);function ye(e,t=U.Legacy){return ve(e,t)}var be=t({arrayReplaceAt:()=>Ee,assign:()=>Te,escapeHtml:()=>ze,escapeRE:()=>Ve,fromCodePoint:()=>Oe,has:()=>we,isMdAsciiPunct:()=>We,isPunctChar:()=>Ue,isSpace:()=>G,isString:()=>Se,isValidEntityCode:()=>De,isWhiteSpace:()=>He,lib:()=>Ke,normalizeReference:()=>Ge,unescapeAll:()=>Pe,unescapeMd:()=>Ne});function xe(e){return Object.prototype.toString.call(e)}function Se(e){return xe(e)===`[object String]`}var Ce=Object.prototype.hasOwnProperty;function we(e,t){return Ce.call(e,t)}function Te(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function Ee(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function De(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Oe(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var ke=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ae=RegExp(ke.source+`|&([a-z#][a-z0-9]{1,31});`,`gi`),je=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Me(e,t){if(t.charCodeAt(0)===35&&je.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return De(n)?Oe(n):e}let n=ye(e);return n===e?e:n}function Ne(e){return e.indexOf(`\\`)<0?e:e.replace(ke,`$1`)}function Pe(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(Ae,function(e,t,n){return t||Me(e,n)})}var Fe=/[&<>"]/,Ie=/[&<>"]/g,Le={"&":`&`,"<":`<`,">":`>`,'"':`"`};function Re(e){return Le[e]}function ze(e){return Fe.test(e)?e.replace(Ie,Re):e}var Be=/[.?*+^$[\]\\(){}|-]/g;function Ve(e){return e.replace(Be,`\\$&`)}function G(e){switch(e){case 9:case 32:return!0}return!1}function He(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ue(e){return te.test(e)||ne.test(e)}function We(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ge(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}var Ke={mdurl:R,ucmicro:ie};function qe(e,t,n){let r,i,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=Pe(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function Ye(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;aJe,parseLinkLabel:()=>qe,parseLinkTitle:()=>Ye}),K={};K.code_inline=function(e,t,n,r,i){let a=e[t];return``+ze(a.content)+``},K.code_block=function(e,t,n,r,i){let a=e[t];return``+ze(e[t].content)+` +`},K.fence=function(e,t,n,r,i){let a=e[t],o=a.info?Pe(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}let l;if(l=n.highlight&&n.highlight(a.content,s,c)||ze(a.content),l.indexOf(`${l}\n`}return`
${l}
\n`},K.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},K.hardbreak=function(e,t,n){return n.xhtmlOut?`
+`:`
+`},K.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
+`:`
+`:` +`},K.text=function(e,t){return ze(e[t].content)},K.html_block=function(e,t){return e[t].content},K.html_inline=function(e,t){return e[t].content};function Ze(){this.rules=Te({},K)}Ze.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t +`:`>`,i},Ze.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a=0&&(n=this.attrs[t][1]),n},J.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function Qe(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Qe.prototype.Token=J;var $e=/\r\n?|\n/g,et=/\0/g;function tt(e){let t;t=e.src.replace($e,` +`),t=t.replace(et,`�`),e.src=t}function nt(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function rt(e){let t=e.tokens;for(let n=0,r=t.length;n\s]/i.test(e)}function at(e){return/^<\/a\s*>/i.test(e)}function ot(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(it(o.content)&&i>0&&i--,at(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),c=[],l=o.level,u=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;tu){let t=new e.Token(`text`,``,0);t.content=i.slice(u,o),t.level=l,c.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=l++,d.markup=`linkify`,d.info=`auto`,c.push(d);let f=new e.Token(`text`,``,0);f.content=a,f.level=l,c.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--l,p.markup=`linkify`,p.info=`auto`,c.push(p),u=s[t].lastIndex}if(u=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(lt,dt)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function pt(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&st.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function mt(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(ct.test(e.tokens[t].content)&&ft(e.tokens[t].children),st.test(e.tokens[t].content)&&pt(e.tokens[t].children))}var ht=/['"]/,gt=/['"]/g,_t=`’`;function vt(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function yt(e,t){let n,r=[];for(let i=0;i=0&&!(r[n].level<=o);n--);if(r.length=n+1,a.type!==`text`)continue;let s=a.content,c=0,l=s.length;OUTER:for(;c=0)m=s.charCodeAt(u.index-1);else for(n=i-1;n>=0&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(c=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f){p&&(a.content=vt(a.content,u.index,_t));continue}if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level=0;t--)e.tokens[t].type!==`inline`||!ht.test(e.tokens[t].content)||yt(e.tokens[t].children,e)}function xt(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e0&&this.level++,this.tokens.push(r),r},Y.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Y.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!G(this.src.charCodeAt(--e)))return e+1;return e},Y.prototype.skipChars=function(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},Y.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;on?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},Y.prototype.Token=J;var wt=65536;function Tt(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Et(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;rn)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!G(s)||o===45&&G(s))return!1;for(;a=4)return!1;l=Et(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t=4||(l=Et(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>wt))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+` +`,a.map=[t,e.line],!0}function kt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i=4)&&(i=e.skipChars(i,o),!(i-s=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]=e.blkIndent&&(u=!0);let d,f,p;if((p=Nt(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=Mt(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]=4)break;let C=!1;for(let t=0,r=v.length;t=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,zt=RegExp(`^(?:`+Rt+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>||<[?][\\s\\S]*?[?]>|]*>|)`),Bt=RegExp(`^(?:`+Rt+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),Vt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[RegExp(`^|$))`,`i`),/^$/,!0],[RegExp(Bt.source+`\\s*$`),/^$/,!1]];function Ht(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i6||ii&&G(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=e.src.slice(i,a).trim(),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Wt(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i=n||e.sCount[o]=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Jt.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,a=e;for(;a0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(Zt);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,l]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function $t(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0);else e.push(`softbreak`,`br`,0);for(n++;n?@[]^_\`{|}~-`.split(``).forEach(function(e){en[e.charCodeAt(0)]=1});function tn(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);i<256&&en[i]!==0?t.content=a:t.content=o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function nn(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function un(e){let t=e.tokens_meta,n=e.tokens_meta.length;ln(e,e.delimiters);for(let r=0;r=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Ge(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function pn(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Ge(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var mn=/^([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])?)*)$/,hn=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function gn(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(hn.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(mn.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function _n(e){return/^\s]/i.test(e)}function vn(e){return/^<\/a\s*>/i.test(e)}function yn(e){let t=e|32;return t>=97&&t<=122}function bn(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!yn(i))return!1;let a=e.src.slice(r).match(zt);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],_n(t.content)&&e.linkLevel++,vn(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var xn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Sn=/^&([a-z][a-z0-9]{1,31});/i;function Cn(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(xn);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=De(t)?Oe(t):Oe(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Sn);if(r){let n=ye(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function wn(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;os;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function Tn(e){let t=e.tokens_meta,n=e.tokens_meta.length;wn(e.delimiters);for(let e=0;e0&&r++,i[t].type===`text`&&t+1=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},kn.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},kn.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<|]`;return t.src_pseudo_letter=`(?:(?!`+n+`|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|`+n+`|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|`+n+`|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function jn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Mn(e){return Object.prototype.toString.call(e)}function Nn(e){return Mn(e)===`[object String]`}function Pn(e){return Mn(e)===`[object Object]`}function Fn(e){return Mn(e)===`[object RegExp]`}function In(e){return Mn(e)===`[object Function]`}function Ln(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Rn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function zn(e){return Object.keys(e||{}).reduce(function(e,t){return e||Rn.hasOwnProperty(t)},!1)}var Bn={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Vn=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Hn=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function Un(e){e.__index__=-1,e.__text_cache__=``}function Wn(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Gn(){return function(e,t){t.normalize(e)}}function Kn(e){let t=e.re=An(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Vn),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,Pn(n)){Fn(n.validate)?r.validate=Wn(n.validate):In(n.validate)?r.validate=n.validate:a(t,n),In(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=Gn();return}if(Nn(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:Gn()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Ln).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`),Un(e)}function qn(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Jn(e,t){let n=new qn(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function X(e,t){if(!(this instanceof X))return new X(e,t);t||zn(e)&&(t=e,e={}),this.__opts__=jn({},Rn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=``,this.__text_cache__=``,this.__schemas__=jn({},Bn,e),this.__compiled__={},this.__tlds__=Hn,this.__tlds_replaced__=!1,this.re={},Kn(this)}X.prototype.add=function(e,t){return this.__schemas__[e]=t,Kn(this),this},X.prototype.set=function(e){return this.__opts__=jn(this.__opts__,e),this},X.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,a,o,s,c,l;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__=`mailto:`,this.__index__=a,this.__last_index__=o))),this.__index__>=0},X.prototype.pretest=function(e){return this.re.pretest.test(e)},X.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},X.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Jn(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Jn(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},X.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Jn(this,0)):null},X.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Kn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Kn(this),this)},X.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},X.prototype.onCompile=function(){};var Yn=2147483647,Z=36,Xn=1,Zn=26,Qn=38,$n=700,er=72,tr=128,nr=`-`,rr=/^xn--/,ir=/[^\0-\x7F]/,ar=/[\x2E\u3002\uFF0E\uFF61]/g,or={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},sr=Z-Xn,Q=Math.floor,cr=String.fromCharCode;function lr(e){throw RangeError(or[e])}function ur(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function dr(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(ar,`.`);let i=ur(e.split(`.`),t).join(`.`);return r+i}function fr(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),mr=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Z},hr=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},gr=function(e,t,n){let r=0;for(e=n?Q(e/$n):e>>1,e+=Q(e/t);e>sr*Zn>>1;r+=Z)e=Q(e/sr);return Q(r+(sr+1)*e/(e+Qn))},_r=function(e){let t=[],n=e.length,r=0,i=tr,a=er,o=e.lastIndexOf(nr);o<0&&(o=0);for(let n=0;n=128&&lr(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s=n&&lr(`invalid-input`);let o=mr(e.charCodeAt(s++));o>=Z&&lr(`invalid-input`),o>Q((Yn-r)/t)&&lr(`overflow`),r+=o*t;let c=i<=a?Xn:i>=a+Zn?Zn:i-a;if(oQ(Yn/l)&&lr(`overflow`),t*=l}let c=t.length+1;a=gr(r-o,c,o==0),Q(r/c)>Yn-i&&lr(`overflow`),i+=Q(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},vr=function(e){let t=[];e=fr(e);let n=e.length,r=tr,i=0,a=er;for(let n of e)n<128&&t.push(cr(n));let o=t.length,s=o;for(o&&t.push(nr);s=r&&tQ((Yn-i)/c)&&lr(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(nYn&&lr(`overflow`),n===r){let e=i;for(let n=Z;;n+=Z){let r=n<=a?Xn:n>=a+Zn?Zn:n-a;if(e=0))try{t.hostname=yr.toASCII(t.hostname)}catch{}return w(T(t))}function Er(e){let t=L(e,!0);if(t.hostname&&(!t.protocol||wr.indexOf(t.protocol)>=0))try{t.hostname=yr.toUnicode(t.hostname)}catch{}return x(T(t),x.defaultChars+`%`)}function $(e,t){if(!(this instanceof $))return new $(e,t);t||Se(e)||(t=e||{},e=`default`),this.inline=new kn,this.block=new qt,this.core=new Ct,this.renderer=new Ze,this.linkify=new X,this.validateLink=Cr,this.normalizeLink=Tr,this.normalizeLinkText=Er,this.utils=be,this.helpers=Te({},Xe),this.options={},this.configure(e),t&&this.set(t)}$.prototype.set=function(e){return Te(this.options,e),this},$.prototype.configure=function(e){let t=this;if(Se(e)){let t=e;if(e=br[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},$.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},$.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},$.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},$.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},$.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},$.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},$.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var Dr=n(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=``,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=``}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={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/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`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 r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},L=I(`//`,`$`),R=I(`/\\*`,`\\*/`),z=I(`#`,`$`),B={scope:`number`,begin:D,relevance:0},ee={scope:`number`,begin:O,relevance:0},te={scope:`number`,begin:k,relevance:0},ne={scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},re={scope:`title`,begin:T,relevance:0},ie={scope:`title`,begin:E,relevance:0},ae={begin:`\\.\\s*`+E,relevance:0},oe=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:te,BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:R,C_LINE_COMMENT_MODE:L,C_NUMBER_MODE:ee,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:ae,NUMBER_MODE:B,NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:ne,RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:re,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:ie});function se(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ce(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function le(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=se,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function V(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function ue(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function de(e,t){e.relevance===void 0&&(e.relevance=1)}var fe=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},pe=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],me=`keyword`;function he(e,t,n=me){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,he(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,H(n[0],n[1])]})}}function H(e,t){return t?Number(t):+!U(e)}function U(e){return pe.includes(e.toLowerCase())}var ge={},W=e=>{console.error(e)},_e=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ve=(e,t)=>{ge[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ge[`${e}/${t}`]=!0)},ye=Error();function be(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function xe(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw W(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),ye;if(typeof e.beginScope!=`object`||e.beginScope===null)throw W(`beginScope must be object`),ye;be(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function Se(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw W(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),ye;if(typeof e.endScope!=`object`||e.endScope===null)throw W(`endScope must be object`),ye;be(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function Ce(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function we(e){Ce(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),xe(e),Se(e)}function Te(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(C(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ce,ue,we,fe].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[le,V,de].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=he(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return De(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function Ee(e){return e?e.endsWithParent||Ee(e.starts):!1}function De(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ee(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Oe=`11.11.1`,ke=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Ae=i,je=a,Me=Symbol(`nomatch`),Ne=7,Pe=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(_e(s.replace(`{}`,n[1])),_e(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(ve(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),ve(`10.7.0`,`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};z(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,z(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Ne&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(R=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return Me;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||``)+`"`);throw e.mode=A,e}else if(r.type===`end`){let e=C(r);if(e!==Me)return e}if(r.type===`illegal`&&a===``)return P+=` +`,1;if(L>1e5&&L>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw W(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Te(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,L=0,R=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){L++,R?R=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Ae(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:Ae(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:Ae(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(z(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.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(e)),l.throwUnescapedHTML))throw new ke(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),z(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=je(l,e)}let E=()=>{k(),ve(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),ve(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(W(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)W(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function L(e){I(e),a.push(e)}function R(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function z(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function B(e){return ve(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),ve(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:B,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:je,addPlugin:L,removePlugin:R}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Oe,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in oe)typeof oe[e]==`object`&&n(oe[e]);return Object.assign(e,oe),e},Fe=Pe({});Fe.newInstance=()=>Pe({}),t.exports=Fe,Fe.HighlightJS=Fe,Fe.default=Fe})),Or=n(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+`,n=`далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт `,r=`null истина ложь неопределено`,i=e.inherit(e.NUMBER_MODE),a={className:`string`,begin:`"|\\|`,end:`"|$`,contains:[{begin:`""`}]},o={begin:`'`,end:`'`,excludeBegin:!0,excludeEnd:!0,contains:[{className:`number`,begin:`\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}`}]},s={match:/[;()+\-:=,]/,className:`punctuation`,relevance:0},c=e.inherit(e.C_LINE_COMMENT_MODE),l={className:`meta`,begin:`#|&`,end:`$`,keywords:{$pattern:t,keyword:n+`загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент `},contains:[c]},u={className:`symbol`,begin:`~`,end:`;|:`,excludeEnd:!0},d={className:`function`,variants:[{begin:`процедура|функция`,end:`\\)`,keywords:`процедура функция`},{begin:`конецпроцедуры|конецфункции`,keywords:`конецпроцедуры конецфункции`}],contains:[{begin:`\\(`,end:`\\)`,endsParent:!0,contains:[{className:`params`,begin:t,end:`,`,excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:`знач`,literal:r},contains:[i,a,o]},c]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:`1C:Enterprise`,case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:`разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек `,class:`webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты`,type:`comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив `,literal:r},contains:[l,d,c,u,i,a,o,s]}}t.exports=n})),kr=n(((e,t)=>{function n(e){let t=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=[`ALPHA`,`BIT`,`CHAR`,`CR`,`CRLF`,`CTL`,`DIGIT`,`DQUOTE`,`HEXDIG`,`HTAB`,`LF`,`LWSP`,`OCTET`,`SP`,`VCHAR`,`WSP`],i=e.COMMENT(/;/,/$/);return{name:`Augmented Backus-Naur Form`,illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:`operator`,match:/=\/?/},{scope:`attribute`,match:t.concat(n,/(?=\s*=)/)},i,{scope:`symbol`,match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:`symbol`,match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:`symbol`,match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:`symbol`,match:/%[si](?=".*")/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}t.exports=n})),Ar=n(((e,t)=>{function n(e){let t=e.regex,n=[`GET`,`POST`,`HEAD`,`PUT`,`DELETE`,`CONNECT`,`OPTIONS`,`PATCH`,`TRACE`];return{name:`Apache Access Log`,contains:[{className:`number`,begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:`number`,begin:/\b\d+\b/,relevance:0},{className:`string`,begin:t.concat(/"/,t.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:`string`,begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:`string`,begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:`string`,begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:`string`,begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}t.exports=n})),jr=n(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(n,t.concat(`(\\.`,n,`)*`)),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,a={className:`rest_arg`,begin:/[.]{3}/,end:n,relevance:10};return{name:`ActionScript`,aliases:[`as`],keywords:{keyword:`as.break.case.catch.class.const.continue.default.delete.do.dynamic.each.else.extends.final.finally.for.function.get.if.implements.import.in.include.instanceof.interface.internal.is.namespace.native.new.override.package.private.protected.public.return.set.static.super.switch.this.throw.try.typeof.use.var.void.while.with`.split(`.`),literal:[`true`,`false`,`null`,`undefined`]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:`keyword`,3:`title.class`}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{className:`meta`,beginKeywords:`import include`,end:/;/,keywords:{keyword:`import include`}},{beginKeywords:`function`,end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:`title.function`}),{className:`params`,begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}t.exports=n})),Mr=n(((e,t)=>{function n(e){let t=`\\d(_|\\d)*`;``+t,t+``,t+``;let n=`[A-Za-z](_?[A-Za-z0-9.])*`,r=`[]\\{\\}%#'"`,i=e.COMMENT(`--`,`$`),a={begin:`\\s+:\\s+`,end:`\\s*(:=|;|\\)|=>|$)`,illegal:r,contains:[{beginKeywords:`loop for declare others`,endsParent:!0},{className:`keyword`,beginKeywords:`not null constant access function procedure in out aliased exception`},{className:`type`,begin:n,endsParent:!0,relevance:0}]};return{name:`Ada`,case_insensitive:!0,keywords:{keyword:`abort.else.new.return.abs.elsif.not.reverse.abstract.end.accept.entry.select.access.exception.of.separate.aliased.exit.or.some.all.others.subtype.and.for.out.synchronized.array.function.overriding.at.tagged.generic.package.task.begin.goto.pragma.terminate.body.private.then.if.procedure.type.case.in.protected.constant.interface.is.raise.use.declare.range.delay.limited.record.when.delta.loop.rem.while.digits.renames.with.do.mod.requeue.xor`.split(`.`),literal:[`True`,`False`]},contains:[i,{className:`string`,begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:`string`,begin:/'.'/},{className:`number`,begin:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,relevance:0},{className:`symbol`,begin:`'`+n},{className:`title`,begin:`(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?`,end:`(is|$)`,keywords:`package body`,excludeBegin:!0,excludeEnd:!0,illegal:r},{begin:`(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+`,end:`(\\bis|\\bwith|\\brenames|\\)\\s*;)`,keywords:`overriding function procedure with is renames return`,returnBegin:!0,contains:[i,{className:`title`,begin:`(\\bwith\\s+)?\\b(function|procedure)\\s+`,end:`(\\(|\\s+|$)`,excludeBegin:!0,excludeEnd:!0,illegal:r},a,{className:`type`,begin:`\\breturn\\s+`,end:`(\\s+|;|$)`,keywords:`return`,excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:r}]},{className:`type`,begin:`\\b(sub)?type\\s+`,end:`\\s+`,keywords:`type`,excludeBegin:!0,illegal:r},a]}}t.exports=n})),Nr=n(((e,t)=>{function n(e){let t={className:`built_in`,begin:`\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)`},n={className:`symbol`,begin:`[a-zA-Z0-9_]+@`},r={className:`keyword`,begin:`<`,end:`>`,contains:[t,n]};return t.contains=[r],n.contains=[r],{name:`AngelScript`,aliases:[`asc`],keywords:`for.in|0.break.continue.while.do|0.return.if.else.case.switch.namespace.is.cast.or.and.xor.not.get|0.in.inout|10.out.override.set|0.private.public.const.default|0.final.shared.external.mixin|10.enum.typedef.funcdef.this.super.import.from.interface.abstract|0.try.catch.protected.explicit.property`.split(`.`),illegal:`(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])`,contains:[{className:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:`string`,begin:`"""`,end:`"""`},{className:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:`^\\s*\\[`,end:`\\]`},{beginKeywords:`interface namespace`,end:/\{/,illegal:`[;.\\-]`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`}]},{beginKeywords:`class`,end:/\{/,illegal:`[;.\\-]`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`,contains:[{begin:`[:,]\\s*`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`}]}]}]},t,n,{className:`literal`,begin:`\\b(null|true|false)`},{className:`number`,relevance:0,begin:`(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)`}]}}t.exports=n})),Pr=n(((e,t)=>{function n(e){let t={className:`number`,begin:/[$%]\d+/},n={className:`number`,begin:/\b\d+/},r={className:`number`,begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:`Apache config`,aliases:[`apacheconf`],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:`section`,begin:/<\/?/,end:/>/,contains:[r,{className:`number`,begin:/:\d{1,5}/},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:`attribute`,begin:/\w+/,relevance:0,keywords:{_:[`order`,`deny`,`allow`,`setenv`,`rewriterule`,`rewriteengine`,`rewritecond`,`documentroot`,`sethandler`,`errordocument`,`loadmodule`,`options`,`header`,`listen`,`serverroot`,`servername`]},starts:{end:/$/,relevance:0,keywords:{literal:`on off all deny allow`},contains:[{scope:`punctuation`,match:/\\\n/},{className:`meta`,begin:/\s\[/,end:/\]$/},{className:`variable`,begin:/[\$%]\{/,end:/\}/,contains:[`self`,t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}t.exports=n})),Fr=n(((e,t)=>{function n(e){let t=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:`params`,begin:/\(/,end:/\)/,contains:[`self`,e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),a=[i,e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`,i]}),e.HASH_COMMENT_MODE];return{name:`AppleScript`,aliases:[`osascript`],keywords:{keyword:`about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without`,literal:`AppleScript false linefeed return pi quote result space tab true`,built_in:`alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year`},contains:[n,e.C_NUMBER_MODE,{className:`built_in`,begin:t.concat(/\b/,t.either(/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/),/\b/)},{className:`built_in`,begin:/^\s*return\b/},{className:`literal`,begin:/\b(text item delimiters|current application|missing value)\b/},{className:`keyword`,begin:t.concat(/\b/,t.either(/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/),/\b/)},{beginKeywords:`on`,illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}t.exports=n})),Ir=n(((e,t)=>{function n(e){let t=e.regex,n=`[A-Za-z_][0-9A-Za-z_]*`,r={keyword:[`break`,`case`,`catch`,`continue`,`debugger`,`do`,`else`,`export`,`for`,`function`,`if`,`import`,`in`,`new`,`of`,`return`,`switch`,`try`,`var`,`void`,`while`],literal:[`BackSlash`,`DoubleQuote`,`ForwardSlash`,`Infinity`,`NaN`,`NewLine`,`PI`,`SingleQuote`,`Tab`,`TextFormatting`,`false`,`null`,`true`,`undefined`],built_in:`Abs.Acos.All.Angle.Any.Area.AreaGeodetic.Array.Asin.Atan.Atan2.Attachments.Average.Back.Bearing.Boolean.Buffer.BufferGeodetic.Ceil.Centroid.ChangeTimeZone.Clip.Concatenate.Console.Constrain.Contains.ConvertDirection.ConvexHull.Cos.Count.Crosses.Cut.Date|0.DateAdd.DateDiff.DateOnly.Day.Decode.DefaultValue.Densify.DensifyGeodetic.Dictionary.Difference.Disjoint.Distance.DistanceGeodetic.DistanceToCoordinate.Distinct.Domain.DomainCode.DomainName.EnvelopeIntersects.Equals.Erase.Exp.Expects.Extent.Feature.FeatureInFilter.FeatureSet.FeatureSetByAssociation.FeatureSetById.FeatureSetByName.FeatureSetByPortalItem.FeatureSetByRelationshipClass.FeatureSetByRelationshipName.Filter.FilterBySubtypeCode.Find.First|0.Floor.FromCharCode.FromCodePoint.FromJSON.Front.GdbVersion.Generalize.Geometry.GetEnvironment.GetFeatureSet.GetFeatureSetInfo.GetUser.GroupBy.Guid.HasKey.HasValue.Hash.Hour.IIf.ISOMonth.ISOWeek.ISOWeekday.ISOYear.Includes.IndexOf.Insert.Intersection.Intersects.IsEmpty.IsNan.IsSelfIntersecting.IsSimple.KnowledgeGraphByPortalItem.Left|0.Length.Length3D.LengthGeodetic.Log.Lower.Map.Max.Mean.MeasureToCoordinate.Mid.Millisecond.Min.Minute.Month.MultiPartToSinglePart.Multipoint.NearestCoordinate.NearestVertex.NextSequenceValue.None.Now.Number.Offset.OrderBy.Overlaps.Point.PointToCoordinate.Polygon.Polyline.Pop.Portal.Pow.Proper.Push.QueryGraph.Random.Reduce.Relate.Replace.Resize.Reverse.Right|0.RingIsClockwise.Rotate.Round.Schema.Second.SetGeometry.Simplify.Sin.Slice.Sort.Splice.Split.Sqrt.StandardizeFilename.StandardizeGuid.Stdev.SubtypeCode.SubtypeName.Subtypes.Sum.SymmetricDifference.Tan.Text.Time.TimeZone.TimeZoneOffset.Timestamp.ToCharCode.ToCodePoint.ToHex.ToLocal.ToUTC.Today.Top|0.Touches.TrackAccelerationAt.TrackAccelerationWindow.TrackCurrentAcceleration.TrackCurrentDistance.TrackCurrentSpeed.TrackCurrentTime.TrackDistanceAt.TrackDistanceWindow.TrackDuration.TrackFieldWindow.TrackGeometryWindow.TrackIndex.TrackSpeedAt.TrackSpeedWindow.TrackStartTime.TrackWindow.Trim.TypeOf.Union.Upper.UrlEncode.Variance.Week.Weekday.When|0.Within.Year|0`.split(`.`)},i={className:`symbol`,begin:`\\$`+t.either(...`aggregatedFeatures.analytic.config.datapoint.datastore.editcontext.feature.featureSet.feedfeature.fencefeature.fencenotificationtype.graph.join.layer.locationupdate.map.measure.measure.originalFeature.record.reference.rowindex.sourcedatastore.sourcefeature.sourcelayer.target.targetdatastore.targetfeature.targetlayer.userInput.value.variables.view`.split(`.`))},a={className:`number`,variants:[{begin:`\\b(0[bB][01]+)`},{begin:`\\b(0[oO][0-7]+)`},{begin:e.C_NUMBER_RE}],relevance:0},o={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:r,contains:[]},s={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,a,e.REGEXP_MODE];let c=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:`ArcGIS Arcade`,case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+`\\s*:`,returnBegin:!0,relevance:0,contains:[{className:`attr`,begin:n,relevance:0}]}]},{begin:`(`+e.RE_STARTERS_RE+`|\\b(return)\\b)\\s*`,keywords:`return`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:`function`,begin:`(\\(.*?\\)|`+n+`)\\s*=>`,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:c}]}]}],relevance:0},{beginKeywords:`function`,end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:`title.function`,begin:n}),{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}t.exports=n})),Lr=n(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`decltype\\(auto\\)`,i=`[a-zA-Z_]\\w*::`,a=`(?!struct)(`+r+`|`+t.optional(i)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,o={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},s={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})"/})]},c={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},l={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(s,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+`\\s*\\(`,f=`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`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`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`.split(`.`),h=`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`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,o,n,e.C_BLOCK_COMMENT_MODE,c,s],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+a+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,c]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,c,o,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,s,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,o]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}function r(e){let 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`.split(`.`),_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`.split(`.`),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=n(e),i=r.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,r.name=`Arduino`,r.aliases=[`ino`],r.supersetOf=`cpp`,r}t.exports=r})),Rr=n(((e,t)=>{function n(e){let t={variants:[e.COMMENT(`^[ \\t]*(?=#)`,`$`,{relevance:0,excludeBegin:!0}),e.COMMENT(`[;@]`,`$`,{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:`ARM Assembly`,case_insensitive:!0,aliases:[`arm`],keywords:{$pattern:`\\.?`+e.IDENT_RE,meta:`.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND `,built_in:`r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @`},contains:[{className:`keyword`,begin:`\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)`},t,e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,relevance:0},{className:`title`,begin:`\\|`,end:`\\|`,illegal:`\\n`,relevance:0},{className:`number`,variants:[{begin:`[#$=]?0x[0-9a-f]+`},{begin:`[#$=]?0b[01]+`},{begin:`[#$=]\\d+`},{begin:`\\b\\d+`}],relevance:0},{className:`symbol`,variants:[{begin:`^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:`},{begin:`^[a-z_\\.\\$][a-z0-9_\\.\\$]+`},{begin:`[=#]\\w+`}],relevance:0}]}}t.exports=n})),zr=n(((e,t)=>{function n(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin://,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin://,contains:[a,o,c,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=n})),Br=n(((e,t)=>{function n(e){let t=e.regex,n={begin:`^'{3,}[ \\t]*$`,relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:`strong`,begin:/\*{2}([^\n]+?)\*{2}/},{className:`strong`,begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:`strong`,begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:`strong`,begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],a=[{className:`emphasis`,begin:/_{2}([^\n]+?)_{2}/},{className:`emphasis`,begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:`emphasis`,begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:`emphasis`,begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:`emphasis`,begin:`\\B'(?!['\\s])`,end:`(\\n{2}|')`,contains:[{begin:`\\\\'\\w`,relevance:0}],relevance:0}];return{name:`AsciiDoc`,aliases:[`adoc`],contains:[e.COMMENT(`^/{4,}\\n`,`\\n/{4,}$`,{relevance:10}),e.COMMENT(`^//`,`$`,{relevance:0}),{className:`title`,begin:`^\\.\\w.*$`},{begin:`^[=\\*]{4,}\\n`,end:`\\n^[=\\*]{4,}$`,relevance:10},{className:`section`,relevance:10,variants:[{begin:`^(={1,6})[ ].+?([ ]\\1)?$`},{begin:`^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$`}]},{className:`meta`,begin:`^:.+?:`,end:`\\s`,excludeEnd:!0,relevance:10},{className:`meta`,begin:`^\\[.+?\\]$`,relevance:0},{className:`quote`,begin:`^_{4,}\\n`,end:`\\n_{4,}$`,relevance:10},{className:`code`,begin:`^[\\-\\.]{4,}\\n`,end:`\\n[\\-\\.]{4,}$`,relevance:10},{begin:`^\\+{4,}\\n`,end:`\\n\\+{4,}$`,contains:[{begin:`<`,end:`>`,subLanguage:`xml`,relevance:0}],relevance:10},{className:`bullet`,begin:`^(\\*+|-+|\\.+|[^\\n]+?::)\\s+`},{className:`symbol`,begin:`^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+`,relevance:10},...r,...i,...a,{className:`string`,variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:`code`,begin:/`{2}/,end:/(\n{2}|`{2})/},{className:`code`,begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:`code`,begin:`^[ \\t]`,end:`$`,relevance:0},n,{begin:`(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]`,returnBegin:!0,contains:[{begin:`(link|image:?):`,relevance:0},{className:`link`,begin:`\\w`,end:`[^\\[]+`,relevance:0},{className:`string`,begin:`\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}t.exports=n})),Vr=n(((e,t)=>{function n(e){let t=e.regex,n=`false.synchronized.int.abstract.float.private.char.boolean.static.null.if.const.for.true.while.long.throw.strictfp.finally.protected.import.native.final.return.void.enum.else.extends.implements.break.transient.new.catch.instanceof.byte.super.volatile.case.assert.short.package.default.double.public.try.this.switch.continue.throws.privileged.aspectOf.adviceexecution.proceed.cflowbelow.cflow.initialization.preinitialization.staticinitialization.withincode.target.within.execution.getWithinTypeName.handler.thisJoinPoint.thisJoinPointStaticPart.thisEnclosingJoinPointStaticPart.declare.parents.warning.error.soft.precedence.thisAspectInstance`.split(`.`),r=[`get`,`set`,`args`,`call`];return{name:`AspectJ`,keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`class`,beginKeywords:`aspect`,end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:`extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton`},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(r),excludeEnd:!1}]},{className:`class`,beginKeywords:`class interface`,end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:`class interface`,illegal:/[:"\[\]]/,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`pointcut after before around throwing returning`,end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:`new throw`,relevance:0},{className:`function`,begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`params`,begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:`meta`,begin:/@[A-Za-z]+/}]}}t.exports=n})),Hr=n(((e,t)=>{function n(e){let t={begin:"`[\\s\\S]"};return{name:`AutoHotkey`,case_insensitive:!0,aliases:[`ahk`],keywords:{keyword:`Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group`,literal:`true false NOT AND OR`,built_in:`ComSpec Clipboard ClipboardAll ErrorLevel`},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(`;`,`$`,{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:`number`,begin:e.NUMBER_RE,relevance:0},{className:`variable`,begin:`%[a-zA-Z0-9#_$@]+%`},{className:`built_in`,begin:`^\\s*\\w+\\s*(,|%)`},{className:`title`,variants:[{begin:`^[^\\n";]+::(?!=)`},{begin:`^[^\\n";]+:(?!=)`,relevance:0}]},{className:`meta`,begin:`^\\s*#\\w+`,end:`$`,relevance:0},{className:`built_in`,begin:`A_[a-zA-Z0-9]+`},{begin:`,\\s*,`}]}}t.exports=n})),Ur=n(((e,t)=>{function n(e){let t=[`EndRegion`,`forcedef`,`forceref`,`ignorefunc`,`include`,`include-once`,`NoTrayIcon`,`OnAutoItStartRegister`,`pragma`,`Region`,`RequireAdmin`,`Tidy_Off`,`Tidy_On`,`Tidy_Parameters`],n={variants:[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#cs`,`#ce`),e.COMMENT(`#comments-start`,`#comments-end`)]},r={begin:`\\$[A-z0-9_]+`},i={className:`string`,variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:`AutoIt`,case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:`ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With`,built_in:`Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive`,literal:`True False And Null Not Or Default`},contains:[n,r,i,a,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:t},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,keywords:{keyword:`include`},end:`$`,contains:[i,{className:`string`,variants:[{begin:`<`,end:`>`},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},i,n]},{className:`symbol`,begin:`@[A-z0-9_]+`},{beginKeywords:`Func`,end:`$`,illegal:`\\$|\\[|%`,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:`title.function`}),{className:`params`,begin:`\\(`,end:`\\)`,contains:[r,i,a]}]}]}}t.exports=n})),Wr=n(((e,t)=>{function n(e){return{name:`AVR Assembly`,case_insensitive:!0,keywords:{$pattern:`\\.?`+e.IDENT_RE,keyword:`adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr`,built_in:`r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf`,meta:`.byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set`},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(`;`,`$`,{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:`number`,begin:`\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)`},e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,illegal:`[^\\\\][^']`},{className:`symbol`,begin:`^[A-Za-z0-9_.$]+:`},{className:`meta`,begin:`#`,end:`$`},{className:`subst`,begin:`@[0-9]+`}]}}t.exports=n})),Gr=n(((e,t)=>{function n(e){return{name:`Awk`,keywords:{keyword:`BEGIN END if else while do for in break continue delete next nextfile function func exit|10`},contains:[{className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}t.exports=n})),Kr=n(((e,t)=>{function n(e){let t=e.UNDERSCORE_IDENT_RE,n={keyword:`abstract.as.asc.avg.break.breakpoint.by.byref.case.catch.changecompany.class.client.client.common.const.continue.count.crosscompany.delegate.delete_from.desc.display.div.do.edit.else.eventhandler.exists.extends.final.finally.firstfast.firstonly.firstonly1.firstonly10.firstonly100.firstonly1000.flush.for.forceliterals.forcenestedloop.forceplaceholders.forceselectorder.forupdate.from.generateonly.group.hint.if.implements.in.index.insert_recordset.interface.internal.is.join.like.maxof.minof.mod.namespace.new.next.nofetch.notexists.optimisticlock.order.outer.pessimisticlock.print.private.protected.public.readonly.repeatableread.retry.return.reverse.select.server.setting.static.sum.super.switch.this.throw.try.ttsabort.ttsbegin.ttscommit.unchecked.update_recordset.using.validtimestate.void.where.while`.split(`.`),built_in:[`anytype`,`boolean`,`byte`,`char`,`container`,`date`,`double`,`enum`,`guid`,`int`,`int64`,`long`,`real`,`short`,`str`,`utcdatetime`,`var`],literal:[`default`,`false`,`null`,`true`]},r={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:n};return{name:`X++`,aliases:[`x++`],keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`#`,end:`$`},r]}}t.exports=n})),qr=n(((e,t)=>{function n(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=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`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let c={match:/\\"/},l={className:`string`,begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},f=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),p={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],h=[`true`,`false`],g={match:/(\/[a-z._-]+)+/},_=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],v=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],y=`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`.split(`.`),b=`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`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:h,built_in:[..._,...v,`set`,`shopt`,...y,...b]},contains:[f,e.SHEBANG(),p,d,a,o,g,s,c,l,u,n]}}t.exports=n})),Jr=n(((e,t)=>{function n(e){return{name:`BASIC`,case_insensitive:!0,illegal:`^.`,keywords:{$pattern:`[a-zA-Z][a-zA-Z0-9_$%!#]*`,keyword:`ABS.ASC.AND.ATN.AUTO|0.BEEP.BLOAD|10.BSAVE|10.CALL.CALLS.CDBL.CHAIN.CHDIR.CHR$|10.CINT.CIRCLE.CLEAR.CLOSE.CLS.COLOR.COM.COMMON.CONT.COS.CSNG.CSRLIN.CVD.CVI.CVS.DATA.DATE$.DEFDBL.DEFINT.DEFSNG.DEFSTR.DEF|0.SEG.USR.DELETE.DIM.DRAW.EDIT.END.ENVIRON.ENVIRON$.EOF.EQV.ERASE.ERDEV.ERDEV$.ERL.ERR.ERROR.EXP.FIELD.FILES.FIX.FOR|0.FRE.GET.GOSUB|10.GOTO.HEX$.IF.THEN.ELSE|0.INKEY$.INP.INPUT.INPUT#.INPUT$.INSTR.IMP.INT.IOCTL.IOCTL$.KEY.ON.OFF.LIST.KILL.LEFT$.LEN.LET.LINE.LLIST.LOAD.LOC.LOCATE.LOF.LOG.LPRINT.USING.LSET.MERGE.MID$.MKDIR.MKD$.MKI$.MKS$.MOD.NAME.NEW.NEXT.NOISE.NOT.OCT$.ON.OR.PEN.PLAY.STRIG.OPEN.OPTION.BASE.OUT.PAINT.PALETTE.PCOPY.PEEK.PMAP.POINT.POKE.POS.PRINT.PRINT].PSET.PRESET.PUT.RANDOMIZE.READ.REM.RENUM.RESET|0.RESTORE.RESUME.RETURN|0.RIGHT$.RMDIR.RND.RSET.RUN.SAVE.SCREEN.SGN.SHELL.SIN.SOUND.SPACE$.SPC.SQR.STEP.STICK.STOP.STR$.STRING$.SWAP.SYSTEM.TAB.TAN.TIME$.TIMER.TROFF.TRON.TO.USR.VAL.VARPTR.VARPTR$.VIEW.WAIT.WHILE.WEND.WIDTH.WINDOW.WRITE.XOR`.split(`.`)},contains:[{scope:`string`,begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(`REM`,`$`,{relevance:10}),e.COMMENT(`'`,`$`,{relevance:0}),{className:`symbol`,begin:`^[0-9]+ `,relevance:10},{className:`number`,begin:`\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?`,relevance:0},{className:`number`,begin:`(&[hH][0-9a-fA-F]{1,4})`},{className:`number`,begin:`(&[oO][0-7]{1,6})`}]}}t.exports=n})),Yr=n(((e,t)=>{function n(e){return{name:`Backus–Naur Form`,contains:[{className:`attribute`,begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}t.exports=n})),Xr=n(((e,t)=>{function n(e){let t={className:`literal`,begin:/[+-]+/,relevance:0};return{name:`Brainfuck`,aliases:[`bf`],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:`title`,begin:`[\\[\\]]`,relevance:0},{className:`string`,begin:`[\\.,]`,relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}t.exports=n})),Zr=n(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`decltype\\(auto\\)`,i=`[a-zA-Z_]\\w*::`,a=`(`+r+`|`+t.optional(i)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,o={className:`type`,variants:[{begin:`\\b[a-z\\d_]*_t\\b`},{match:/\batomic_[a-z]{3,6}\b/}]},s={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})"/})]},c={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},l={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(s,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+`\\s*\\(`,f={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`.split(`.`),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`.split(`.`),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`},p=[l,o,n,e.C_BLOCK_COMMENT_MODE,c,s],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:f,contains:p.concat([{begin:/\(/,end:/\)/,keywords:f,contains:p.concat([`self`]),relevance:0}]),relevance:0},h={begin:`(`+a+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:f,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:`title.function`})],relevance:0},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,c,o,{begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,s,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C`,aliases:[`h`],keywords:f,disableAutodetect:!0,illegal:`=]/,contains:[{beginKeywords:`final class struct`},e.TITLE_MODE]}]),exports:{preprocessor:l,strings:s,keywords:f}}}t.exports=n})),Qr=n(((e,t)=>{function n(e){let t=e.regex,n=`div.mod.in.and.or.not.xor.asserterror.begin.case.do.downto.else.end.exit.for.local.if.of.repeat.then.to.until.while.with.var`.split(`.`),r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:`string`,begin:/(#\d+)+/},o={className:`number`,begin:`\\b\\d+(\\.\\d+)?(DT|D|T)`,relevance:0},s={className:`string`,begin:`"`,end:`"`},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:`keyword`,3:`title.function`},contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:n,contains:[i,a,e.NUMBER_MODE]},...r]},l={match:[/OBJECT/,/\s+/,t.either(`Table`,`Form`,`Report`,`Dataport`,`Codeunit`,`XMLport`,`MenuSuite`,`Page`,`Query`),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:`keyword`,3:`type`,5:`number`,7:`title`}};return{name:`C/AL`,case_insensitive:!0,keywords:{keyword:n,literal:`false true`},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:`attribute`,relevance:0},i,a,o,s,e.NUMBER_MODE,l,c]}}t.exports=n})),$r=n(((e,t)=>{function n(e){let t=[`struct`,`enum`,`interface`,`union`,`group`,`import`,`using`,`const`,`annotation`,`extends`,`in`,`of`,`on`,`as`,`with`,`from`,`fixed`],n=[`Void`,`Bool`,`Int8`,`Int16`,`Int32`,`Int64`,`UInt8`,`UInt16`,`UInt32`,`UInt64`,`Float32`,`Float64`,`Text`,`Data`,`AnyPointer`,`AnyStruct`,`Capability`,`List`],r=[`true`,`false`],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:`keyword`,3:`title.class`}};return{name:`Cap’n Proto`,aliases:[`capnp`],keywords:{keyword:t,type:n,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:`meta`,begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:`symbol`,begin:/@\d+\b/},i]}}t.exports=n})),ei=n(((e,t)=>{function n(e){let t=`assembly.module.package.import.alias.class.interface.object.given.value.assign.void.function.new.of.extends.satisfies.abstracts.in.out.return.break.continue.throw.assert.dynamic.if.else.switch.case.for.while.try.catch.finally.then.let.this.outer.super.is.exists.nonempty`.split(`.`),n=[`shared`,`abstract`,`formal`,`default`,`actual`,`variable`,`late`,`native`,`deprecated`,`final`,`sealed`,`annotation`,`suppressWarnings`,`small`],r=[`doc`,`by`,`license`,`see`,`throws`,`tagged`],i={className:`subst`,excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{className:`string`,begin:`"""`,end:`"""`,relevance:10},{className:`string`,begin:`"`,end:`"`,contains:[i]},{className:`string`,begin:`'`,end:`'`},{className:`number`,begin:`#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?`,relevance:0}];return i.contains=a,{name:`Ceylon`,keywords:{keyword:t.concat(n),meta:r},illegal:`\\$[^01]|#[^0-9a-fA-F]`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),{className:`meta`,begin:`@[a-z]\\w*(?::"[^"]*")?`}].concat(a)}}t.exports=n})),ti=n(((e,t)=>{function n(e){return{name:`Clean`,aliases:[`icl`,`dcl`],keywords:{keyword:`if.let.in.with.where.case.of.class.instance.otherwise.implementation.definition.system.module.from.import.qualified.as.special.code.inline.foreign.export.ccall.stdcall.generic.derive.infix.infixl.infixr`.split(`.`),built_in:`Int Real Char Bool`,literal:`True False`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:`->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>`}]}}t.exports=n})),ni=n(((e,t)=>{function n(e){let t=`[#]?[a-zA-Z_\\-!.?+*=<>&'][a-zA-Z_\\-!.?+*=<>&'0-9/;:$#]*`,n=`def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord`,r={$pattern:t,built_in:n+` cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize`},i={begin:t,relevance:0},a={scope:`number`,relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},o={scope:`character`,variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},s={scope:`regex`,begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l={scope:`punctuation`,match:/,/,relevance:0},u=e.COMMENT(`;`,`$`,{relevance:0}),d={className:`literal`,begin:/\b(true|false|nil)\b/},f={begin:`\\[|(#::?`+t+`)?\\{`,end:`[\\]\\}]`,relevance:0},p={className:`symbol`,begin:`[:]{1,2}`+t},m={begin:`\\(`,end:`\\)`},h={endsWithParent:!0,relevance:0},g={keywords:r,className:`name`,begin:t,relevance:0,starts:h},_=[l,m,o,s,c,u,p,f,a,d,i];return m.contains=[{beginKeywords:n,keywords:{$pattern:t,keyword:n},end:`(\\[|#|\\d|"|:|\\{|\\)|\\(|$)`,contains:[{className:`title`,begin:t,relevance:0,excludeEnd:!0,endsParent:!0}].concat(_)},g,h],h.contains=_,f.contains=_,{name:`Clojure`,aliases:[`clj`,`edn`],illegal:/\S/,contains:[l,m,o,s,c,u,p,f,a,d]}}t.exports=n})),ri=n(((e,t)=>{function n(e){return{name:`Clojure REPL`,contains:[{className:`meta.prompt`,begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:`clojure`}}]}}t.exports=n})),ii=n(((e,t)=>{function n(e){return{name:`CMake`,aliases:[`cmake.in`],case_insensitive:!0,keywords:{keyword:`break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined`},contains:[{className:`variable`,begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}t.exports=n})),ai=n(((e,t)=>{var n=`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`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`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`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat([`then`,`unless`,`until`,`loop`,`by`,`when`,`and`,`or`,`is`,`isnt`,`not`]).filter((e=>t=>!e.includes(t))([`var`,`const`,`let`,`function`,`static`])),literal:r.concat([`yes`,`no`,`on`,`off`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_][0-9A-Za-z$_]*`,o={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},s=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:`(\\s*/)?`,relevance:0}}),{className:`string`,variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o]}]},{className:`regexp`,variants:[{begin:`///`,end:`///`,contains:[o,e.HASH_COMMENT_MODE]},{begin:`//[gim]{0,3}(?=\\W)`,relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:`@`+a},{subLanguage:`javascript`,excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=s;let c=e.inherit(e.TITLE_MODE,{begin:a}),l={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(s)}]},u={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`CoffeeScript`,aliases:[`coffee`,`cson`,`iced`],keywords:t,illegal:/\/\*/,contains:[...s,e.COMMENT(`###`,`###`),e.HASH_COMMENT_MODE,{className:`function`,begin:`^\\s*`+a+`\\s*=\\s*(\\(.*\\)\\s*)?\\B[-=]>`,end:`[-=]>`,returnBegin:!0,contains:[c,l]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:`function`,begin:`(\\(.*\\)\\s*)?\\B[-=]>`,end:`[-=]>`,returnBegin:!0,contains:[l]}]},u,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}]}}t.exports=a})),oi=n(((e,t)=>{function n(e){return{name:`Coq`,keywords:{keyword:`_|0.as.at.cofix.else.end.exists.exists2.fix.for.forall.fun.if.IF.in.let.match.mod.Prop.return.Set.then.Type.using.where.with.Abort.About.Add.Admit.Admitted.All.Arguments.Assumptions.Axiom.Back.BackTo.Backtrack.Bind.Blacklist.Canonical.Cd.Check.Class.Classes.Close.Coercion.Coercions.CoFixpoint.CoInductive.Collection.Combined.Compute.Conjecture.Conjectures.Constant.constr.Constraint.Constructors.Context.Corollary.CreateHintDb.Cut.Declare.Defined.Definition.Delimit.Dependencies.Dependent.Derive.Drop.eauto.End.Equality.Eval.Example.Existential.Existentials.Existing.Export.exporting.Extern.Extract.Extraction.Fact.Field.Fields.File.Fixpoint.Focus.for.From.Function.Functional.Generalizable.Global.Goal.Grab.Grammar.Graph.Guarded.Heap.Hint.HintDb.Hints.Hypotheses.Hypothesis.ident.Identity.If.Immediate.Implicit.Import.Include.Inductive.Infix.Info.Initial.Inline.Inspect.Instance.Instances.Intro.Intros.Inversion.Inversion_clear.Language.Left.Lemma.Let.Libraries.Library.Load.LoadPath.Local.Locate.Ltac.ML.Mode.Module.Modules.Monomorphic.Morphism.Next.NoInline.Notation.Obligation.Obligations.Opaque.Open.Optimize.Options.Parameter.Parameters.Parametric.Path.Paths.pattern.Polymorphic.Preterm.Print.Printing.Program.Projections.Proof.Proposition.Pwd.Qed.Quit.Rec.Record.Recursive.Redirect.Relation.Remark.Remove.Require.Reserved.Reset.Resolve.Restart.Rewrite.Right.Ring.Rings.Save.Scheme.Scope.Scopes.Script.Search.SearchAbout.SearchHead.SearchPattern.SearchRewrite.Section.Separate.Set.Setoid.Show.Solve.Sorted.Step.Strategies.Strategy.Structure.SubClass.Table.Tables.Tactic.Term.Test.Theorem.Time.Timeout.Transparent.Type.Typeclasses.Types.Undelimit.Undo.Unfocus.Unfocused.Unfold.Universe.Universes.Unset.Unshelve.using.Variable.Variables.Variant.Verbose.Visibility.where.with`.split(`.`),built_in:`abstract.absurd.admit.after.apply.as.assert.assumption.at.auto.autorewrite.autounfold.before.bottom.btauto.by.case.case_eq.cbn.cbv.change.classical_left.classical_right.clear.clearbody.cofix.compare.compute.congruence.constr_eq.constructor.contradict.contradiction.cut.cutrewrite.cycle.decide.decompose.dependent.destruct.destruction.dintuition.discriminate.discrR.do.double.dtauto.eapply.eassumption.eauto.ecase.econstructor.edestruct.ediscriminate.eelim.eexact.eexists.einduction.einjection.eleft.elim.elimtype.enough.equality.erewrite.eright.esimplify_eq.esplit.evar.exact.exactly_once.exfalso.exists.f_equal.fail.field.field_simplify.field_simplify_eq.first.firstorder.fix.fold.fourier.functional.generalize.generalizing.gfail.give_up.has_evar.hnf.idtac.in.induction.injection.instantiate.intro.intro_pattern.intros.intuition.inversion.inversion_clear.is_evar.is_var.lapply.lazy.left.lia.lra.move.native_compute.nia.nsatz.omega.once.pattern.pose.progress.proof.psatz.quote.record.red.refine.reflexivity.remember.rename.repeat.replace.revert.revgoals.rewrite.rewrite_strat.right.ring.ring_simplify.rtauto.set.setoid_reflexivity.setoid_replace.setoid_rewrite.setoid_symmetry.setoid_transitivity.shelve.shelve_unifiable.simpl.simple.simplify_eq.solve.specialize.split.split_Rabs.split_Rmult.stepl.stepr.subst.sum.swap.symmetry.tactic.tauto.time.timeout.top.transitivity.trivial.try.tryif.unfold.unify.until.using.vm_compute.with`.split(`.`)},contains:[e.QUOTE_STRING_MODE,e.COMMENT(`\\(\\*`,`\\*\\)`),e.C_NUMBER_MODE,{className:`type`,excludeBegin:!0,begin:`\\|\\s*`,end:`\\w+`},{begin:/[-=]>/}]}}t.exports=n})),si=n(((e,t)=>{function n(e){return{name:`Caché Object Script`,case_insensitive:!0,aliases:[`cls`],keywords:`property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii`,contains:[{className:`number`,begin:`\\b(\\d+(\\.\\d*)?|\\.\\d+)`,relevance:0},{className:`string`,variants:[{begin:`"`,end:`"`,contains:[{begin:`""`,relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`comment`,begin:/;/,end:`$`,relevance:0},{className:`built_in`,begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:`built_in`,begin:/\$\$\$[a-zA-Z]+/},{className:`built_in`,begin:/%[a-z]+(?:\.[a-z]+)*/},{className:`symbol`,begin:/\^%?[a-zA-Z][\w]*/},{className:`keyword`,begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:`sql`},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:`javascript`},{begin:/&html<\s*\s*>/,subLanguage:`xml`}]}}t.exports=n})),ci=n(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`decltype\\(auto\\)`,i=`[a-zA-Z_]\\w*::`,a=`(?!struct)(`+r+`|`+t.optional(i)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,o={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},s={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})"/})]},c={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},l={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(s,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+`\\s*\\(`,f=`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`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`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`.split(`.`),h=`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`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,o,n,e.C_BLOCK_COMMENT_MODE,c,s],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+a+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,c]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,c,o,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,s,c,o]}]},o,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,o]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}t.exports=n})),li=n(((e,t)=>{function n(e){let t=`group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml`;return{name:`crmsh`,aliases:[`crm`,`pcmk`],case_insensitive:!0,keywords:{keyword:`params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string`,literal:`Master Started Slave Stopped start promote demote stop monitor true false`},contains:[e.HASH_COMMENT_MODE,{beginKeywords:`node`,starts:{end:`\\s*([\\w_-]+:)?`,starts:{className:`title`,end:`\\s*[\\$\\w_][\\w_-]*`}}},{beginKeywords:`primitive rsc_template`,starts:{className:`title`,end:`\\s*[\\$\\w_][\\w_-]*`,starts:{end:`\\s*@?[\\w_][\\w_\\.:-]*`}}},{begin:`\\b(`+t.split(` `).join(`|`)+`)\\s+`,keywords:t,starts:{className:`title`,end:`[\\$\\w_][\\w_-]*`}},{beginKeywords:`property rsc_defaults op_defaults`,starts:{className:`title`,end:`\\s*([\\w_-]+:)?`}},e.QUOTE_STRING_MODE,{className:`meta`,begin:`(ocf|systemd|service|lsb):[\\w_:-]+`,relevance:0},{className:`number`,begin:`\\b\\d+(\\.\\d+)?(ms|s|h|m)?`,relevance:0},{className:`literal`,begin:`[-]?(infinity|inf)`,relevance:0},{className:`attr`,begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:`tag`,begin:``,relevance:0}]}}t.exports=n})),ui=n(((e,t)=>{function n(e){let t=`(_?[ui](8|16|32|64|128))?`,n=`[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?`,r=`[A-Za-z_]\\w*(::\\w+)*(\\?|!)?`,i={$pattern:`[a-zA-Z_]\\w*[!?=]?`,keyword:`abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__`,literal:`false nil true`},a={className:`subst`,begin:/#\{/,end:/\}/,keywords:i},o={className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},s={className:`template-variable`,variants:[{begin:`\\{\\{`,end:`\\}\\}`},{begin:`\\{%`,end:`%\\}`}],keywords:i};function c(e,t){let n=[{begin:e,end:t}];return n[0].contains=n,n}let l={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:`%[Qwi]?\\(`,end:`\\)`,contains:c(`\\(`,`\\)`)},{begin:`%[Qwi]?\\[`,end:`\\]`,contains:c(`\\[`,`\\]`)},{begin:`%[Qwi]?\\{`,end:/\}/,contains:c(/\{/,/\}/)},{begin:`%[Qwi]?<`,end:`>`,contains:c(`<`,`>`)},{begin:`%[Qwi]?\\|`,end:`\\|`},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},u={className:`string`,variants:[{begin:`%q\\(`,end:`\\)`,contains:c(`\\(`,`\\)`)},{begin:`%q\\[`,end:`\\]`,contains:c(`\\[`,`\\]`)},{begin:`%q\\{`,end:/\}/,contains:c(/\{/,/\}/)},{begin:`%q<`,end:`>`,contains:c(`<`,`>`)},{begin:`%q\\|`,end:`\\|`},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},d={begin:`(?!%\\})(`+e.RE_STARTERS_RE+`|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*`,keywords:`case if select unless until when while`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:`//[a-z]*`,relevance:0},{begin:`/(?!\\/)`,end:`/[a-z]*`}]}],relevance:0},f=[s,l,u,{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:`%r\\(`,end:`\\)`,contains:c(`\\(`,`\\)`)},{begin:`%r\\[`,end:`\\]`,contains:c(`\\[`,`\\]`)},{begin:`%r\\{`,end:/\}/,contains:c(/\{/,/\}/)},{begin:`%r<`,end:`>`,contains:c(`<`,`>`)},{begin:`%r\\|`,end:`\\|`}],relevance:0},d,{className:`meta`,begin:`@\\[`,end:`\\]`,contains:[e.inherit(e.QUOTE_STRING_MODE,{className:`string`})]},o,e.HASH_COMMENT_MODE,{className:`class`,beginKeywords:`class module struct`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r}),{begin:`<`}]},{className:`class`,beginKeywords:`lib enum union`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})]},{beginKeywords:`annotation`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})],relevance:2},{className:`function`,beginKeywords:`def`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:`function`,beginKeywords:`fun macro`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:2},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:`,contains:[l,{begin:n}],relevance:0},{className:`number`,variants:[{begin:`\\b0b([01_]+)`+t},{begin:`\\b0o([0-7_]+)`+t},{begin:`\\b0x([A-Fa-f0-9_]+)`+t},{begin:`\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)`},{begin:`\\b([1-9][0-9_]*|0)`+t}],relevance:0}];return a.contains=f,s.contains=f.slice(1),{name:`Crystal`,aliases:[`cr`],keywords:i,contains:f}}t.exports=n})),di=n(((e,t)=>{function n(e){let t=[`bool`,`byte`,`char`,`decimal`,`delegate`,`double`,`dynamic`,`enum`,`float`,`int`,`long`,`nint`,`nuint`,`object`,`sbyte`,`short`,`string`,`ulong`,`uint`,`ushort`],n=[`public`,`private`,`protected`,`static`,`internal`,`protected`,`abstract`,`async`,`extern`,`override`,`unsafe`,`virtual`,`new`,`sealed`,`partial`],r={keyword:`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`.split(`.`).concat(`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`.split(`.`)),built_in:t,literal:[`default`,`false`,`null`,`true`]},i=e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z](\\.?\\w)*`}),a={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},o={className:`string`,begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},s={className:`string`,begin:`@"`,end:`"`,contains:[{begin:`""`}]},c=e.inherit(s,{illegal:/\n/}),l={className:`subst`,begin:/\{/,end:/\}/,keywords:r},u=e.inherit(l,{illegal:/\n/}),d={className:`string`,begin:/\$"/,end:`"`,illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,u]},f={className:`string`,begin:/\$@"/,end:`"`,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},l]},p=e.inherit(f,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},u]});l.contains=[f,d,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],u.contains=[p,d,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let m={variants:[o,f,d,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h={begin:`<`,end:`>`,contains:[{beginKeywords:`in out`},i]},g=e.IDENT_RE+`(<`+e.IDENT_RE+`(\\s*,\\s*`+e.IDENT_RE+`)*>)?(\\[\\])?`,_={begin:`@`+e.IDENT_RE,relevance:0};return{name:`C#`,aliases:[`cs`,`c#`],keywords:r,illegal:/::/,contains:[e.COMMENT(`///`,`$`,{returnBegin:!0,contains:[{className:`doctag`,variants:[{begin:`///`,relevance:0},{begin:``},{begin:``}]}]}),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`}},m,a,{beginKeywords:`class interface`,relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:`where class`},i,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`namespace`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`record`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,h,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:`(`+g+`\\s+)+`+e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:r,contains:[{beginKeywords:n.join(` `),relevance:0},{begin:e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,contains:[e.TITLE_MODE,h],relevance:0},{match:/\(\)/},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,relevance:0,contains:[m,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},_]}}t.exports=n})),fi=n(((e,t)=>{function n(e){return{name:`CSP`,case_insensitive:!1,keywords:{$pattern:`[a-zA-Z][a-zA-Z0-9_-]*`,keyword:[`base-uri`,`child-src`,`connect-src`,`default-src`,`font-src`,`form-action`,`frame-ancestors`,`frame-src`,`img-src`,`manifest-src`,`media-src`,`object-src`,`plugin-types`,`report-uri`,`sandbox`,`script-src`,`style-src`,`trusted-types`,`unsafe-hashes`,`worker-src`]},contains:[{className:`string`,begin:`'`,end:`'`},{className:`attribute`,begin:`^Content`,end:`:`,excludeEnd:!0}]}}t.exports=n})),pi=n(((e,t)=>{var n=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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`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`.split(`.`).sort().reverse();function u(e){let t=e.regex,r=n(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u=/@-?\w[\w]*(-\w+)*/,d=[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,i,r.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+s.join(`|`)+`)`},{begin:`:(:)?(`+c.join(`|`)+`)`}]},r.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...d,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...d,r.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`}]}}t.exports=u})),mi=n(((e,t)=>{function n(e){let t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:`abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__`,built_in:`bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring`,literal:`false null true`},n=`(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)`,r=`([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)`;``+r,``+n,``+n,``+r;let i=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,a={className:`number`,begin:`\\b((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))(L|u|U|Lu|LU|uL|UL)?`,relevance:0},o={className:`number`,begin:`\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))(i|[fF]i|Li))`,relevance:0},s={className:`string`,begin:`'(`+i+`|.)`,end:`'`,illegal:`.`},c={className:`string`,begin:`"`,contains:[{begin:i,relevance:0}],end:`"[cwd]?`},l={className:`string`,begin:`[rq]"`,end:`"[cwd]?`,relevance:5},u={className:`string`,begin:"`",end:"`[cwd]?"},d={className:`string`,begin:`x"[\\da-fA-F\\s\\n\\r]*"[cwd]?`,relevance:10},f={className:`string`,begin:`q"\\{`,end:`\\}"`},p={className:`meta`,begin:`^#!`,end:`$`,relevance:5},m={className:`meta`,begin:`#(line)`,end:`$`,relevance:5},h={className:`keyword`,begin:`@[a-zA-Z_][a-zA-Z_\\d]*`},g=e.COMMENT(`\\/\\+`,`\\+\\/`,{contains:[`self`],relevance:10});return{name:`D`,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,c,l,u,f,o,a,s,p,m,h]}}t.exports=n})),hi=n(((e,t)=>{function n(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={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}]},a={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}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),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}/}]},l={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(c,{contains:[]}),d=e.inherit(l,{contains:[]});c.contains.push(d),l.contains.push(u);let f=[n,s];return[c,l,u,d].forEach(e=>{e.contains=e.contains.concat(f)}),f=f.concat(c,l),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:f},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:f}]}]},n,a,c,l,{className:`quote`,begin:`^>\\s+`,contains:f,end:`$`},i,r,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}t.exports=n})),gi=n(((e,t)=>{function n(e){let t={className:`subst`,variants:[{begin:`\\$[A-Za-z0-9_]+`}]},n={className:`subst`,variants:[{begin:/\$\{/,end:/\}/}],keywords:`true false null this is new super`},r={className:`number`,relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:`string`,variants:[{begin:`r'''`,end:`'''`},{begin:`r"""`,end:`"""`},{begin:`r'`,end:`'`,illegal:`\\n`},{begin:`r"`,end:`"`,illegal:`\\n`},{begin:`'''`,end:`'''`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`"""`,end:`"""`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`'`,end:`'`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[r,i];let a=`Comparable.DateTime.Duration.Function.Iterable.Iterator.List.Map.Match.Object.Pattern.RegExp.Set.Stopwatch.String.StringBuffer.StringSink.Symbol.Type.Uri.bool.double.int.num.Element.ElementList`.split(`.`),o=a.map(e=>`${e}?`);return{name:`Dart`,keywords:{keyword:`abstract.as.assert.async.await.base.break.case.catch.class.const.continue.covariant.default.deferred.do.dynamic.else.enum.export.extends.extension.external.factory.false.final.finally.for.Function.get.hide.if.implements.import.in.interface.is.late.library.mixin.new.null.on.operator.part.required.rethrow.return.sealed.set.show.static.super.switch.sync.this.throw.true.try.typedef.var.void.when.while.with.yield`.split(`.`),built_in:a.concat(o).concat([`Never`,`Null`,`dynamic`,`print`,`document`,`querySelector`,`querySelectorAll`,`window`]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:`markdown`,relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:`markdown`,begin:`.`,end:`$`,relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`class`,beginKeywords:`class interface`,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},r,{className:`meta`,begin:`@[A-Za-z]+`},{begin:`=>`}]}}t.exports=n})),_i=n(((e,t)=>{function n(e){let t=`exports.register.file.shl.array.record.property.for.mod.while.set.ally.label.uses.raise.not.stored.class.safecall.var.interface.or.private.static.exit.index.inherited.to.else.stdcall.override.shr.asm.far.resourcestring.finalization.packed.virtual.out.and.protected.library.do.xorwrite.goto.near.function.end.div.overload.object.unit.begin.string.on.inline.repeat.until.destructor.write.message.program.with.read.initialization.except.default.nil.if.case.cdecl.in.downto.threadvar.of.try.pascal.const.external.constructor.type.public.then.implementation.finally.published.procedure.absolute.reintroduce.operator.as.is.abstract.alias.assembler.bitpacked.break.continue.cppdecl.cvar.enumerator.experimental.platform.deprecated.unimplemented.dynamic.export.far16.forward.generic.helper.implements.interrupt.iochecks.local.name.nodefault.noreturn.nostackframe.oldfpccall.otherwise.saveregisters.softfloat.specialize.strict.unaligned.varargs`.split(`.`),n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:`meta`,variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:`number`,relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:`string`,variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]};return{name:`Delphi`,aliases:[`dpr`,`dfm`,`pas`,`pascal`],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,a,{begin:e.IDENT_RE+`\\s*=\\s*class\\s*\\(`,returnBegin:!0,contains:[e.TITLE_MODE]},{className:`function`,beginKeywords:`function constructor destructor procedure`,end:/[:;]/,keywords:`function constructor|10 destructor|10 procedure|10`,contains:[e.TITLE_MODE,{className:`params`,begin:/\(/,end:/\)/,keywords:t,contains:[i,o,r].concat(n)},r].concat(n)},r].concat(n)}}t.exports=n})),vi=n(((e,t)=>{function n(e){let 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:/$/}]}}t.exports=n})),yi=n(((e,t)=>{function n(e){let t={begin:/\|[A-Za-z]+:?/,keywords:{name:`truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone`},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:`Django`,aliases:[`jinja`],case_insensitive:!0,subLanguage:`xml`,contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:`template-tag`,begin:/\{%/,end:/%\}/,contains:[{className:`name`,begin:/\w+/,keywords:{name:`comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim`},starts:{endsWithParent:!0,keywords:`in by as`,contains:[t],relevance:0}}]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[t]}]}}t.exports=n})),bi=n(((e,t)=>{function n(e){return{name:`DNS Zone`,aliases:[`bind`,`zone`],keywords:`IN.A.AAAA.AFSDB.APL.CAA.CDNSKEY.CDS.CERT.CNAME.DHCID.DLV.DNAME.DNSKEY.DS.HIP.IPSECKEY.KEY.KX.LOC.MX.NAPTR.NS.NSEC.NSEC3.NSEC3PARAM.PTR.RRSIG.RP.SIG.SOA.SRV.SSHFP.TA.TKEY.TLSA.TSIG.TXT`.split(`.`),contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`meta`,begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:`number`,begin:`((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b`},{className:`number`,begin:`((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b`},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}t.exports=n})),xi=n(((e,t)=>{function n(e){return{name:`Dockerfile`,aliases:[`docker`],case_insensitive:!0,keywords:[`from`,`maintainer`,`expose`,`env`,`arg`,`user`,`onbuild`,`stopsignal`],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:`run cmd entrypoint volume add copy workdir label healthcheck shell`,starts:{end:/[^\\]$/,subLanguage:`bash`}}],illegal:`{function n(e){let t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:`Batch file (DOS)`,aliases:[`bat`,`cmd`],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:[`if`,`else`,`goto`,`for`,`in`,`do`,`call`,`exit`,`not`,`exist`,`errorlevel`,`defined`,`equ`,`neq`,`lss`,`leq`,`gtr`,`geq`],built_in:`prn.nul.lpt3.lpt2.lpt1.con.com4.com3.com2.com1.aux.shift.cd.dir.echo.setlocal.endlocal.set.pause.copy.append.assoc.at.attrib.break.cacls.cd.chcp.chdir.chkdsk.chkntfs.cls.cmd.color.comp.compact.convert.date.dir.diskcomp.diskcopy.doskey.erase.fs.find.findstr.format.ftype.graftabl.help.keyb.label.md.mkdir.mode.more.move.path.pause.print.popd.pushd.promt.rd.recover.rem.rename.replace.restore.rmdir.shift.sort.start.subst.time.title.tree.type.ver.verify.vol.ping.net.ipconfig.taskkill.xcopy.ren.del`.split(`.`)},contains:[{className:`variable`,begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:`function`,begin:{className:`symbol`,begin:`^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)`,relevance:0}.begin,end:`goto:eof`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),t]},{className:`number`,begin:`\\b\\d+`,relevance:0},t]}}t.exports=n})),Ci=n(((e,t)=>{function n(e){return{keywords:`dsconfig`,contains:[{className:`keyword`,begin:`^dsconfig`,end:/\s/,excludeEnd:!0,relevance:10},{className:`built_in`,begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:`!@#$%^&*()`,relevance:10},{className:`built_in`,begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:`string`,begin:/"/,end:/"/},{className:`string`,begin:/'/,end:/'/},{className:`string`,begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:`string`,begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}t.exports=n})),wi=n(((e,t)=>{function n(e){let t={className:`string`,variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:`((u8?|U)|L)?"`}),{begin:`(u8?|U)?R"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{begin:`'\\\\?.`,end:`'`,illegal:`.`}]},n={className:`number`,variants:[{begin:`\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)`},{begin:e.C_NUMBER_RE}],relevance:0},r={className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef ifdef ifndef`},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,end:`$`,keywords:{keyword:`include`},contains:[e.inherit(t,{className:`string`}),{className:`string`,begin:`<`,end:`>`,illegal:`\\n`}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:`variable`,begin:/&[a-z\d_]*\b/};return{name:`Device Tree`,contains:[{className:`title.class`,begin:/^\/(?=\s*\{)/,relevance:10},i,{className:`keyword`,begin:`/[a-z][a-z\\d-]*/`},{className:`symbol`,begin:`^\\s*[a-zA-Z_][a-zA-Z\\d_]*:`},{className:`title.class`,begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},{relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:`attr`,3:`operator`}},{match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:`attr`},{className:`params`,relevance:0,begin:`<`,end:`>`,contains:[n,i]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,r,{scope:`punctuation`,relevance:0,match:/\};|[;{}]/},{begin:e.IDENT_RE+`::`,keywords:``}]}}t.exports=n})),Ti=n(((e,t)=>{function n(e){return{name:`Dust`,aliases:[`dst`],case_insensitive:!0,subLanguage:`xml`,contains:[{className:`template-tag`,begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:`name`,begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:`template-variable`,begin:/\{/,end:/\}/,illegal:/;/,keywords:`if eq ne lt lte gt gte select default math sep`}]}}t.exports=n})),Ei=n(((e,t)=>{function n(e){let t=e.COMMENT(/\(\*/,/\*\)/);return{name:`Extended Backus-Naur Form`,illegal:/\S/,contains:[t,{className:`attribute`,begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:`meta`,begin:/\?.*\?/},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}t.exports=n})),Di=n(((e,t)=>{function n(e){let t=e.regex,n=`[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?`,r={$pattern:n,keyword:`after.alias.and.case.catch.cond.defstruct.defguard.do.else.end.fn.for.if.import.in.not.or.quote.raise.receive.require.reraise.rescue.try.unless.unquote.unquote_splicing.use.when.with|0`.split(`.`),literal:[`false`,`nil`,`true`]},i={className:`subst`,begin:/#\{/,end:/\}/,keywords:r},a={className:`number`,begin:`(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)`,relevance:0},o={match:/\\[\s\S]/,scope:`char.escape`,relevance:0},s=`[/|([{<"']`,c=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],l=e=>({scope:`char.escape`,begin:t.concat(/\\/,e),relevance:0}),u={className:`string`,begin:`~[a-z](?=`+s+`)`,contains:c.map(t=>e.inherit(t,{contains:[l(t.end),o,i]}))},d={className:`string`,begin:`~[A-Z](?=`+s+`)`,contains:c.map(t=>e.inherit(t,{contains:[l(t.end)]}))},f={className:`regex`,variants:[{begin:`~r(?=`+s+`)`,contains:c.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end),o,i]}))},{begin:`~R(?=`+s+`)`,contains:c.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end)]}))}]},p={className:`string`,contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},m={className:`function`,beginKeywords:`def defp defmacro defmacrop`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},h=e.inherit(m,{className:`class`,beginKeywords:`defimpl defmodule defprotocol defrecord`,end:/\bdo\b|$|;/}),g=[p,f,d,u,e.HASH_COMMENT_MODE,h,m,{begin:`::`},{className:`symbol`,begin:`:(?![\\s:])`,contains:[p,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:`symbol`,begin:n+`:(?!:)`,relevance:0},{className:`title.class`,begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},a,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))`}];return i.contains=g,{name:`Elixir`,aliases:[`ex`,`exs`],keywords:r,contains:g}}t.exports=n})),Oi=n(((e,t)=>{function n(e){let t={variants:[e.COMMENT(`--`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},n={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},r={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},t]},i={begin:/\{/,end:/\}/,contains:r.contains};return{name:`Elm`,keywords:[`let`,`in`,`if`,`then`,`else`,`case`,`of`,`where`,`module`,`import`,`exposing`,`type`,`alias`,`as`,`infix`,`infixl`,`infixr`,`port`,`effect`,`command`,`subscription`],contains:[{beginKeywords:`port effect module`,end:`exposing`,keywords:`port effect module where command subscription exposing`,contains:[r,t],illegal:`\\W\\.|;`},{begin:`import`,end:`$`,keywords:`import as exposing`,contains:[r,t],illegal:`\\W\\.|;`},{begin:`type`,end:`$`,keywords:`type alias`,contains:[n,r,i,t]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,t]},{begin:`port`,end:`$`,keywords:`port`,contains:[t]},{className:`string`,begin:`'\\\\?.`,end:`'`,illegal:`.`},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),t,{begin:`->|<-`}],illegal:/;/}}t.exports=n})),ki=n(((e,t)=>{function n(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"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`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},c=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],l={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{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,l]})]}]},d=`[0-9](_?[0-9])*`,f={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|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`}]},p={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},m=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{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:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[p]},{begin:e.IDENT_RE+`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[u,{begin:n}],relevance:0},f,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,l],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(s,c),relevance:0}].concat(s,c);l.contains=m,p.contains=m;let h=[{begin:/^\s*=>/,starts:{end:`$`,contains:m}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:m}}];return c.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(h,c,m)}}t.exports=n})),Ai=n(((e,t)=>{function n(e){return{name:`ERB`,subLanguage:`xml`,contains:[e.COMMENT(`<%#`,`%>`),{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),ji=n(((e,t)=>{function n(e){let t=e.regex;return{name:`Erlang REPL`,keywords:{built_in:`spawn spawn_link self`,keyword:`after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor`},contains:[{className:`meta.prompt`,begin:`^[0-9]+> `,relevance:10},e.COMMENT(`%`,`$`),{className:`number`,begin:`\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)`,relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:`->`},{begin:`ok`},{begin:`!`},{begin:`(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)`,relevance:0},{begin:`[A-Z][a-zA-Z0-9_']*`,relevance:0}]}}t.exports=n})),Mi=n(((e,t)=>{function n(e){let t=`[a-z'][a-zA-Z0-9_']*`,n=`(`+t+`:[a-z'][a-zA-Z0-9_']*|[a-z'][a-zA-Z0-9_']*)`,r={keyword:`after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else`,literal:`false true`},i=e.COMMENT(`%`,`$`),a={className:`number`,begin:`\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)`,relevance:0},o={begin:`fun\\s+`+t+`/\\d+`},s={begin:n+`\\(`,end:`\\)`,returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:`\\(`,end:`\\)`,endsWithParent:!0,returnEnd:!0,relevance:0}]},c={begin:/\{/,end:/\}/,relevance:0},l={begin:`\\b_([A-Z][A-Za-z0-9_]*)?`,relevance:0},u={begin:`[A-Z][a-zA-Z0-9_]*`,relevance:0},d={begin:`#`+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:`#`+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},f={scope:`string`,match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},p={scope:`string`,match:/"""("*)(?!")[\s\S]*?"""\1/},m={scope:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},h={beginKeywords:`fun receive if try case maybe`,end:`end`,keywords:r};h.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:``}),h,s,m,p,e.QUOTE_STRING_MODE,a,c,l,u,d,f];let g=[i,o,h,s,m,p,e.QUOTE_STRING_MODE,a,c,l,u,d,f];s.contains[1].contains=g,c.contains=g,d.contains[1].contains=g;let _=[`-module`,`-record`,`-undef`,`-export`,`-ifdef`,`-ifndef`,`-author`,`-copyright`,`-doc`,`-moduledoc`,`-vsn`,`-import`,`-include`,`-include_lib`,`-compile`,`-define`,`-else`,`-endif`,`-file`,`-behaviour`,`-behavior`,`-spec`,`-on_load`,`-nifs`],v={className:`params`,begin:`\\(`,end:`\\)`,contains:g};return{name:`Erlang`,aliases:[`erl`],keywords:r,illegal:`(`,returnBegin:!0,illegal:`\\(|#|//|/\\*|\\\\|:|;`,contains:[v,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:`;|\\.`,keywords:r,contains:g}},i,{begin:`^-`,end:`\\.`,relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:`-`+e.IDENT_RE,keyword:_.map(e=>`${e}|1.5`).join(` `)},contains:[v,m,p,e.QUOTE_STRING_MODE]},a,m,p,e.QUOTE_STRING_MODE,d,l,u,c,f,{begin:/\.$/}]}}t.exports=n})),Ni=n(((e,t)=>{function n(e){return{name:`Excel formulae`,aliases:[`xlsx`,`xls`],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:`ABS,ACCRINT,ACCRINTM,ACOS,ACOSH,ACOT,ACOTH,AGGREGATE,ADDRESS,AMORDEGRC,AMORLINC,AND,ARABIC,AREAS,ARRAYTOTEXT,ASC,ASIN,ASINH,ATAN,ATAN2,ATANH,AVEDEV,AVERAGE,AVERAGEA,AVERAGEIF,AVERAGEIFS,BAHTTEXT,BASE,BESSELI,BESSELJ,BESSELK,BESSELY,BETADIST,BETA.DIST,BETAINV,BETA.INV,BIN2DEC,BIN2HEX,BIN2OCT,BINOMDIST,BINOM.DIST,BINOM.DIST.RANGE,BINOM.INV,BITAND,BITLSHIFT,BITOR,BITRSHIFT,BITXOR,BYCOL,BYROW,CALL,CEILING,CEILING.MATH,CEILING.PRECISE,CELL,CHAR,CHIDIST,CHIINV,CHITEST,CHISQ.DIST,CHISQ.DIST.RT,CHISQ.INV,CHISQ.INV.RT,CHISQ.TEST,CHOOSE,CHOOSECOLS,CHOOSEROWS,CLEAN,CODE,COLUMN,COLUMNS,COMBIN,COMBINA,COMPLEX,CONCAT,CONCATENATE,CONFIDENCE,CONFIDENCE.NORM,CONFIDENCE.T,CONVERT,CORREL,COS,COSH,COT,COTH,COUNT,COUNTA,COUNTBLANK,COUNTIF,COUNTIFS,COUPDAYBS,COUPDAYS,COUPDAYSNC,COUPNCD,COUPNUM,COUPPCD,COVAR,COVARIANCE.P,COVARIANCE.S,CRITBINOM,CSC,CSCH,CUBEKPIMEMBER,CUBEMEMBER,CUBEMEMBERPROPERTY,CUBERANKEDMEMBER,CUBESET,CUBESETCOUNT,CUBEVALUE,CUMIPMT,CUMPRINC,DATE,DATEDIF,DATEVALUE,DAVERAGE,DAY,DAYS,DAYS360,DB,DBCS,DCOUNT,DCOUNTA,DDB,DEC2BIN,DEC2HEX,DEC2OCT,DECIMAL,DEGREES,DELTA,DEVSQ,DGET,DISC,DMAX,DMIN,DOLLAR,DOLLARDE,DOLLARFR,DPRODUCT,DROP,DSTDEV,DSTDEVP,DSUM,DURATION,DVAR,DVARP,EDATE,EFFECT,ENCODEURL,EOMONTH,ERF,ERF.PRECISE,ERFC,ERFC.PRECISE,ERROR.TYPE,EUROCONVERT,EVEN,EXACT,EXP,EXPAND,EXPON.DIST,EXPONDIST,FACT,FACTDOUBLE,FALSE,F.DIST,FDIST,F.DIST.RT,FILTER,FILTERXML,FIND,FINDB,F.INV,F.INV.RT,FINV,FISHER,FISHERINV,FIXED,FLOOR,FLOOR.MATH,FLOOR.PRECISE,FORECAST,FORECAST.ETS,FORECAST.ETS.CONFINT,FORECAST.ETS.SEASONALITY,FORECAST.ETS.STAT,FORECAST.LINEAR,FORMULATEXT,FREQUENCY,F.TEST,FTEST,FV,FVSCHEDULE,GAMMA,GAMMA.DIST,GAMMADIST,GAMMA.INV,GAMMAINV,GAMMALN,GAMMALN.PRECISE,GAUSS,GCD,GEOMEAN,GESTEP,GETPIVOTDATA,GROWTH,HARMEAN,HEX2BIN,HEX2DEC,HEX2OCT,HLOOKUP,HOUR,HSTACK,HYPERLINK,HYPGEOM.DIST,HYPGEOMDIST,IF,IFERROR,IFNA,IFS,IMABS,IMAGE,IMAGINARY,IMARGUMENT,IMCONJUGATE,IMCOS,IMCOSH,IMCOT,IMCSC,IMCSCH,IMDIV,IMEXP,IMLN,IMLOG10,IMLOG2,IMPOWER,IMPRODUCT,IMREAL,IMSEC,IMSECH,IMSIN,IMSINH,IMSQRT,IMSUB,IMSUM,IMTAN,INDEX,INDIRECT,INFO,INT,INTERCEPT,INTRATE,IPMT,IRR,ISBLANK,ISERR,ISERROR,ISEVEN,ISFORMULA,ISLOGICAL,ISNA,ISNONTEXT,ISNUMBER,ISODD,ISOMITTED,ISREF,ISTEXT,ISO.CEILING,ISOWEEKNUM,ISPMT,JIS,KURT,LAMBDA,LARGE,LCM,LEFT,LEFTB,LEN,LENB,LET,LINEST,LN,LOG,LOG10,LOGEST,LOGINV,LOGNORM.DIST,LOGNORMDIST,LOGNORM.INV,LOOKUP,LOWER,MAKEARRAY,MAP,MATCH,MAX,MAXA,MAXIFS,MDETERM,MDURATION,MEDIAN,MID,MIDB,MIN,MINIFS,MINA,MINUTE,MINVERSE,MIRR,MMULT,MOD,MODE,MODE.MULT,MODE.SNGL,MONTH,MROUND,MULTINOMIAL,MUNIT,N,NA,NEGBINOM.DIST,NEGBINOMDIST,NETWORKDAYS,NETWORKDAYS.INTL,NOMINAL,NORM.DIST,NORMDIST,NORMINV,NORM.INV,NORM.S.DIST,NORMSDIST,NORM.S.INV,NORMSINV,NOT,NOW,NPER,NPV,NUMBERVALUE,OCT2BIN,OCT2DEC,OCT2HEX,ODD,ODDFPRICE,ODDFYIELD,ODDLPRICE,ODDLYIELD,OFFSET,OR,PDURATION,PEARSON,PERCENTILE.EXC,PERCENTILE.INC,PERCENTILE,PERCENTRANK.EXC,PERCENTRANK.INC,PERCENTRANK,PERMUT,PERMUTATIONA,PHI,PHONETIC,PI,PMT,POISSON.DIST,POISSON,POWER,PPMT,PRICE,PRICEDISC,PRICEMAT,PROB,PRODUCT,PROPER,PV,QUARTILE,QUARTILE.EXC,QUARTILE.INC,QUOTIENT,RADIANS,RAND,RANDARRAY,RANDBETWEEN,RANK.AVG,RANK.EQ,RANK,RATE,RECEIVED,REDUCE,REGISTER.ID,REPLACE,REPLACEB,REPT,RIGHT,RIGHTB,ROMAN,ROUND,ROUNDDOWN,ROUNDUP,ROW,ROWS,RRI,RSQ,RTD,SCAN,SEARCH,SEARCHB,SEC,SECH,SECOND,SEQUENCE,SERIESSUM,SHEET,SHEETS,SIGN,SIN,SINH,SKEW,SKEW.P,SLN,SLOPE,SMALL,SORT,SORTBY,SQRT,SQRTPI,SQL.REQUEST,STANDARDIZE,STOCKHISTORY,STDEV,STDEV.P,STDEV.S,STDEVA,STDEVP,STDEVPA,STEYX,SUBSTITUTE,SUBTOTAL,SUM,SUMIF,SUMIFS,SUMPRODUCT,SUMSQ,SUMX2MY2,SUMX2PY2,SUMXMY2,SWITCH,SYD,T,TAN,TANH,TAKE,TBILLEQ,TBILLPRICE,TBILLYIELD,T.DIST,T.DIST.2T,T.DIST.RT,TDIST,TEXT,TEXTAFTER,TEXTBEFORE,TEXTJOIN,TEXTSPLIT,TIME,TIMEVALUE,T.INV,T.INV.2T,TINV,TOCOL,TOROW,TODAY,TRANSPOSE,TREND,TRIM,TRIMMEAN,TRUE,TRUNC,T.TEST,TTEST,TYPE,UNICHAR,UNICODE,UNIQUE,UPPER,VALUE,VALUETOTEXT,VAR,VAR.P,VAR.S,VARA,VARP,VARPA,VDB,VLOOKUP,VSTACK,WEBSERVICE,WEEKDAY,WEEKNUM,WEIBULL,WEIBULL.DIST,WORKDAY,WORKDAY.INTL,WRAPCOLS,WRAPROWS,XIRR,XLOOKUP,XMATCH,XNPV,XOR,YEAR,YEARFRAC,YIELD,YIELDDISC,YIELDMAT,Z.TEST,ZTEST`.split(`,`)},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:`symbol`,begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:`symbol`,begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:`number`,begin:e.NUMBER_RE+`(%)?`,relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}t.exports=n})),Pi=n(((e,t)=>{function n(e){return{name:`FIX`,contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:`attr`},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:`string`}]}],case_insensitive:!0}}t.exports=n})),Fi=n(((e,t)=>{function n(e){return{name:`Flix`,keywords:{keyword:[`case`,`class`,`def`,`else`,`enum`,`if`,`impl`,`import`,`in`,`lat`,`rel`,`index`,`let`,`match`,`namespace`,`switch`,`type`,`yield`,`with`],literal:[`true`,`false`]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:`string`,variants:[{begin:`"`,end:`"`}]},{className:`function`,beginKeywords:`def`,end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:`title`,relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]},e.C_NUMBER_MODE]}}t.exports=n})),Ii=n(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r={variants:[e.COMMENT(`!`,`$`,{relevance:0}),e.COMMENT(`^C[ ]`,`$`,{relevance:0}),e.COMMENT(`^C$`,`$`,{relevance:0})]},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,o={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:t.concat(/\b\d+/,a,i)},{begin:t.concat(/\.\d+/,a,i)}],relevance:0},s={className:`function`,beginKeywords:`subroutine function program`,illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]};return{name:`Fortran`,case_insensitive:!0,aliases:[`f90`,`f95`],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:`kind,do,concurrent,local,shared,while,private,call,intrinsic,where,elsewhere,type,endtype,endmodule,endselect,endinterface,end,enddo,endif,if,forall,endforall,only,contains,default,return,stop,then,block,endblock,endassociate,public,subroutine|10,function,program,.and.,.or.,.not.,.le.,.eq.,.ge.,.gt.,.lt.,goto,save,else,use,module,select,case,access,blank,direct,exist,file,fmt,form,formatted,iostat,name,named,nextrec,number,opened,rec,recl,sequential,status,unformatted,unit,continue,format,pause,cycle,exit,c_null_char,c_alert,c_backspace,c_form_feed,flush,wait,decimal,round,iomsg,synchronous,nopass,non_overridable,pass,protected,volatile,abstract,extends,import,non_intrinsic,value,deferred,generic,final,enumerator,class,associate,bind,enum,c_int,c_short,c_long,c_long_long,c_signed_char,c_size_t,c_int8_t,c_int16_t,c_int32_t,c_int64_t,c_int_least8_t,c_int_least16_t,c_int_least32_t,c_int_least64_t,c_int_fast8_t,c_int_fast16_t,c_int_fast32_t,c_int_fast64_t,c_intmax_t,C_intptr_t,c_float,c_double,c_long_double,c_float_complex,c_double_complex,c_long_double_complex,c_bool,c_char,c_null_ptr,c_null_funptr,c_new_line,c_carriage_return,c_horizontal_tab,c_vertical_tab,iso_c_binding,c_loc,c_funloc,c_associated,c_f_pointer,c_ptr,c_funptr,iso_fortran_env,character_storage_size,error_unit,file_storage_size,input_unit,iostat_end,iostat_eor,numeric_storage_size,output_unit,c_f_procpointer,ieee_arithmetic,ieee_support_underflow_control,ieee_get_underflow_mode,ieee_set_underflow_mode,newunit,contiguous,recursive,pad,position,action,delim,readwrite,eor,advance,nml,interface,procedure,namelist,include,sequence,elemental,pure,impure,integer,real,character,complex,logical,codimension,dimension,allocatable|10,parameter,external,implicit|10,none,double,precision,assign,intent,optional,pointer,target,in,out,common,equivalence,data`.split(`,`),literal:[`.False.`,`.True.`],built_in:`alog.alog10.amax0.amax1.amin0.amin1.amod.cabs.ccos.cexp.clog.csin.csqrt.dabs.dacos.dasin.datan.datan2.dcos.dcosh.ddim.dexp.dint.dlog.dlog10.dmax1.dmin1.dmod.dnint.dsign.dsin.dsinh.dsqrt.dtan.dtanh.float.iabs.idim.idint.idnint.ifix.isign.max0.max1.min0.min1.sngl.algama.cdabs.cdcos.cdexp.cdlog.cdsin.cdsqrt.cqabs.cqcos.cqexp.cqlog.cqsin.cqsqrt.dcmplx.dconjg.derf.derfc.dfloat.dgamma.dimag.dlgama.iqint.qabs.qacos.qasin.qatan.qatan2.qcmplx.qconjg.qcos.qcosh.qdim.qerf.qerfc.qexp.qgamma.qimag.qlgama.qlog.qlog10.qmax1.qmin1.qmod.qnint.qsign.qsin.qsinh.qsqrt.qtan.qtanh.abs.acos.aimag.aint.anint.asin.atan.atan2.char.cmplx.conjg.cos.cosh.exp.ichar.index.int.log.log10.max.min.nint.sign.sin.sinh.sqrt.tan.tanh.print.write.dim.lge.lgt.lle.llt.mod.nullify.allocate.deallocate.adjustl.adjustr.all.allocated.any.associated.bit_size.btest.ceiling.count.cshift.date_and_time.digits.dot_product.eoshift.epsilon.exponent.floor.fraction.huge.iand.ibclr.ibits.ibset.ieor.ior.ishft.ishftc.lbound.len_trim.matmul.maxexponent.maxloc.maxval.merge.minexponent.minloc.minval.modulo.mvbits.nearest.pack.present.product.radix.random_number.random_seed.range.repeat.reshape.rrspacing.scale.scan.selected_int_kind.selected_real_kind.set_exponent.shape.size.spacing.spread.sum.system_clock.tiny.transpose.trim.ubound.unpack.verify.achar.iachar.transfer.dble.entry.dprod.cpu_time.command_argument_count.get_command.get_command_argument.get_environment_variable.is_iostat_end.ieee_arithmetic.ieee_support_underflow_control.ieee_get_underflow_mode.ieee_set_underflow_mode.is_iostat_eor.move_alloc.new_line.selected_char_kind.same_type_as.extends_type_of.acosh.asinh.atanh.bessel_j0.bessel_j1.bessel_jn.bessel_y0.bessel_y1.bessel_yn.erf.erfc.erfc_scaled.gamma.log_gamma.hypot.norm2.atomic_define.atomic_ref.execute_command_line.leadz.trailz.storage_size.merge_bits.bge.bgt.ble.blt.dshiftl.dshiftr.findloc.iall.iany.iparity.image_index.lcobound.ucobound.maskl.maskr.num_images.parity.popcnt.poppar.shifta.shiftl.shiftr.this_image.sync.change.team.co_broadcast.co_max.co_min.co_sum.co_reduce`.split(`.`)},illegal:/\/\*/,contains:[{className:`string`,relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},s,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}t.exports=n})),Li=n(((e,t)=>{function n(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`),`m`)}function r(e){return e?typeof e==`string`?e:e.source:null}function i(e){return a(`(?=`,e,`)`)}function a(...e){return e.map(e=>r(e)).join(``)}function o(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function s(...e){return`(`+(o(e).capture?``:`?:`)+e.map(e=>r(e)).join(`|`)+`)`}function c(e){let t=`abstract.and.as.assert.base.begin.class.default.delegate.do.done.downcast.downto.elif.else.end.exception.extern.finally.fixed.for.fun.function.global.if.in.inherit.inline.interface.internal.lazy.let.match.member.module.mutable.namespace.new.of.open.or.override.private.public.rec.return.static.struct.then.to.try.type.upcast.use.val.void.when.while.with.yield`.split(`.`),r={scope:`keyword`,match:/\b(yield|return|let|do|match|use)!/},o=[`if`,`else`,`endif`,`line`,`nowarn`,`light`,`r`,`i`,`I`,`load`,`time`,`help`,`quit`],c=[`true`,`false`,`null`,`Some`,`None`,`Ok`,`Error`,`infinity`,`infinityf`,`nan`,`nanf`],l=[`__LINE__`,`__SOURCE_DIRECTORY__`,`__SOURCE_FILE__`],u=`bool.byte.sbyte.int8.int16.int32.uint8.uint16.uint32.int.uint.int64.uint64.nativeint.unativeint.decimal.float.double.float32.single.char.string.unit.bigint.option.voption.list.array.seq.byref.exn.inref.nativeptr.obj.outref.voidptr.Result`.split(`.`),d={keyword:t,literal:c,built_in:`not.ref.raise.reraise.dict.readOnlyDict.set.get.enum.sizeof.typeof.typedefof.nameof.nullArg.invalidArg.invalidOp.id.fst.snd.ignore.lock.using.box.unbox.tryUnbox.printf.printfn.sprintf.eprintf.eprintfn.fprintf.fprintfn.failwith.failwithf`.split(`.`),"variable.constant":l},f={variants:[e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:[`self`]}),e.C_LINE_COMMENT_MODE]},p=/[a-zA-Z_](\w|')*/,m={scope:`variable`,begin:/``/,end:/``/},h=/\B('|\^)/,g={scope:`symbol`,variants:[{match:a(h,/``.*?``/)},{match:a(h,e.UNDERSCORE_IDENT_RE)}],relevance:0},_=function({includeEqual:e}){let t;t=e?`!%&*+-/<=>@^|~?`:`!%&*+-/<>@^|~?`;let r=a(`[`,...Array.from(t).map(n),`]`),o=s(r,/\./);return{scope:`operator`,match:s(s(a(a(o,i(o)),o,`*`),a(r,`+`)),/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},v=_({includeEqual:!0}),y=_({includeEqual:!1}),b=function(t,n){return{begin:a(t,i(a(/\s*/,s(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:i(s(/\n/,/=/)),relevance:0,keywords:e.inherit(d,{type:u}),contains:[f,g,e.inherit(m,{scope:null}),y]}},x=b(/:/,`operator`),S=b(/\bof\b/,`keyword`),C={begin:[/(^|\s+)/,/type/,/\s+/,p],beginScope:{2:`keyword`,4:`title.class`},end:i(/\(|=|$/),keywords:d,contains:[f,e.inherit(m,{scope:null}),g,{scope:`operator`,match:/<|>/},x]},w={scope:`computation-expression`,match:/\b[_a-z]\w*(?=\s*\{)/},T={begin:[/^\s*/,a(/#/,s(...o)),/\b/],beginScope:{2:`meta`},end:i(/\s|$/)},E={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},D={scope:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},O={scope:`string`,begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},k={scope:`string`,begin:/"""/,end:/"""/,relevance:2},A={scope:`subst`,begin:/\{/,end:/\}/,keywords:d},j={scope:`string`,begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,A]},M={scope:`string`,begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,A]},N={scope:`string`,begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},A],relevance:2},P={scope:`string`,match:a(/'/,s(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return A.contains=[M,j,O,D,P,r,f,m,x,w,T,E,g,v],{name:`F#`,aliases:[`fs`,`f#`],keywords:d,illegal:/\/\*/,classNameAliases:{"computation-expression":`keyword`},contains:[r,{variants:[N,M,j,k,O,D,P]},f,m,C,{scope:`meta`,begin:/\[\]/,relevance:2,contains:[m,k,O,D,P,E]},S,x,w,T,E,g,v]}}t.exports=c})),Ri=n(((e,t)=>{function n(e){let t=e.regex,n={keyword:`abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes`,literal:`eps inf na`,built_in:`abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart`},r={className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:`symbol`,variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},a={className:`comment`,variants:[{begin:`'`,end:`'`},{begin:`"`,end:`"`}],illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},o={begin:`/`,end:`/`,keywords:n,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,c={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:`$`,endsWithParent:!0,contains:[a,o,{className:`comment`,begin:t.concat(s,t.anyNumberOfTimes(t.concat(/[ ]+/,s))),relevance:0}]};return{name:`GAMS`,aliases:[`gms`],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:`meta`,begin:`^\\$[a-z0-9]+`,end:`$`,returnBegin:!0,contains:[{className:`keyword`,begin:`^\\$[a-z0-9]+`}]},e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:`set sets parameter parameters variable variables scalar scalars equation equations`,end:`;`,contains:[e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,c]},{beginKeywords:`table`,end:`;`,returnBegin:!0,contains:[{beginKeywords:`table`,end:`$`,contains:[c]},e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:`function`,begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:`title`,begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}t.exports=n})),zi=n(((e,t)=>{function n(e){let t={keyword:`bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv`,built_in:`abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim`,literal:`DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR`},n=e.COMMENT(`@`,`@`),r={className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline`},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,end:`$`,keywords:{keyword:`include`},contains:[{className:`string`,begin:`"`,end:`"`,illegal:`\\n`}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},i={begin:/\bstruct\s+/,end:/\s/,keywords:`struct`,contains:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},a=[{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:`literal`,begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,i]}],o={className:`title`,begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,r,i){let s=e.inherit({className:`function`,beginKeywords:t,end:r,excludeEnd:!0,contains:[].concat(a)},{});return s.contains.push(o),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},c={className:`built_in`,begin:`\\b(`+t.built_in.split(` `).join(`|`)+`)\\b`},l={className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE],relevance:0},u={begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},c,{className:`built_in`,begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,c,u,l,`self`]};return u.contains.push(d),{name:`GAUSS`,aliases:[`gss`],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,l,r,{className:`keyword`,begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s(`proc keyword`,`;`),s(`fn`,`=`),{beginKeywords:`for threadfor`,end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+`\\.`+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+`\\s*=`}],relevance:0},u,i]}}t.exports=n})),Bi=n(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/[A-Z]+|%/,keyword:[`THEN`,`ELSE`,`ENDIF`,`IF`,`GOTO`,`DO`,`WHILE`,`WH`,`END`,`CALL`,`SUB`,`ENDSUB`,`EQ`,`NE`,`LT`,`GT`,`LE`,`GE`,`AND`,`OR`,`XOR`,`%`],built_in:[`ATAN`,`ABS`,`ACOS`,`ASIN`,`COS`,`EXP`,`FIX`,`FUP`,`ROUND`,`LN`,`SIN`,`SQRT`,`TAN`,`EXISTS`]},r=/\b/;function i(e,t){if(e.index===0)return;let n=e.input[e.index-1];n>=`0`&&n<=`9`||n!==`_`&&t.ignoreMatch()}let a=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,s=/T\s*\d+/,c=/O\s*\d+/,l=/O<.+>/,u=/[ABCUVWXYZ]\s*/,d=/[FHIJKPQRS]\s*/;return{name:`G-code (ISO 6983)`,aliases:[`nc`],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:`title.function`,variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,s)},{begin:s,"on:begin":i}]},{scope:`symbol`,variants:[{match:t.concat(r,c)},{begin:c,"on:begin":i},{match:t.concat(r,l)},{begin:l,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:`operator`,match:/^N\s*\d+/},{scope:`variable`,match:/-?#\s*\d+/},{scope:`property`,variants:[{match:t.concat(r,u,a)},{begin:t.concat(u,a),"on:begin":i}]},{scope:`params`,variants:[{match:t.concat(r,d,a)},{begin:t.concat(d,a),"on:begin":i}]}]}}t.exports=n})),Vi=n(((e,t)=>{function n(e){return{name:`Gherkin`,aliases:[`feature`],keywords:`Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When`,contains:[{className:`symbol`,begin:`\\*`,relevance:0},{className:`meta`,begin:`@[^@\\s]+`},{begin:`\\|`,end:`\\|\\w*$`,contains:[{className:`string`,begin:`[^|]+`}]},{className:`variable`,begin:`<`,end:`>`},e.HASH_COMMENT_MODE,{className:`string`,begin:`"""`,end:`"""`},e.QUOTE_STRING_MODE]}}t.exports=n})),Hi=n(((e,t)=>{function n(e){return{name:`GLSL`,keywords:{keyword:`break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly`,type:`atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void`,built_in:`gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow`,literal:`true false`},illegal:`"`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`#`,end:`$`}]}}t.exports=n})),Ui=n(((e,t)=>{function n(e){return{name:`GML`,case_insensitive:!1,keywords:{keyword:`#endregion.#macro.#region.and.begin.break.case.constructor.continue.default.delete.div.do.else.end.enum.exit.for.function.globalvar.if.mod.new.not.or.repeat.return.static.switch.then.until.var.while.with.xor`.split(`.`),built_in:`abs.alarm_get.alarm_set.angle_difference.animcurve_channel_evaluate.animcurve_channel_new.animcurve_create.animcurve_destroy.animcurve_exists.animcurve_get.animcurve_get_channel.animcurve_get_channel_index.animcurve_point_new.ansi_char.application_get_position.application_surface_draw_enable.application_surface_enable.application_surface_is_enabled.arccos.arcsin.arctan.arctan2.array_all.array_any.array_concat.array_contains.array_contains_ext.array_copy.array_copy_while.array_create.array_create_ext.array_delete.array_equals.array_filter.array_filter_ext.array_find_index.array_first.array_foreach.array_get.array_get_index.array_insert.array_intersection.array_last.array_length.array_map.array_map_ext.array_pop.array_push.array_reduce.array_resize.array_reverse.array_reverse_ext.array_set.array_shuffle.array_shuffle_ext.array_sort.array_union.array_unique.array_unique_ext.asset_add_tags.asset_clear_tags.asset_get_ids.asset_get_index.asset_get_tags.asset_get_type.asset_has_any_tag.asset_has_tags.asset_remove_tags.audio_bus_clear_emitters.audio_bus_create.audio_bus_get_emitters.audio_channel_num.audio_create_buffer_sound.audio_create_play_queue.audio_create_stream.audio_create_sync_group.audio_debug.audio_destroy_stream.audio_destroy_sync_group.audio_effect_create.audio_emitter_bus.audio_emitter_create.audio_emitter_exists.audio_emitter_falloff.audio_emitter_free.audio_emitter_gain.audio_emitter_get_bus.audio_emitter_get_gain.audio_emitter_get_listener_mask.audio_emitter_get_pitch.audio_emitter_get_vx.audio_emitter_get_vy.audio_emitter_get_vz.audio_emitter_get_x.audio_emitter_get_y.audio_emitter_get_z.audio_emitter_pitch.audio_emitter_position.audio_emitter_set_listener_mask.audio_emitter_velocity.audio_exists.audio_falloff_set_model.audio_free_buffer_sound.audio_free_play_queue.audio_get_listener_count.audio_get_listener_info.audio_get_listener_mask.audio_get_master_gain.audio_get_name.audio_get_recorder_count.audio_get_recorder_info.audio_get_type.audio_group_get_assets.audio_group_get_gain.audio_group_is_loaded.audio_group_load.audio_group_load_progress.audio_group_name.audio_group_set_gain.audio_group_stop_all.audio_group_unload.audio_is_paused.audio_is_playing.audio_listener_get_data.audio_listener_orientation.audio_listener_position.audio_listener_set_orientation.audio_listener_set_position.audio_listener_set_velocity.audio_listener_velocity.audio_master_gain.audio_pause_all.audio_pause_sound.audio_pause_sync_group.audio_play_in_sync_group.audio_play_sound.audio_play_sound_at.audio_play_sound_ext.audio_play_sound_on.audio_queue_sound.audio_resume_all.audio_resume_sound.audio_resume_sync_group.audio_set_listener_mask.audio_set_master_gain.audio_sound_gain.audio_sound_get_audio_group.audio_sound_get_gain.audio_sound_get_listener_mask.audio_sound_get_loop.audio_sound_get_loop_end.audio_sound_get_loop_start.audio_sound_get_pitch.audio_sound_get_track_position.audio_sound_is_playable.audio_sound_length.audio_sound_loop.audio_sound_loop_end.audio_sound_loop_start.audio_sound_pitch.audio_sound_set_listener_mask.audio_sound_set_track_position.audio_start_recording.audio_start_sync_group.audio_stop_all.audio_stop_recording.audio_stop_sound.audio_stop_sync_group.audio_sync_group_debug.audio_sync_group_get_track_pos.audio_sync_group_is_paused.audio_sync_group_is_playing.audio_system_is_available.audio_system_is_initialised.base64_decode.base64_encode.bool.browser_input_capture.buffer_async_group_begin.buffer_async_group_end.buffer_async_group_option.buffer_base64_decode.buffer_base64_decode_ext.buffer_base64_encode.buffer_compress.buffer_copy.buffer_copy_from_vertex_buffer.buffer_copy_stride.buffer_crc32.buffer_create.buffer_create_from_vertex_buffer.buffer_create_from_vertex_buffer_ext.buffer_decompress.buffer_delete.buffer_exists.buffer_fill.buffer_get_address.buffer_get_alignment.buffer_get_size.buffer_get_surface.buffer_get_type.buffer_load.buffer_load_async.buffer_load_ext.buffer_load_partial.buffer_md5.buffer_peek.buffer_poke.buffer_read.buffer_resize.buffer_save.buffer_save_async.buffer_save_ext.buffer_seek.buffer_set_surface.buffer_set_used_size.buffer_sha1.buffer_sizeof.buffer_tell.buffer_write.call_cancel.call_later.camera_apply.camera_copy_transforms.camera_create.camera_create_view.camera_destroy.camera_get_active.camera_get_begin_script.camera_get_default.camera_get_end_script.camera_get_proj_mat.camera_get_update_script.camera_get_view_angle.camera_get_view_border_x.camera_get_view_border_y.camera_get_view_height.camera_get_view_mat.camera_get_view_speed_x.camera_get_view_speed_y.camera_get_view_target.camera_get_view_width.camera_get_view_x.camera_get_view_y.camera_set_begin_script.camera_set_default.camera_set_end_script.camera_set_proj_mat.camera_set_update_script.camera_set_view_angle.camera_set_view_border.camera_set_view_mat.camera_set_view_pos.camera_set_view_size.camera_set_view_speed.camera_set_view_target.ceil.choose.chr.clamp.clickable_add.clickable_add_ext.clickable_change.clickable_change_ext.clickable_delete.clickable_exists.clickable_set_style.clipboard_get_text.clipboard_has_text.clipboard_set_text.cloud_file_save.cloud_string_save.cloud_synchronise.code_is_compiled.collision_circle.collision_circle_list.collision_ellipse.collision_ellipse_list.collision_line.collision_line_list.collision_point.collision_point_list.collision_rectangle.collision_rectangle_list.color_get_blue.color_get_green.color_get_hue.color_get_red.color_get_saturation.color_get_value.colour_get_blue.colour_get_green.colour_get_hue.colour_get_red.colour_get_saturation.colour_get_value.cos.darccos.darcsin.darctan.darctan2.date_compare_date.date_compare_datetime.date_compare_time.date_create_datetime.date_current_datetime.date_date_of.date_date_string.date_datetime_string.date_day_span.date_days_in_month.date_days_in_year.date_get_day.date_get_day_of_year.date_get_hour.date_get_hour_of_year.date_get_minute.date_get_minute_of_year.date_get_month.date_get_second.date_get_second_of_year.date_get_timezone.date_get_week.date_get_weekday.date_get_year.date_hour_span.date_inc_day.date_inc_hour.date_inc_minute.date_inc_month.date_inc_second.date_inc_week.date_inc_year.date_is_today.date_leap_year.date_minute_span.date_month_span.date_second_span.date_set_timezone.date_time_of.date_time_string.date_valid_datetime.date_week_span.date_year_span.db_to_lin.dbg_add_font_glyphs.dbg_button.dbg_checkbox.dbg_color.dbg_colour.dbg_drop_down.dbg_same_line.dbg_section.dbg_section_delete.dbg_section_exists.dbg_slider.dbg_slider_int.dbg_sprite.dbg_text.dbg_text_input.dbg_view.dbg_view_delete.dbg_view_exists.dbg_watch.dcos.debug_event.debug_get_callstack.degtorad.device_get_tilt_x.device_get_tilt_y.device_get_tilt_z.device_is_keypad_open.device_mouse_check_button.device_mouse_check_button_pressed.device_mouse_check_button_released.device_mouse_dbclick_enable.device_mouse_raw_x.device_mouse_raw_y.device_mouse_x.device_mouse_x_to_gui.device_mouse_y.device_mouse_y_to_gui.directory_create.directory_destroy.directory_exists.display_get_dpi_x.display_get_dpi_y.display_get_frequency.display_get_gui_height.display_get_gui_width.display_get_height.display_get_orientation.display_get_sleep_margin.display_get_timing_method.display_get_width.display_mouse_get_x.display_mouse_get_y.display_mouse_set.display_reset.display_set_gui_maximise.display_set_gui_maximize.display_set_gui_size.display_set_sleep_margin.display_set_timing_method.display_set_ui_visibility.distance_to_object.distance_to_point.dot_product.dot_product_3d.dot_product_3d_normalised.dot_product_3d_normalized.dot_product_normalised.dot_product_normalized.draw_arrow.draw_button.draw_circle.draw_circle_color.draw_circle_colour.draw_clear.draw_clear_alpha.draw_ellipse.draw_ellipse_color.draw_ellipse_colour.draw_enable_drawevent.draw_enable_skeleton_blendmodes.draw_enable_swf_aa.draw_flush.draw_get_alpha.draw_get_color.draw_get_colour.draw_get_enable_skeleton_blendmodes.draw_get_font.draw_get_halign.draw_get_lighting.draw_get_swf_aa_level.draw_get_valign.draw_getpixel.draw_getpixel_ext.draw_healthbar.draw_highscore.draw_light_define_ambient.draw_light_define_direction.draw_light_define_point.draw_light_enable.draw_light_get.draw_light_get_ambient.draw_line.draw_line_color.draw_line_colour.draw_line_width.draw_line_width_color.draw_line_width_colour.draw_path.draw_point.draw_point_color.draw_point_colour.draw_primitive_begin.draw_primitive_begin_texture.draw_primitive_end.draw_rectangle.draw_rectangle_color.draw_rectangle_colour.draw_roundrect.draw_roundrect_color.draw_roundrect_color_ext.draw_roundrect_colour.draw_roundrect_colour_ext.draw_roundrect_ext.draw_self.draw_set_alpha.draw_set_circle_precision.draw_set_color.draw_set_colour.draw_set_font.draw_set_halign.draw_set_lighting.draw_set_swf_aa_level.draw_set_valign.draw_skeleton.draw_skeleton_collision.draw_skeleton_instance.draw_skeleton_time.draw_sprite.draw_sprite_ext.draw_sprite_general.draw_sprite_part.draw_sprite_part_ext.draw_sprite_pos.draw_sprite_stretched.draw_sprite_stretched_ext.draw_sprite_tiled.draw_sprite_tiled_ext.draw_surface.draw_surface_ext.draw_surface_general.draw_surface_part.draw_surface_part_ext.draw_surface_stretched.draw_surface_stretched_ext.draw_surface_tiled.draw_surface_tiled_ext.draw_text.draw_text_color.draw_text_colour.draw_text_ext.draw_text_ext_color.draw_text_ext_colour.draw_text_ext_transformed.draw_text_ext_transformed_color.draw_text_ext_transformed_colour.draw_text_transformed.draw_text_transformed_color.draw_text_transformed_colour.draw_texture_flush.draw_tile.draw_tilemap.draw_triangle.draw_triangle_color.draw_triangle_colour.draw_vertex.draw_vertex_color.draw_vertex_colour.draw_vertex_texture.draw_vertex_texture_color.draw_vertex_texture_colour.ds_exists.ds_grid_add.ds_grid_add_disk.ds_grid_add_grid_region.ds_grid_add_region.ds_grid_clear.ds_grid_copy.ds_grid_create.ds_grid_destroy.ds_grid_get.ds_grid_get_disk_max.ds_grid_get_disk_mean.ds_grid_get_disk_min.ds_grid_get_disk_sum.ds_grid_get_max.ds_grid_get_mean.ds_grid_get_min.ds_grid_get_sum.ds_grid_height.ds_grid_multiply.ds_grid_multiply_disk.ds_grid_multiply_grid_region.ds_grid_multiply_region.ds_grid_read.ds_grid_resize.ds_grid_set.ds_grid_set_disk.ds_grid_set_grid_region.ds_grid_set_region.ds_grid_shuffle.ds_grid_sort.ds_grid_to_mp_grid.ds_grid_value_disk_exists.ds_grid_value_disk_x.ds_grid_value_disk_y.ds_grid_value_exists.ds_grid_value_x.ds_grid_value_y.ds_grid_width.ds_grid_write.ds_list_add.ds_list_clear.ds_list_copy.ds_list_create.ds_list_delete.ds_list_destroy.ds_list_empty.ds_list_find_index.ds_list_find_value.ds_list_insert.ds_list_is_list.ds_list_is_map.ds_list_mark_as_list.ds_list_mark_as_map.ds_list_read.ds_list_replace.ds_list_set.ds_list_shuffle.ds_list_size.ds_list_sort.ds_list_write.ds_map_add.ds_map_add_list.ds_map_add_map.ds_map_clear.ds_map_copy.ds_map_create.ds_map_delete.ds_map_destroy.ds_map_empty.ds_map_exists.ds_map_find_first.ds_map_find_last.ds_map_find_next.ds_map_find_previous.ds_map_find_value.ds_map_is_list.ds_map_is_map.ds_map_keys_to_array.ds_map_read.ds_map_replace.ds_map_replace_list.ds_map_replace_map.ds_map_secure_load.ds_map_secure_load_buffer.ds_map_secure_save.ds_map_secure_save_buffer.ds_map_set.ds_map_size.ds_map_values_to_array.ds_map_write.ds_priority_add.ds_priority_change_priority.ds_priority_clear.ds_priority_copy.ds_priority_create.ds_priority_delete_max.ds_priority_delete_min.ds_priority_delete_value.ds_priority_destroy.ds_priority_empty.ds_priority_find_max.ds_priority_find_min.ds_priority_find_priority.ds_priority_read.ds_priority_size.ds_priority_write.ds_queue_clear.ds_queue_copy.ds_queue_create.ds_queue_dequeue.ds_queue_destroy.ds_queue_empty.ds_queue_enqueue.ds_queue_head.ds_queue_read.ds_queue_size.ds_queue_tail.ds_queue_write.ds_set_precision.ds_stack_clear.ds_stack_copy.ds_stack_create.ds_stack_destroy.ds_stack_empty.ds_stack_pop.ds_stack_push.ds_stack_read.ds_stack_size.ds_stack_top.ds_stack_write.dsin.dtan.effect_clear.effect_create_above.effect_create_below.effect_create_depth.effect_create_layer.environment_get_variable.event_inherited.event_perform.event_perform_async.event_perform_object.event_user.exception_unhandled_handler.exp.extension_exists.extension_get_option_count.extension_get_option_names.extension_get_option_value.extension_get_options.extension_get_version.external_call.external_define.external_free.file_attributes.file_bin_close.file_bin_open.file_bin_position.file_bin_read_byte.file_bin_rewrite.file_bin_seek.file_bin_size.file_bin_write_byte.file_copy.file_delete.file_exists.file_find_close.file_find_first.file_find_next.file_rename.file_text_close.file_text_eof.file_text_eoln.file_text_open_append.file_text_open_from_string.file_text_open_read.file_text_open_write.file_text_read_real.file_text_read_string.file_text_readln.file_text_write_real.file_text_write_string.file_text_writeln.filename_change_ext.filename_dir.filename_drive.filename_ext.filename_name.filename_path.floor.font_add.font_add_enable_aa.font_add_get_enable_aa.font_add_sprite.font_add_sprite_ext.font_cache_glyph.font_delete.font_enable_effects.font_enable_sdf.font_exists.font_get_bold.font_get_first.font_get_fontname.font_get_info.font_get_italic.font_get_last.font_get_name.font_get_sdf_enabled.font_get_sdf_spread.font_get_size.font_get_texture.font_get_uvs.font_replace_sprite.font_replace_sprite_ext.font_sdf_spread.font_set_cache_size.frac.fx_create.fx_get_name.fx_get_parameter.fx_get_parameter_names.fx_get_parameters.fx_get_single_layer.fx_set_parameter.fx_set_parameters.fx_set_single_layer.game_change.game_end.game_get_speed.game_load.game_load_buffer.game_restart.game_save.game_save_buffer.game_set_speed.gamepad_axis_count.gamepad_axis_value.gamepad_button_check.gamepad_button_check_pressed.gamepad_button_check_released.gamepad_button_count.gamepad_button_value.gamepad_get_axis_deadzone.gamepad_get_button_threshold.gamepad_get_description.gamepad_get_device_count.gamepad_get_guid.gamepad_get_mapping.gamepad_get_option.gamepad_hat_count.gamepad_hat_value.gamepad_is_connected.gamepad_is_supported.gamepad_remove_mapping.gamepad_set_axis_deadzone.gamepad_set_button_threshold.gamepad_set_color.gamepad_set_colour.gamepad_set_option.gamepad_set_vibration.gamepad_test_mapping.gc_collect.gc_enable.gc_get_stats.gc_get_target_frame_time.gc_is_enabled.gc_target_frame_time.gesture_double_tap_distance.gesture_double_tap_time.gesture_drag_distance.gesture_drag_time.gesture_flick_speed.gesture_get_double_tap_distance.gesture_get_double_tap_time.gesture_get_drag_distance.gesture_get_drag_time.gesture_get_flick_speed.gesture_get_pinch_angle_away.gesture_get_pinch_angle_towards.gesture_get_pinch_distance.gesture_get_rotate_angle.gesture_get_rotate_time.gesture_get_tap_count.gesture_pinch_angle_away.gesture_pinch_angle_towards.gesture_pinch_distance.gesture_rotate_angle.gesture_rotate_time.gesture_tap_count.get_integer.get_integer_async.get_login_async.get_open_filename.get_open_filename_ext.get_save_filename.get_save_filename_ext.get_string.get_string_async.get_timer.gif_add_surface.gif_open.gif_save.gif_save_buffer.gml_pragma.gml_release_mode.gpu_get_alphatestenable.gpu_get_alphatestref.gpu_get_blendenable.gpu_get_blendmode.gpu_get_blendmode_dest.gpu_get_blendmode_destalpha.gpu_get_blendmode_ext.gpu_get_blendmode_ext_sepalpha.gpu_get_blendmode_src.gpu_get_blendmode_srcalpha.gpu_get_colorwriteenable.gpu_get_colourwriteenable.gpu_get_cullmode.gpu_get_depth.gpu_get_fog.gpu_get_state.gpu_get_tex_filter.gpu_get_tex_filter_ext.gpu_get_tex_max_aniso.gpu_get_tex_max_aniso_ext.gpu_get_tex_max_mip.gpu_get_tex_max_mip_ext.gpu_get_tex_min_mip.gpu_get_tex_min_mip_ext.gpu_get_tex_mip_bias.gpu_get_tex_mip_bias_ext.gpu_get_tex_mip_enable.gpu_get_tex_mip_enable_ext.gpu_get_tex_mip_filter.gpu_get_tex_mip_filter_ext.gpu_get_tex_repeat.gpu_get_tex_repeat_ext.gpu_get_texfilter.gpu_get_texfilter_ext.gpu_get_texrepeat.gpu_get_texrepeat_ext.gpu_get_zfunc.gpu_get_ztestenable.gpu_get_zwriteenable.gpu_pop_state.gpu_push_state.gpu_set_alphatestenable.gpu_set_alphatestref.gpu_set_blendenable.gpu_set_blendmode.gpu_set_blendmode_ext.gpu_set_blendmode_ext_sepalpha.gpu_set_colorwriteenable.gpu_set_colourwriteenable.gpu_set_cullmode.gpu_set_depth.gpu_set_fog.gpu_set_state.gpu_set_tex_filter.gpu_set_tex_filter_ext.gpu_set_tex_max_aniso.gpu_set_tex_max_aniso_ext.gpu_set_tex_max_mip.gpu_set_tex_max_mip_ext.gpu_set_tex_min_mip.gpu_set_tex_min_mip_ext.gpu_set_tex_mip_bias.gpu_set_tex_mip_bias_ext.gpu_set_tex_mip_enable.gpu_set_tex_mip_enable_ext.gpu_set_tex_mip_filter.gpu_set_tex_mip_filter_ext.gpu_set_tex_repeat.gpu_set_tex_repeat_ext.gpu_set_texfilter.gpu_set_texfilter_ext.gpu_set_texrepeat.gpu_set_texrepeat_ext.gpu_set_zfunc.gpu_set_ztestenable.gpu_set_zwriteenable.handle_parse.highscore_add.highscore_clear.highscore_name.highscore_value.http_get.http_get_file.http_get_request_crossorigin.http_post_string.http_request.http_set_request_crossorigin.iap_acquire.iap_activate.iap_consume.iap_enumerate_products.iap_product_details.iap_purchase_details.iap_restore_all.iap_status.ini_close.ini_key_delete.ini_key_exists.ini_open.ini_open_from_string.ini_read_real.ini_read_string.ini_section_delete.ini_section_exists.ini_write_real.ini_write_string.instance_activate_all.instance_activate_layer.instance_activate_object.instance_activate_region.instance_change.instance_copy.instance_create_depth.instance_create_layer.instance_deactivate_all.instance_deactivate_layer.instance_deactivate_object.instance_deactivate_region.instance_destroy.instance_exists.instance_find.instance_furthest.instance_id_get.instance_nearest.instance_number.instance_place.instance_place_list.instance_position.instance_position_list.instanceof.int64.io_clear.irandom.irandom_range.is_array.is_bool.is_callable.is_debug_overlay_open.is_handle.is_infinity.is_instanceof.is_int32.is_int64.is_keyboard_used_debug_overlay.is_method.is_mouse_over_debug_overlay.is_nan.is_numeric.is_ptr.is_real.is_string.is_struct.is_undefined.json_decode.json_encode.json_parse.json_stringify.keyboard_check.keyboard_check_direct.keyboard_check_pressed.keyboard_check_released.keyboard_clear.keyboard_get_map.keyboard_get_numlock.keyboard_key_press.keyboard_key_release.keyboard_set_map.keyboard_set_numlock.keyboard_unset_map.keyboard_virtual_height.keyboard_virtual_hide.keyboard_virtual_show.keyboard_virtual_status.layer_add_instance.layer_background_alpha.layer_background_blend.layer_background_change.layer_background_create.layer_background_destroy.layer_background_exists.layer_background_get_alpha.layer_background_get_blend.layer_background_get_htiled.layer_background_get_id.layer_background_get_index.layer_background_get_speed.layer_background_get_sprite.layer_background_get_stretch.layer_background_get_visible.layer_background_get_vtiled.layer_background_get_xscale.layer_background_get_yscale.layer_background_htiled.layer_background_index.layer_background_speed.layer_background_sprite.layer_background_stretch.layer_background_visible.layer_background_vtiled.layer_background_xscale.layer_background_yscale.layer_clear_fx.layer_create.layer_depth.layer_destroy.layer_destroy_instances.layer_element_move.layer_enable_fx.layer_exists.layer_force_draw_depth.layer_fx_is_enabled.layer_get_all.layer_get_all_elements.layer_get_depth.layer_get_element_layer.layer_get_element_type.layer_get_forced_depth.layer_get_fx.layer_get_hspeed.layer_get_id.layer_get_id_at_depth.layer_get_name.layer_get_script_begin.layer_get_script_end.layer_get_shader.layer_get_target_room.layer_get_visible.layer_get_vspeed.layer_get_x.layer_get_y.layer_has_instance.layer_hspeed.layer_instance_get_instance.layer_is_draw_depth_forced.layer_reset_target_room.layer_script_begin.layer_script_end.layer_sequence_angle.layer_sequence_create.layer_sequence_destroy.layer_sequence_exists.layer_sequence_get_angle.layer_sequence_get_headdir.layer_sequence_get_headpos.layer_sequence_get_instance.layer_sequence_get_length.layer_sequence_get_sequence.layer_sequence_get_speedscale.layer_sequence_get_x.layer_sequence_get_xscale.layer_sequence_get_y.layer_sequence_get_yscale.layer_sequence_headdir.layer_sequence_headpos.layer_sequence_is_finished.layer_sequence_is_paused.layer_sequence_pause.layer_sequence_play.layer_sequence_speedscale.layer_sequence_x.layer_sequence_xscale.layer_sequence_y.layer_sequence_yscale.layer_set_fx.layer_set_target_room.layer_set_visible.layer_shader.layer_sprite_alpha.layer_sprite_angle.layer_sprite_blend.layer_sprite_change.layer_sprite_create.layer_sprite_destroy.layer_sprite_exists.layer_sprite_get_alpha.layer_sprite_get_angle.layer_sprite_get_blend.layer_sprite_get_id.layer_sprite_get_index.layer_sprite_get_speed.layer_sprite_get_sprite.layer_sprite_get_x.layer_sprite_get_xscale.layer_sprite_get_y.layer_sprite_get_yscale.layer_sprite_index.layer_sprite_speed.layer_sprite_x.layer_sprite_xscale.layer_sprite_y.layer_sprite_yscale.layer_tile_alpha.layer_tile_blend.layer_tile_change.layer_tile_create.layer_tile_destroy.layer_tile_exists.layer_tile_get_alpha.layer_tile_get_blend.layer_tile_get_region.layer_tile_get_sprite.layer_tile_get_visible.layer_tile_get_x.layer_tile_get_xscale.layer_tile_get_y.layer_tile_get_yscale.layer_tile_region.layer_tile_visible.layer_tile_x.layer_tile_xscale.layer_tile_y.layer_tile_yscale.layer_tilemap_create.layer_tilemap_destroy.layer_tilemap_exists.layer_tilemap_get_id.layer_vspeed.layer_x.layer_y.lengthdir_x.lengthdir_y.lerp.lin_to_db.ln.load_csv.log10.log2.logn.make_color_hsv.make_color_rgb.make_colour_hsv.make_colour_rgb.math_get_epsilon.math_set_epsilon.matrix_build.matrix_build_identity.matrix_build_lookat.matrix_build_projection_ortho.matrix_build_projection_perspective.matrix_build_projection_perspective_fov.matrix_get.matrix_multiply.matrix_set.matrix_stack_clear.matrix_stack_is_empty.matrix_stack_pop.matrix_stack_push.matrix_stack_set.matrix_stack_top.matrix_transform_vertex.max.md5_file.md5_string_unicode.md5_string_utf8.mean.median.merge_color.merge_colour.method.method_call.method_get_index.method_get_self.min.motion_add.motion_set.mouse_check_button.mouse_check_button_pressed.mouse_check_button_released.mouse_clear.mouse_wheel_down.mouse_wheel_up.move_and_collide.move_bounce_all.move_bounce_solid.move_contact_all.move_contact_solid.move_outside_all.move_outside_solid.move_random.move_snap.move_towards_point.move_wrap.mp_grid_add_cell.mp_grid_add_instances.mp_grid_add_rectangle.mp_grid_clear_all.mp_grid_clear_cell.mp_grid_clear_rectangle.mp_grid_create.mp_grid_destroy.mp_grid_draw.mp_grid_get_cell.mp_grid_path.mp_grid_to_ds_grid.mp_linear_path.mp_linear_path_object.mp_linear_step.mp_linear_step_object.mp_potential_path.mp_potential_path_object.mp_potential_settings.mp_potential_step.mp_potential_step_object.nameof.network_connect.network_connect_async.network_connect_raw.network_connect_raw_async.network_create_server.network_create_server_raw.network_create_socket.network_create_socket_ext.network_destroy.network_resolve.network_send_broadcast.network_send_packet.network_send_raw.network_send_udp.network_send_udp_raw.network_set_config.network_set_timeout.object_exists.object_get_mask.object_get_name.object_get_parent.object_get_persistent.object_get_physics.object_get_solid.object_get_sprite.object_get_visible.object_is_ancestor.object_set_mask.object_set_persistent.object_set_solid.object_set_sprite.object_set_visible.ord.os_check_permission.os_get_config.os_get_info.os_get_language.os_get_region.os_is_network_connected.os_is_paused.os_lock_orientation.os_powersave_enable.os_request_permission.os_set_orientation_lock.parameter_count.parameter_string.part_emitter_burst.part_emitter_clear.part_emitter_create.part_emitter_delay.part_emitter_destroy.part_emitter_destroy_all.part_emitter_enable.part_emitter_exists.part_emitter_interval.part_emitter_region.part_emitter_relative.part_emitter_stream.part_particles_burst.part_particles_clear.part_particles_count.part_particles_create.part_particles_create_color.part_particles_create_colour.part_system_angle.part_system_automatic_draw.part_system_automatic_update.part_system_clear.part_system_color.part_system_colour.part_system_create.part_system_create_layer.part_system_depth.part_system_destroy.part_system_draw_order.part_system_drawit.part_system_exists.part_system_get_info.part_system_get_layer.part_system_global_space.part_system_layer.part_system_position.part_system_update.part_type_alpha1.part_type_alpha2.part_type_alpha3.part_type_blend.part_type_clear.part_type_color1.part_type_color2.part_type_color3.part_type_color_hsv.part_type_color_mix.part_type_color_rgb.part_type_colour1.part_type_colour2.part_type_colour3.part_type_colour_hsv.part_type_colour_mix.part_type_colour_rgb.part_type_create.part_type_death.part_type_destroy.part_type_direction.part_type_exists.part_type_gravity.part_type_life.part_type_orientation.part_type_scale.part_type_shape.part_type_size.part_type_size_x.part_type_size_y.part_type_speed.part_type_sprite.part_type_step.part_type_subimage.particle_exists.particle_get_info.path_add.path_add_point.path_append.path_assign.path_change_point.path_clear_points.path_delete.path_delete_point.path_duplicate.path_end.path_exists.path_flip.path_get_closed.path_get_kind.path_get_length.path_get_name.path_get_number.path_get_point_speed.path_get_point_x.path_get_point_y.path_get_precision.path_get_speed.path_get_x.path_get_y.path_insert_point.path_mirror.path_rescale.path_reverse.path_rotate.path_set_closed.path_set_kind.path_set_precision.path_shift.path_start.physics_apply_angular_impulse.physics_apply_force.physics_apply_impulse.physics_apply_local_force.physics_apply_local_impulse.physics_apply_torque.physics_draw_debug.physics_fixture_add_point.physics_fixture_bind.physics_fixture_bind_ext.physics_fixture_create.physics_fixture_delete.physics_fixture_set_angular_damping.physics_fixture_set_awake.physics_fixture_set_box_shape.physics_fixture_set_chain_shape.physics_fixture_set_circle_shape.physics_fixture_set_collision_group.physics_fixture_set_density.physics_fixture_set_edge_shape.physics_fixture_set_friction.physics_fixture_set_kinematic.physics_fixture_set_linear_damping.physics_fixture_set_polygon_shape.physics_fixture_set_restitution.physics_fixture_set_sensor.physics_get_density.physics_get_friction.physics_get_restitution.physics_joint_delete.physics_joint_distance_create.physics_joint_enable_motor.physics_joint_friction_create.physics_joint_gear_create.physics_joint_get_value.physics_joint_prismatic_create.physics_joint_pulley_create.physics_joint_revolute_create.physics_joint_rope_create.physics_joint_set_value.physics_joint_weld_create.physics_joint_wheel_create.physics_mass_properties.physics_particle_count.physics_particle_create.physics_particle_delete.physics_particle_delete_region_box.physics_particle_delete_region_circle.physics_particle_delete_region_poly.physics_particle_draw.physics_particle_draw_ext.physics_particle_get_damping.physics_particle_get_data.physics_particle_get_data_particle.physics_particle_get_density.physics_particle_get_gravity_scale.physics_particle_get_group_flags.physics_particle_get_max_count.physics_particle_get_radius.physics_particle_group_add_point.physics_particle_group_begin.physics_particle_group_box.physics_particle_group_circle.physics_particle_group_count.physics_particle_group_delete.physics_particle_group_end.physics_particle_group_get_ang_vel.physics_particle_group_get_angle.physics_particle_group_get_centre_x.physics_particle_group_get_centre_y.physics_particle_group_get_data.physics_particle_group_get_inertia.physics_particle_group_get_mass.physics_particle_group_get_vel_x.physics_particle_group_get_vel_y.physics_particle_group_get_x.physics_particle_group_get_y.physics_particle_group_join.physics_particle_group_polygon.physics_particle_set_category_flags.physics_particle_set_damping.physics_particle_set_density.physics_particle_set_flags.physics_particle_set_gravity_scale.physics_particle_set_group_flags.physics_particle_set_max_count.physics_particle_set_radius.physics_pause_enable.physics_remove_fixture.physics_set_density.physics_set_friction.physics_set_restitution.physics_test_overlap.physics_world_create.physics_world_draw_debug.physics_world_gravity.physics_world_update_iterations.physics_world_update_speed.place_empty.place_free.place_meeting.place_snapped.point_direction.point_distance.point_distance_3d.point_in_circle.point_in_rectangle.point_in_triangle.position_change.position_destroy.position_empty.position_meeting.power.ptr.radtodeg.random.random_get_seed.random_range.random_set_seed.randomise.randomize.real.rectangle_in_circle.rectangle_in_rectangle.rectangle_in_triangle.ref_create.rollback_chat.rollback_create_game.rollback_define_extra_network_latency.rollback_define_input.rollback_define_input_frame_delay.rollback_define_mock_input.rollback_define_player.rollback_display_events.rollback_get_info.rollback_get_input.rollback_get_player_prefs.rollback_join_game.rollback_leave_game.rollback_set_player_prefs.rollback_start_game.rollback_sync_on_frame.rollback_use_late_join.rollback_use_manual_start.rollback_use_player_prefs.rollback_use_random_input.room_add.room_assign.room_duplicate.room_exists.room_get_camera.room_get_info.room_get_name.room_get_viewport.room_goto.room_goto_next.room_goto_previous.room_instance_add.room_instance_clear.room_next.room_previous.room_restart.room_set_camera.room_set_height.room_set_persistent.room_set_view_enabled.room_set_viewport.room_set_width.round.scheduler_resolution_get.scheduler_resolution_set.screen_save.screen_save_part.script_execute.script_execute_ext.script_exists.script_get_name.sequence_create.sequence_destroy.sequence_exists.sequence_get.sequence_get_objects.sequence_instance_override_object.sequence_keyframe_new.sequence_keyframedata_new.sequence_track_new.sha1_file.sha1_string_unicode.sha1_string_utf8.shader_current.shader_enable_corner_id.shader_get_name.shader_get_sampler_index.shader_get_uniform.shader_is_compiled.shader_reset.shader_set.shader_set_uniform_f.shader_set_uniform_f_array.shader_set_uniform_f_buffer.shader_set_uniform_i.shader_set_uniform_i_array.shader_set_uniform_matrix.shader_set_uniform_matrix_array.shaders_are_supported.shop_leave_rating.show_debug_message.show_debug_message_ext.show_debug_overlay.show_error.show_message.show_message_async.show_question.show_question_async.sign.sin.skeleton_animation_clear.skeleton_animation_get.skeleton_animation_get_duration.skeleton_animation_get_event_frames.skeleton_animation_get_ext.skeleton_animation_get_frame.skeleton_animation_get_frames.skeleton_animation_get_position.skeleton_animation_is_finished.skeleton_animation_is_looping.skeleton_animation_list.skeleton_animation_mix.skeleton_animation_set.skeleton_animation_set_ext.skeleton_animation_set_frame.skeleton_animation_set_position.skeleton_attachment_create.skeleton_attachment_create_color.skeleton_attachment_create_colour.skeleton_attachment_destroy.skeleton_attachment_exists.skeleton_attachment_get.skeleton_attachment_replace.skeleton_attachment_replace_color.skeleton_attachment_replace_colour.skeleton_attachment_set.skeleton_bone_data_get.skeleton_bone_data_set.skeleton_bone_list.skeleton_bone_state_get.skeleton_bone_state_set.skeleton_collision_draw_set.skeleton_find_slot.skeleton_get_bounds.skeleton_get_minmax.skeleton_get_num_bounds.skeleton_skin_create.skeleton_skin_get.skeleton_skin_list.skeleton_skin_set.skeleton_slot_alpha_get.skeleton_slot_color_get.skeleton_slot_color_set.skeleton_slot_colour_get.skeleton_slot_colour_set.skeleton_slot_data.skeleton_slot_data_instance.skeleton_slot_list.sprite_add.sprite_add_ext.sprite_add_from_surface.sprite_assign.sprite_collision_mask.sprite_create_from_surface.sprite_delete.sprite_duplicate.sprite_exists.sprite_flush.sprite_flush_multi.sprite_get_bbox_bottom.sprite_get_bbox_left.sprite_get_bbox_mode.sprite_get_bbox_right.sprite_get_bbox_top.sprite_get_height.sprite_get_info.sprite_get_name.sprite_get_nineslice.sprite_get_number.sprite_get_speed.sprite_get_speed_type.sprite_get_texture.sprite_get_tpe.sprite_get_uvs.sprite_get_width.sprite_get_xoffset.sprite_get_yoffset.sprite_merge.sprite_nineslice_create.sprite_prefetch.sprite_prefetch_multi.sprite_replace.sprite_save.sprite_save_strip.sprite_set_alpha_from_sprite.sprite_set_bbox.sprite_set_bbox_mode.sprite_set_cache_size.sprite_set_cache_size_ext.sprite_set_nineslice.sprite_set_offset.sprite_set_speed.sqr.sqrt.static_get.static_set.string.string_byte_at.string_byte_length.string_char_at.string_concat.string_concat_ext.string_copy.string_count.string_delete.string_digits.string_ends_with.string_ext.string_foreach.string_format.string_hash_to_newline.string_height.string_height_ext.string_insert.string_join.string_join_ext.string_last_pos.string_last_pos_ext.string_length.string_letters.string_lettersdigits.string_lower.string_ord_at.string_pos.string_pos_ext.string_repeat.string_replace.string_replace_all.string_set_byte_at.string_split.string_split_ext.string_starts_with.string_trim.string_trim_end.string_trim_start.string_upper.string_width.string_width_ext.struct_exists.struct_foreach.struct_get.struct_get_from_hash.struct_get_names.struct_names_count.struct_remove.struct_set.struct_set_from_hash.surface_copy.surface_copy_part.surface_create.surface_create_ext.surface_depth_disable.surface_exists.surface_format_is_supported.surface_free.surface_get_depth_disable.surface_get_format.surface_get_height.surface_get_target.surface_get_target_ext.surface_get_texture.surface_get_width.surface_getpixel.surface_getpixel_ext.surface_reset_target.surface_resize.surface_save.surface_save_part.surface_set_target.surface_set_target_ext.tag_get_asset_ids.tag_get_assets.tan.texture_debug_messages.texture_flush.texture_get_height.texture_get_texel_height.texture_get_texel_width.texture_get_uvs.texture_get_width.texture_global_scale.texture_is_ready.texture_prefetch.texture_set_stage.texturegroup_get_fonts.texturegroup_get_names.texturegroup_get_sprites.texturegroup_get_status.texturegroup_get_textures.texturegroup_get_tilesets.texturegroup_load.texturegroup_set_mode.texturegroup_unload.tile_get_empty.tile_get_flip.tile_get_index.tile_get_mirror.tile_get_rotate.tile_set_empty.tile_set_flip.tile_set_index.tile_set_mirror.tile_set_rotate.tilemap_clear.tilemap_get.tilemap_get_at_pixel.tilemap_get_cell_x_at_pixel.tilemap_get_cell_y_at_pixel.tilemap_get_frame.tilemap_get_global_mask.tilemap_get_height.tilemap_get_mask.tilemap_get_tile_height.tilemap_get_tile_width.tilemap_get_tileset.tilemap_get_width.tilemap_get_x.tilemap_get_y.tilemap_set.tilemap_set_at_pixel.tilemap_set_global_mask.tilemap_set_height.tilemap_set_mask.tilemap_set_width.tilemap_tileset.tilemap_x.tilemap_y.tileset_get_info.tileset_get_name.tileset_get_texture.tileset_get_uvs.time_bpm_to_seconds.time_seconds_to_bpm.time_source_create.time_source_destroy.time_source_exists.time_source_get_children.time_source_get_parent.time_source_get_period.time_source_get_reps_completed.time_source_get_reps_remaining.time_source_get_state.time_source_get_time_remaining.time_source_get_units.time_source_pause.time_source_reconfigure.time_source_reset.time_source_resume.time_source_start.time_source_stop.timeline_add.timeline_clear.timeline_delete.timeline_exists.timeline_get_name.timeline_max_moment.timeline_moment_add_script.timeline_moment_clear.timeline_size.typeof.url_get_domain.url_open.url_open_ext.url_open_full.uwp_device_touchscreen_available.uwp_livetile_badge_clear.uwp_livetile_badge_notification.uwp_livetile_notification_begin.uwp_livetile_notification_end.uwp_livetile_notification_expiry.uwp_livetile_notification_image_add.uwp_livetile_notification_secondary_begin.uwp_livetile_notification_tag.uwp_livetile_notification_template_add.uwp_livetile_notification_text_add.uwp_livetile_queue_enable.uwp_livetile_tile_clear.uwp_secondarytile_badge_clear.uwp_secondarytile_badge_notification.uwp_secondarytile_delete.uwp_secondarytile_pin.uwp_secondarytile_tile_clear.variable_clone.variable_get_hash.variable_global_exists.variable_global_get.variable_global_set.variable_instance_exists.variable_instance_get.variable_instance_get_names.variable_instance_names_count.variable_instance_set.variable_struct_exists.variable_struct_get.variable_struct_get_names.variable_struct_names_count.variable_struct_remove.variable_struct_set.vertex_argb.vertex_begin.vertex_color.vertex_colour.vertex_create_buffer.vertex_create_buffer_ext.vertex_create_buffer_from_buffer.vertex_create_buffer_from_buffer_ext.vertex_delete_buffer.vertex_end.vertex_float1.vertex_float2.vertex_float3.vertex_float4.vertex_format_add_color.vertex_format_add_colour.vertex_format_add_custom.vertex_format_add_normal.vertex_format_add_position.vertex_format_add_position_3d.vertex_format_add_texcoord.vertex_format_begin.vertex_format_delete.vertex_format_end.vertex_format_get_info.vertex_freeze.vertex_get_buffer_size.vertex_get_number.vertex_normal.vertex_position.vertex_position_3d.vertex_submit.vertex_submit_ext.vertex_texcoord.vertex_ubyte4.vertex_update_buffer_from_buffer.vertex_update_buffer_from_vertex.video_close.video_draw.video_enable_loop.video_get_duration.video_get_format.video_get_position.video_get_status.video_get_volume.video_is_looping.video_open.video_pause.video_resume.video_seek_to.video_set_volume.view_get_camera.view_get_hport.view_get_surface_id.view_get_visible.view_get_wport.view_get_xport.view_get_yport.view_set_camera.view_set_hport.view_set_surface_id.view_set_visible.view_set_wport.view_set_xport.view_set_yport.virtual_key_add.virtual_key_delete.virtual_key_hide.virtual_key_show.wallpaper_set_config.wallpaper_set_subscriptions.weak_ref_alive.weak_ref_any_alive.weak_ref_create.window_center.window_device.window_enable_borderless_fullscreen.window_get_borderless_fullscreen.window_get_caption.window_get_color.window_get_colour.window_get_cursor.window_get_fullscreen.window_get_height.window_get_showborder.window_get_visible_rects.window_get_width.window_get_x.window_get_y.window_handle.window_has_focus.window_mouse_get_delta_x.window_mouse_get_delta_y.window_mouse_get_locked.window_mouse_get_x.window_mouse_get_y.window_mouse_set.window_mouse_set_locked.window_set_caption.window_set_color.window_set_colour.window_set_cursor.window_set_fullscreen.window_set_max_height.window_set_max_width.window_set_min_height.window_set_min_width.window_set_position.window_set_rectangle.window_set_showborder.window_set_size.window_view_mouse_get_x.window_view_mouse_get_y.window_views_mouse_get_x.window_views_mouse_get_y.winphone_tile_background_color.winphone_tile_background_colour.zip_add_file.zip_create.zip_save.zip_unzip.zip_unzip_async`.split(`.`),symbol:`AudioEffect.AudioEffectType.AudioLFOType.GM_build_date.GM_build_type.GM_is_sandboxed.GM_project_filename.GM_runtime_version.GM_version.NaN._GMFILE_._GMFUNCTION_._GMLINE_.alignmentH.alignmentV.all.animcurvetype_bezier.animcurvetype_catmullrom.animcurvetype_linear.asset_animationcurve.asset_font.asset_object.asset_path.asset_room.asset_script.asset_sequence.asset_shader.asset_sound.asset_sprite.asset_tiles.asset_timeline.asset_unknown.audio_3D.audio_bus_main.audio_falloff_exponent_distance.audio_falloff_exponent_distance_clamped.audio_falloff_exponent_distance_scaled.audio_falloff_inverse_distance.audio_falloff_inverse_distance_clamped.audio_falloff_inverse_distance_scaled.audio_falloff_linear_distance.audio_falloff_linear_distance_clamped.audio_falloff_none.audio_mono.audio_stereo.bboxkind_diamond.bboxkind_ellipse.bboxkind_precise.bboxkind_rectangular.bboxmode_automatic.bboxmode_fullimage.bboxmode_manual.bm_add.bm_dest_alpha.bm_dest_color.bm_dest_colour.bm_inv_dest_alpha.bm_inv_dest_color.bm_inv_dest_colour.bm_inv_src_alpha.bm_inv_src_color.bm_inv_src_colour.bm_max.bm_normal.bm_one.bm_src_alpha.bm_src_alpha_sat.bm_src_color.bm_src_colour.bm_subtract.bm_zero.browser_chrome.browser_edge.browser_firefox.browser_ie.browser_ie_mobile.browser_not_a_browser.browser_opera.browser_safari.browser_safari_mobile.browser_tizen.browser_unknown.browser_windows_store.buffer_bool.buffer_f16.buffer_f32.buffer_f64.buffer_fast.buffer_fixed.buffer_grow.buffer_s16.buffer_s32.buffer_s8.buffer_seek_end.buffer_seek_relative.buffer_seek_start.buffer_string.buffer_text.buffer_u16.buffer_u32.buffer_u64.buffer_u8.buffer_vbuffer.buffer_wrap.c_aqua.c_black.c_blue.c_dkgray.c_dkgrey.c_fuchsia.c_gray.c_green.c_grey.c_lime.c_ltgray.c_ltgrey.c_maroon.c_navy.c_olive.c_orange.c_purple.c_red.c_silver.c_teal.c_white.c_yellow.cache_directory.characterSpacing.cmpfunc_always.cmpfunc_equal.cmpfunc_greater.cmpfunc_greaterequal.cmpfunc_less.cmpfunc_lessequal.cmpfunc_never.cmpfunc_notequal.coreColor.coreColour.cr_appstart.cr_arrow.cr_beam.cr_cross.cr_default.cr_drag.cr_handpoint.cr_hourglass.cr_none.cr_size_all.cr_size_nesw.cr_size_ns.cr_size_nwse.cr_size_we.cr_uparrow.cull_clockwise.cull_counterclockwise.cull_noculling.device_emulator.device_ios_ipad.device_ios_ipad_retina.device_ios_iphone.device_ios_iphone5.device_ios_iphone6.device_ios_iphone6plus.device_ios_iphone_retina.device_ios_unknown.device_tablet.display_landscape.display_landscape_flipped.display_portrait.display_portrait_flipped.dll_cdecl.dll_stdcall.dropShadowEnabled.dropShadowEnabled.ds_type_grid.ds_type_list.ds_type_map.ds_type_priority.ds_type_queue.ds_type_stack.ef_cloud.ef_ellipse.ef_explosion.ef_firework.ef_flare.ef_rain.ef_ring.ef_smoke.ef_smokeup.ef_snow.ef_spark.ef_star.effectsEnabled.effectsEnabled.ev_alarm.ev_animation_end.ev_animation_event.ev_animation_update.ev_async_audio_playback.ev_async_audio_playback_ended.ev_async_audio_recording.ev_async_dialog.ev_async_push_notification.ev_async_save_load.ev_async_save_load.ev_async_social.ev_async_system_event.ev_async_web.ev_async_web_cloud.ev_async_web_iap.ev_async_web_image_load.ev_async_web_networking.ev_async_web_steam.ev_audio_playback.ev_audio_playback_ended.ev_audio_recording.ev_boundary.ev_boundary_view0.ev_boundary_view1.ev_boundary_view2.ev_boundary_view3.ev_boundary_view4.ev_boundary_view5.ev_boundary_view6.ev_boundary_view7.ev_broadcast_message.ev_cleanup.ev_collision.ev_create.ev_destroy.ev_dialog_async.ev_draw.ev_draw_begin.ev_draw_end.ev_draw_normal.ev_draw_post.ev_draw_pre.ev_end_of_path.ev_game_end.ev_game_start.ev_gesture.ev_gesture_double_tap.ev_gesture_drag_end.ev_gesture_drag_start.ev_gesture_dragging.ev_gesture_flick.ev_gesture_pinch_end.ev_gesture_pinch_in.ev_gesture_pinch_out.ev_gesture_pinch_start.ev_gesture_rotate_end.ev_gesture_rotate_start.ev_gesture_rotating.ev_gesture_tap.ev_global_gesture_double_tap.ev_global_gesture_drag_end.ev_global_gesture_drag_start.ev_global_gesture_dragging.ev_global_gesture_flick.ev_global_gesture_pinch_end.ev_global_gesture_pinch_in.ev_global_gesture_pinch_out.ev_global_gesture_pinch_start.ev_global_gesture_rotate_end.ev_global_gesture_rotate_start.ev_global_gesture_rotating.ev_global_gesture_tap.ev_global_left_button.ev_global_left_press.ev_global_left_release.ev_global_middle_button.ev_global_middle_press.ev_global_middle_release.ev_global_right_button.ev_global_right_press.ev_global_right_release.ev_gui.ev_gui_begin.ev_gui_end.ev_joystick1_button1.ev_joystick1_button2.ev_joystick1_button3.ev_joystick1_button4.ev_joystick1_button5.ev_joystick1_button6.ev_joystick1_button7.ev_joystick1_button8.ev_joystick1_down.ev_joystick1_left.ev_joystick1_right.ev_joystick1_up.ev_joystick2_button1.ev_joystick2_button2.ev_joystick2_button3.ev_joystick2_button4.ev_joystick2_button5.ev_joystick2_button6.ev_joystick2_button7.ev_joystick2_button8.ev_joystick2_down.ev_joystick2_left.ev_joystick2_right.ev_joystick2_up.ev_keyboard.ev_keypress.ev_keyrelease.ev_left_button.ev_left_press.ev_left_release.ev_middle_button.ev_middle_press.ev_middle_release.ev_mouse.ev_mouse_enter.ev_mouse_leave.ev_mouse_wheel_down.ev_mouse_wheel_up.ev_no_button.ev_no_more_health.ev_no_more_lives.ev_other.ev_outside.ev_outside_view0.ev_outside_view1.ev_outside_view2.ev_outside_view3.ev_outside_view4.ev_outside_view5.ev_outside_view6.ev_outside_view7.ev_pre_create.ev_push_notification.ev_right_button.ev_right_press.ev_right_release.ev_room_end.ev_room_start.ev_social.ev_step.ev_step_begin.ev_step_end.ev_step_normal.ev_system_event.ev_trigger.ev_user0.ev_user1.ev_user10.ev_user11.ev_user12.ev_user13.ev_user14.ev_user15.ev_user2.ev_user3.ev_user4.ev_user5.ev_user6.ev_user7.ev_user8.ev_user9.ev_web_async.ev_web_cloud.ev_web_iap.ev_web_image_load.ev_web_networking.ev_web_sound_load.ev_web_steam.fa_archive.fa_bottom.fa_center.fa_directory.fa_hidden.fa_left.fa_middle.fa_none.fa_readonly.fa_right.fa_sysfile.fa_top.fa_volumeid.false.frameSizeX.frameSizeY.gamespeed_fps.gamespeed_microseconds.global.glowColor.glowColour.glowEnabled.glowEnabled.glowEnd.glowStart.gp_axis_acceleration_x.gp_axis_acceleration_y.gp_axis_acceleration_z.gp_axis_angular_velocity_x.gp_axis_angular_velocity_y.gp_axis_angular_velocity_z.gp_axis_orientation_w.gp_axis_orientation_x.gp_axis_orientation_y.gp_axis_orientation_z.gp_axislh.gp_axislv.gp_axisrh.gp_axisrv.gp_face1.gp_face2.gp_face3.gp_face4.gp_padd.gp_padl.gp_padr.gp_padu.gp_select.gp_shoulderl.gp_shoulderlb.gp_shoulderr.gp_shoulderrb.gp_start.gp_stickl.gp_stickr.iap_available.iap_canceled.iap_ev_consume.iap_ev_product.iap_ev_purchase.iap_ev_restore.iap_ev_storeload.iap_failed.iap_purchased.iap_refunded.iap_status_available.iap_status_loading.iap_status_processing.iap_status_restoring.iap_status_unavailable.iap_status_uninitialised.iap_storeload_failed.iap_storeload_ok.iap_unavailable.infinity.kbv_autocapitalize_characters.kbv_autocapitalize_none.kbv_autocapitalize_sentences.kbv_autocapitalize_words.kbv_returnkey_continue.kbv_returnkey_default.kbv_returnkey_done.kbv_returnkey_emergency.kbv_returnkey_go.kbv_returnkey_google.kbv_returnkey_join.kbv_returnkey_next.kbv_returnkey_route.kbv_returnkey_search.kbv_returnkey_send.kbv_returnkey_yahoo.kbv_type_ascii.kbv_type_default.kbv_type_email.kbv_type_numbers.kbv_type_phone.kbv_type_phone_name.kbv_type_url.layerelementtype_background.layerelementtype_instance.layerelementtype_oldtilemap.layerelementtype_particlesystem.layerelementtype_sequence.layerelementtype_sprite.layerelementtype_tile.layerelementtype_tilemap.layerelementtype_undefined.leaderboard_type_number.leaderboard_type_time_mins_secs.lighttype_dir.lighttype_point.lineSpacing.m_axisx.m_axisx_gui.m_axisy.m_axisy_gui.m_scroll_down.m_scroll_up.matrix_projection.matrix_view.matrix_world.mb_any.mb_left.mb_middle.mb_none.mb_right.mb_side1.mb_side2.mip_markedonly.mip_off.mip_on.network_config_avoid_time_wait.network_config_connect_timeout.network_config_disable_multicast.network_config_disable_reliable_udp.network_config_enable_multicast.network_config_enable_reliable_udp.network_config_use_non_blocking_socket.network_config_websocket_protocol.network_connect_active.network_connect_blocking.network_connect_nonblocking.network_connect_none.network_connect_passive.network_send_binary.network_send_text.network_socket_bluetooth.network_socket_tcp.network_socket_udp.network_socket_ws.network_socket_wss.network_type_connect.network_type_data.network_type_disconnect.network_type_down.network_type_non_blocking_connect.network_type_up.network_type_up_failed.nineslice_blank.nineslice_bottom.nineslice_center.nineslice_centre.nineslice_hide.nineslice_left.nineslice_mirror.nineslice_repeat.nineslice_right.nineslice_stretch.nineslice_top.noone.of_challenge_lose.of_challenge_tie.of_challenge_win.os_android.os_gdk.os_gxgames.os_ios.os_linux.os_macosx.os_operagx.os_permission_denied.os_permission_denied_dont_request.os_permission_granted.os_ps3.os_ps4.os_ps5.os_psvita.os_switch.os_tvos.os_unknown.os_uwp.os_win8native.os_windows.os_winphone.os_xboxone.os_xboxseriesxs.other.outlineColor.outlineColour.outlineDist.outlineEnabled.outlineEnabled.paragraphSpacing.path_action_continue.path_action_restart.path_action_reverse.path_action_stop.phy_debug_render_aabb.phy_debug_render_collision_pairs.phy_debug_render_coms.phy_debug_render_core_shapes.phy_debug_render_joints.phy_debug_render_obb.phy_debug_render_shapes.phy_joint_anchor_1_x.phy_joint_anchor_1_y.phy_joint_anchor_2_x.phy_joint_anchor_2_y.phy_joint_angle.phy_joint_angle_limits.phy_joint_damping_ratio.phy_joint_frequency.phy_joint_length_1.phy_joint_length_2.phy_joint_lower_angle_limit.phy_joint_max_force.phy_joint_max_length.phy_joint_max_motor_force.phy_joint_max_motor_torque.phy_joint_max_torque.phy_joint_motor_force.phy_joint_motor_speed.phy_joint_motor_torque.phy_joint_reaction_force_x.phy_joint_reaction_force_y.phy_joint_reaction_torque.phy_joint_speed.phy_joint_translation.phy_joint_upper_angle_limit.phy_particle_data_flag_category.phy_particle_data_flag_color.phy_particle_data_flag_colour.phy_particle_data_flag_position.phy_particle_data_flag_typeflags.phy_particle_data_flag_velocity.phy_particle_flag_colormixing.phy_particle_flag_colourmixing.phy_particle_flag_elastic.phy_particle_flag_powder.phy_particle_flag_spring.phy_particle_flag_tensile.phy_particle_flag_viscous.phy_particle_flag_wall.phy_particle_flag_water.phy_particle_flag_zombie.phy_particle_group_flag_rigid.phy_particle_group_flag_solid.pi.pointer_invalid.pointer_null.pr_linelist.pr_linestrip.pr_pointlist.pr_trianglefan.pr_trianglelist.pr_trianglestrip.ps_distr_gaussian.ps_distr_invgaussian.ps_distr_linear.ps_mode_burst.ps_mode_stream.ps_shape_diamond.ps_shape_ellipse.ps_shape_line.ps_shape_rectangle.pt_shape_circle.pt_shape_cloud.pt_shape_disk.pt_shape_explosion.pt_shape_flare.pt_shape_line.pt_shape_pixel.pt_shape_ring.pt_shape_smoke.pt_shape_snow.pt_shape_spark.pt_shape_sphere.pt_shape_square.pt_shape_star.rollback_chat_message.rollback_connect_error.rollback_connect_info.rollback_connected_to_peer.rollback_connection_rejected.rollback_disconnected_from_peer.rollback_end_game.rollback_game_full.rollback_game_info.rollback_game_interrupted.rollback_game_resumed.rollback_high_latency.rollback_player_prefs.rollback_protocol_rejected.rollback_synchronized_with_peer.rollback_synchronizing_with_peer.self.seqaudiokey_loop.seqaudiokey_oneshot.seqdir_left.seqdir_right.seqinterpolation_assign.seqinterpolation_lerp.seqplay_loop.seqplay_oneshot.seqplay_pingpong.seqtextkey_bottom.seqtextkey_center.seqtextkey_justify.seqtextkey_left.seqtextkey_middle.seqtextkey_right.seqtextkey_top.seqtracktype_audio.seqtracktype_bool.seqtracktype_clipmask.seqtracktype_clipmask_mask.seqtracktype_clipmask_subject.seqtracktype_color.seqtracktype_colour.seqtracktype_empty.seqtracktype_graphic.seqtracktype_group.seqtracktype_instance.seqtracktype_message.seqtracktype_moment.seqtracktype_particlesystem.seqtracktype_real.seqtracktype_sequence.seqtracktype_spriteframes.seqtracktype_string.seqtracktype_text.shadowColor.shadowColour.shadowOffsetX.shadowOffsetY.shadowSoftness.sprite_add_ext_error_cancelled.sprite_add_ext_error_decompressfailed.sprite_add_ext_error_loadfailed.sprite_add_ext_error_setupfailed.sprite_add_ext_error_spritenotfound.sprite_add_ext_error_unknown.spritespeed_framespergameframe.spritespeed_framespersecond.surface_r16float.surface_r32float.surface_r8unorm.surface_rg8unorm.surface_rgba16float.surface_rgba32float.surface_rgba4unorm.surface_rgba8unorm.texturegroup_status_fetched.texturegroup_status_loaded.texturegroup_status_loading.texturegroup_status_unloaded.tf_anisotropic.tf_linear.tf_point.thickness.tile_flip.tile_index_mask.tile_mirror.tile_rotate.time_source_expire_after.time_source_expire_nearest.time_source_game.time_source_global.time_source_state_active.time_source_state_initial.time_source_state_paused.time_source_state_stopped.time_source_units_frames.time_source_units_seconds.timezone_local.timezone_utc.tm_countvsyncs.tm_sleep.tm_systemtiming.true.ty_real.ty_string.undefined.vertex_type_color.vertex_type_colour.vertex_type_float1.vertex_type_float2.vertex_type_float3.vertex_type_float4.vertex_type_ubyte4.vertex_usage_binormal.vertex_usage_blendindices.vertex_usage_blendweight.vertex_usage_color.vertex_usage_colour.vertex_usage_depth.vertex_usage_fog.vertex_usage_normal.vertex_usage_position.vertex_usage_psize.vertex_usage_sample.vertex_usage_tangent.vertex_usage_texcoord.video_format_rgba.video_format_yuv.video_status_closed.video_status_paused.video_status_playing.video_status_preparing.vk_add.vk_alt.vk_anykey.vk_backspace.vk_control.vk_decimal.vk_delete.vk_divide.vk_down.vk_end.vk_enter.vk_escape.vk_f1.vk_f10.vk_f11.vk_f12.vk_f2.vk_f3.vk_f4.vk_f5.vk_f6.vk_f7.vk_f8.vk_f9.vk_home.vk_insert.vk_lalt.vk_lcontrol.vk_left.vk_lshift.vk_multiply.vk_nokey.vk_numpad0.vk_numpad1.vk_numpad2.vk_numpad3.vk_numpad4.vk_numpad5.vk_numpad6.vk_numpad7.vk_numpad8.vk_numpad9.vk_pagedown.vk_pageup.vk_pause.vk_printscreen.vk_ralt.vk_rcontrol.vk_return.vk_right.vk_rshift.vk_shift.vk_space.vk_subtract.vk_tab.vk_up.wallpaper_config.wallpaper_subscription_data.wrap`.split(`.`),"variable.language":`alarm.application_surface.argument.argument0.argument1.argument2.argument3.argument4.argument5.argument6.argument7.argument8.argument9.argument10.argument11.argument12.argument13.argument14.argument15.argument_count.async_load.background_color.background_colour.background_showcolor.background_showcolour.bbox_bottom.bbox_left.bbox_right.bbox_top.browser_height.browser_width.colour?ColourTrack.current_day.current_hour.current_minute.current_month.current_second.current_time.current_weekday.current_year.cursor_sprite.debug_mode.delta_time.depth.direction.display_aa.drawn_by_sequence.event_action.event_data.event_number.event_object.event_type.font_texture_page_size.fps.fps_real.friction.game_display_name.game_id.game_project_name.game_save_id.gravity.gravity_direction.health.hspeed.iap_data.id.image_alpha.image_angle.image_blend.image_index.image_number.image_speed.image_xscale.image_yscale.in_collision_tree.in_sequence.instance_count.instance_id.keyboard_key.keyboard_lastchar.keyboard_lastkey.keyboard_string.layer.lives.longMessage.managed.mask_index.message.mouse_button.mouse_lastbutton.mouse_x.mouse_y.object_index.os_browser.os_device.os_type.os_version.path_endaction.path_index.path_orientation.path_position.path_positionprevious.path_scale.path_speed.persistent.phy_active.phy_angular_damping.phy_angular_velocity.phy_bullet.phy_col_normal_x.phy_col_normal_y.phy_collision_points.phy_collision_x.phy_collision_y.phy_com_x.phy_com_y.phy_dynamic.phy_fixed_rotation.phy_inertia.phy_kinematic.phy_linear_damping.phy_linear_velocity_x.phy_linear_velocity_y.phy_mass.phy_position_x.phy_position_xprevious.phy_position_y.phy_position_yprevious.phy_rotation.phy_sleeping.phy_speed.phy_speed_x.phy_speed_y.player_avatar_sprite.player_avatar_url.player_id.player_local.player_type.player_user_id.program_directory.rollback_api_server.rollback_confirmed_frame.rollback_current_frame.rollback_event_id.rollback_event_param.rollback_game_running.room.room_first.room_height.room_last.room_persistent.room_speed.room_width.score.script.sequence_instance.solid.speed.sprite_height.sprite_index.sprite_width.sprite_xoffset.sprite_yoffset.stacktrace.temp_directory.timeline_index.timeline_loop.timeline_position.timeline_running.timeline_speed.view_camera.view_current.view_enabled.view_hport.view_surface_id.view_visible.view_wport.view_xport.view_yport.visible.vspeed.webgl_enabled.working_directory.x.xprevious.xstart.y.yprevious.ystart`.split(`.`)},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),Wi=n(((e,t)=>{function n(e){let t={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:t,illegal:`{function n(e){return{name:`Golo`,keywords:{keyword:`println.readln.print.import.module.function.local.return.let.var.while.for.foreach.times.in.case.when.match.with.break.continue.augment.augmentation.each.find.filter.reduce.if.then.else.otherwise.try.catch.finally.raise.throw.orIfNull.DynamicObject|10.DynamicVariable.struct.Observable.map.set.vector.list.array`.split(`.`),literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`@[A-Za-z]+`}]}}t.exports=n})),Ki=n(((e,t)=>{function n(e){return{name:`Gradle`,case_insensitive:!0,keywords:`task.project.allprojects.subprojects.artifacts.buildscript.configurations.dependencies.repositories.sourceSets.description.delete.from.into.include.exclude.source.classpath.destinationDir.includes.options.sourceCompatibility.targetCompatibility.group.flatDir.doLast.doFirst.flatten.todir.fromdir.ant.def.abstract.break.case.catch.continue.default.do.else.extends.final.finally.for.if.implements.instanceof.native.new.private.protected.public.return.static.switch.synchronized.throw.throws.transient.try.volatile.while.strictfp.package.import.false.null.super.this.true.antlrtask.checkstyle.codenarc.copy.boolean.byte.char.class.double.float.int.interface.long.short.void.compile.runTime.file.fileTree.abs.any.append.asList.asWritable.call.collect.compareTo.count.div.dump.each.eachByte.eachFile.eachLine.every.find.findAll.flatten.getAt.getErr.getIn.getOut.getText.grep.immutable.inject.inspect.intersect.invokeMethods.isCase.join.leftShift.minus.multiply.newInputStream.newOutputStream.newPrintWriter.newReader.newWriter.next.plus.pop.power.previous.print.println.push.putAt.read.readBytes.readLines.reverse.reverseEach.round.size.sort.splitEachLine.step.subMap.times.toInteger.toList.tokenize.upto.waitForOrKill.withPrintWriter.withReader.withStream.withWriter.withWriterAppend.write.writeLine`.split(`.`),contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}t.exports=n})),qi=n(((e,t)=>{function n(e){let t=e.regex;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(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}t.exports=n})),Ji=n(((e,t)=>{function n(e,t={}){return t.variants=e,t}function r(e){let t=e.regex,r=`[A-Za-z0-9_$]+`,i=n([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]})]),a={className:`regexp`,begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},o=n([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=n([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:`\\$/`,end:`/\\$`,relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:`string`}),c={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:`keyword`,3:`title.class`}};return{name:`Groovy`,keywords:{"variable.language":`this super`,literal:`true false null`,type:[`byte`,`short`,`char`,`int`,`long`,`boolean`,`float`,`double`,`void`],keyword:`def.as.in.assert.trait.abstract.static.volatile.transient.public.private.protected.synchronized.final.class.interface.enum.if.else.for.while.switch.case.break.default.continue.throw.throws.try.catch.finally.implements.extends.new.import.package.return.instanceof.var`.split(`.`)},contains:[e.SHEBANG({binary:`groovy`,relevance:10}),i,s,a,o,c,{className:`meta`,begin:`@[A-Za-z]+`,relevance:0},{className:`attr`,begin:r+`[ ]*:`,relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,a,o,`self`]},{className:`symbol`,begin:`^[ ]*`+t.lookahead(r+`:`),excludeBegin:!0,end:r+`:`,relevance:0}],illegal:/#|<\//}}t.exports=r})),Yi=n(((e,t)=>{function n(e){return{name:`HAML`,case_insensitive:!0,contains:[{className:`meta`,begin:`^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$`,relevance:10},e.COMMENT(`^\\s*(!=#|=#|-#|/).*$`,null,{relevance:0}),{begin:`^\\s*(-|=|!=)(?!#)`,end:/$/,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0},{className:`tag`,begin:`^\\s*%`,contains:[{className:`selector-tag`,begin:`\\w+`},{className:`selector-id`,begin:`#[\\w-]+`},{className:`selector-class`,begin:`\\.[\\w-]+`},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:`:\\w+\\s*=>`,end:`,\\s+`,returnBegin:!0,endsWithParent:!0,contains:[{className:`attr`,begin:`:\\w+`},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:`\\w+`,relevance:0}]}]},{begin:`\\(\\s*`,end:`\\s*\\)`,excludeEnd:!0,contains:[{begin:`\\w+\\s*=`,end:`\\s+`,returnBegin:!0,endsWithParent:!0,contains:[{className:`attr`,begin:`\\w+`,relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:`\\w+`,relevance:0}]}]}]},{begin:`^\\s*[=~]\\s*`},{begin:/#\{/,end:/\}/,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),Xi=n(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/[\w.\/]+/,built_in:`action.bindattr.collection.component.concat.debugger.each.each-in.get.hash.if.in.input.link-to.loc.log.lookup.mut.outlet.partial.query-params.render.template.textarea.unbound.unless.view.with.yield`.split(`.`)},r={$pattern:/[\w.\/]+/,literal:[`true`,`false`,`undefined`,`null`]},i=/""|"[^"]+"/,a=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,c=/(\.|\/)/,l=t.either(i,a,o,s),u=t.concat(t.optional(/\.|\.\/|\//),l,t.anyNumberOfTimes(t.concat(c,l))),d=t.concat(`(`,o,`|`,s,`)(?==)`),f={begin:u},p=e.inherit(f,{keywords:r}),m={begin:/\(/,end:/\)/},h={className:`attr`,begin:d,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,p,m]}}},g={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:`as`},end:/\|/,contains:[{begin:/\w+/}]},h,p,m],returnEnd:!0};m.contains=[e.inherit(f,{className:`name`,keywords:n,starts:e.inherit(g,{end:/\)/})})];let _=e.inherit(f,{keywords:n,className:`name`,starts:e.inherit(g,{end:/\}\}/})}),v=e.inherit(f,{keywords:n,className:`name`}),y=e.inherit(f,{className:`name`,keywords:n,starts:e.inherit(g,{end:/\}\}/})});return{name:`Handlebars`,aliases:[`hbs`,`html.hbs`,`html.handlebars`,`htmlbars`],case_insensitive:!0,subLanguage:`xml`,contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:`template-tag`,begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[_],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:`xml`}},{className:`template-tag`,begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[v]},{className:`template-tag`,begin:/\{\{#/,end:/\}\}/,contains:[_]},{className:`template-tag`,begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:`else`},{className:`template-tag`,begin:/\{\{(?=else if)/,end:/\}\}/,keywords:`else if`},{className:`template-tag`,begin:/\{\{\//,end:/\}\}/,contains:[v]},{className:`template-variable`,begin:/\{\{\{/,end:/\}\}\}/,contains:[y]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[y]}]}}t.exports=n})),Zi=n(((e,t)=>{function n(e){let t=`([0-9]_*)+`,n=`([0-9a-fA-F]_*)+`,r=`([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]\`|{}]|[_:"']))(\\p{S}|\\p{P}))`,i={variants:[e.COMMENT(`--+`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},a={className:`meta`,begin:/\{-#/,end:/#-\}/},o={className:`meta`,begin:`^#`,end:`$`},s={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},c={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[a,o,{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},e.inherit(e.TITLE_MODE,{begin:`[_a-z][\\w']*`}),i]},l={begin:/\{/,end:/\}/,contains:c.contains},u={className:`number`,relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](([0-7]_*)+)\\b`},{match:`\\b0[bB](([01]_*)+)\\b`}]};return{name:`Haskell`,aliases:[`hs`],keywords:`let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec`,unicodeRegex:!0,contains:[{beginKeywords:`module`,end:`where`,keywords:`module where`,contains:[c,i],illegal:`\\W\\.|;`},{begin:`\\bimport\\b`,end:`$`,keywords:`import qualified as hiding`,contains:[c,i],illegal:`\\W\\.|;`},{className:`class`,begin:`^(\\s*)?(class|instance)\\b`,end:`where`,keywords:`class family instance where`,contains:[s,c,i]},{className:`class`,begin:`\\b(data|(new)?type)\\b`,end:`$`,keywords:`data family type newtype deriving`,contains:[a,s,c,l,i]},{beginKeywords:`default`,end:`$`,contains:[s,c,i]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,i]},{begin:`\\bforeign\\b`,end:`$`,keywords:`foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe`,contains:[s,e.QUOTE_STRING_MODE,i]},{className:`meta`,begin:`#!\\/usr\\/bin\\/env runhaskell`,end:`$`},a,o,{scope:`string`,begin:/'(?=\\?.')/,end:/'/,contains:[{scope:`char.escape`,match:/\\./}]},e.QUOTE_STRING_MODE,u,s,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),{begin:`(?!-)${r}--+|--+(?!-)${r}`},i,{begin:`->|<-`}]}}t.exports=n})),Qi=n(((e,t)=>{function n(e){return{name:`Haxe`,aliases:[`hx`],keywords:{keyword:`abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array `,built_in:`trace this`,literal:`true false null _`},contains:[{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE,{className:`subst`,begin:/\$\{/,end:/\}/},{className:`subst`,begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`number`,begin:/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/,relevance:0},{className:`variable`,begin:`\\$[a-zA-Z_$][a-zA-Z0-9_$]*`},{className:`meta`,begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elseif end error`}},{className:`type`,begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`type`,beginKeywords:`new`,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`title.class`,beginKeywords:`enum`,end:/\{/,contains:[e.TITLE_MODE]},{className:`title.class`,begin:`\\babstract\\b(?=\\s*`+e.IDENT_RE+`\\s*\\()`,end:/[\{$]/,contains:[{className:`type`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:`type`,begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`type`,begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:`abstract from to`}},{className:`title.class`,begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:`class interface`,contains:[{className:`keyword`,begin:/\b(extends|implements) +/,keywords:`extends implements`,contains:[{className:`type`,begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:`title.function`,beginKeywords:`function`,end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}t.exports=n})),$i=n(((e,t)=>{function n(e){return{name:`HSP`,case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:`goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:`string`,begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(`;`,`$`,{relevance:0}),{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib`},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`symbol`,begin:`^\\*(\\w+|@)`},e.NUMBER_MODE,e.C_NUMBER_MODE]}}t.exports=n})),ea=n(((e,t)=>{function n(e){let t=e.regex,n=`HTTP/([32]|1\\.[01])`,r={className:`attribute`,begin:t.concat(`^`,/[A-Za-z][A-Za-z0-9-]*/,`(?=\\:\\s)`),starts:{contains:[{className:`punctuation`,begin:/: /,relevance:0,starts:{end:`$`,relevance:0}}]}},i=[r,{begin:`\\n\\n`,starts:{subLanguage:[],endsWithParent:!0}}];return{name:`HTTP`,aliases:[`https`],illegal:/\S/,contains:[{begin:`^(?=`+n+` \\d{3})`,end:/$/,contains:[{className:`meta`,begin:n},{className:`number`,begin:`\\b\\d{3}\\b`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},{begin:`(?=^[A-Z]+ (.*?) `+n+`$)`,end:/$/,contains:[{className:`string`,begin:` `,end:` `,excludeBegin:!0,excludeEnd:!0},{className:`meta`,begin:n},{className:`keyword`,begin:`[A-Z]+`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},e.inherit(r,{relevance:0})]}}t.exports=n})),ta=n(((e,t)=>{function n(e){let t=`[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9/;:]*`,n={$pattern:t,built_in:`!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~`},r={begin:t,relevance:0},i={className:`number`,begin:`[-+]?\\d+(\\.\\d+)?`,relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o=e.COMMENT(`;`,`$`,{relevance:0}),s={className:`literal`,begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},c={begin:`[\\[\\{]`,end:`[\\]\\}]`,relevance:0},l={className:`comment`,begin:`\\^`+t},u=e.COMMENT(`\\^\\{`,`\\}`),d={className:`symbol`,begin:`[:]{1,2}`+t},f={begin:`\\(`,end:`\\)`},p={endsWithParent:!0,relevance:0},m={className:`name`,relevance:0,keywords:n,begin:t,starts:p},h=[f,a,l,u,o,d,c,i,s,r];return f.contains=[e.COMMENT(`comment`,``),m,p],p.contains=h,c.contains=h,{name:`Hy`,aliases:[`hylang`],illegal:/\S/,contains:[e.SHEBANG(),f,a,l,u,o,d,c,i,s]}}t.exports=n})),na=n(((e,t)=>{function n(e){return{name:`Inform 7`,aliases:[`i7`],case_insensitive:!0,keywords:{keyword:`thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule`},contains:[{className:`string`,begin:`"`,end:`"`,relevance:0,contains:[{className:`subst`,begin:`\\[`,end:`\\]`}]},{className:`section`,begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:`$`},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:`:`,contains:[{begin:`\\(This`,end:`\\)`}]},{className:`comment`,begin:`\\[`,end:`\\]`,contains:[`self`]}]}}t.exports=n})),ra=n(((e,t)=>{function n(e){let t=e.regex,n={className:`number`,relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:`variable`,variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={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:`'`}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,`self`],relevance:0},c=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:`TOML, also INI`,aliases:[`toml`],case_insensitive:!0,illegal:/\S/,contains:[r,{className:`section`,begin:/\[+/,end:/\]+/},{begin:t.concat(c,`(\\s*\\.\\s*`,c,`)*`,t.lookahead(/\s*=\s*[^#\s]/)),className:`attr`,starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}t.exports=n})),ia=n(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,a={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:`IRPF90`,case_insensitive:!0,keywords:{literal:`.False. .True.`,keyword:`kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read`,built_in:`alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here`},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:`string`,relevance:0}),{className:`function`,beginKeywords:`subroutine function program`,illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},e.COMMENT(`!`,`$`,{relevance:0}),e.COMMENT(`begin_doc`,`end_doc`,{relevance:10}),a]}}t.exports=n})),aa=n(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*`,n={className:`number`,begin:e.NUMBER_RE,relevance:0},r={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},i={className:`doctag`,begin:`\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b`,relevance:0},a={variants:[{className:`comment`,begin:`//`,end:`$`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]},{className:`comment`,begin:`/\\*`,end:`\\*/`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]}]},o={$pattern:t,keyword:`and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока `,built_in:`SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent `,class:`AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач `,literal:`null true false nil `},s={begin:`\\.\\s*`+e.UNDERSCORE_IDENT_RE,keywords:o,relevance:0},c={className:`type`,begin:`:[ \\t]*(`+`IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto`.replace(/\s/g,`|`)+`)`,end:`[ \\t]*=`,excludeEnd:!0},l={className:`variable`,keywords:o,begin:t,relevance:0,contains:[c,s]},u=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(`;return{name:`ISBL`,case_insensitive:!0,keywords:o,illegal:`\\$|\\?|%|,|;$|~|#|@|{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e,t,n){return n===-1?``:e.replace(t,r=>o(e,t,n-1))}function s(e){let t=e.regex,n=`[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*`,r=n+o(`(?:<`+n+`~~~(?:\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*~~~)*>)?`,/~~~/g,2),i={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`.split(`.`),literal:[`false`,`true`,`null`],type:[`char`,`boolean`,`long`,`float`,`int`,`byte`,`short`,`double`],built_in:[`super`,`this`]},s={className:`meta`,begin:`@`+n,contains:[{begin:/\(/,end:/\)/,contains:[`self`]}]},c={className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:`Java`,aliases:[`jsp`],keywords:i,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+/,n],className:{1:`keyword`,3:`title.class`}},{match:/non-sealed/,scope:`keyword`},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:`type`,3:`variable`,5:`operator`}},{begin:[/record/,/\s+/,n],className:{1:`keyword`,3:`title.class`},contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`new throw return else`,relevance:0},{begin:[`(?:`+r+`\\s+)`,e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:`title.function`},keywords:i,contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,s]}}t.exports=s})),sa=n(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`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`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`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`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],c=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],l=[].concat(s,a,o);function u(e){let t=e.regex,u=(e,{after:t})=>{let n=``,end:``},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(u(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},h={$pattern:n,keyword:r,literal:i,built_in:l,"variable.language":c},g=`[0-9](_?[0-9])*`,_=`\\.(${g})`,v=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,y={className:`number`,variants:[{begin:`(\\b(${v})((${_})|\\.)?|(${_}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${_})\\b|\\.)?|(${_})\\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},b={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:h,contains:[]},x={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`xml`}},S={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`css`}},C={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`graphql`}},w={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},T={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:d+`(?=\\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,x,S,C,w,{match:/\$\d+/},y];b.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:[`self`].concat(E)});let D=[].concat(T,b.contains),O=D.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:[`self`].concat(D)}]),k={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O},A={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,t.concat(d,`(`,t.concat(/\./,d),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,d],scope:{1:`keyword`,3:`title.class`}}]},j={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:{_:[...a,...o]}},M={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[k],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function F(e){return t.concat(`(?!`,e.join(`|`),`)`)}let I={match:t.concat(/\b/,F([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),d,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},L={begin:t.concat(/\./,t.lookahead(t.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},R={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},k]},z=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,B={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(z)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[k]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:h,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:j},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),M,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,T,{match:/\$\d+/},y,j,{scope:`attr`,match:d+t.lookahead(`:`),relevance:0},B,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[T,e.REGEXP_MODE,{className:`function`,begin:z,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:h,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:p},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:`xml`,contains:[{begin:m.begin,end:m.end,skip:!0,contains:[`self`]}]}]},N,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[k,e.inherit(e.TITLE_MODE,{begin:d,className:`title.function`})]},{match:/\.\.\./,relevance:0},L,{match:`\\$`+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[k]},I,P,A,R,{match:/\$[(.]/}]}}t.exports=u})),ca=n(((e,t)=>{function n(e){return{name:`JBoss CLI`,aliases:[`wildfly-cli`],keywords:{$pattern:`[a-z-]+`,keyword:`alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source`,literal:`true false`},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:`params`,begin:/--[\w\-=\/]+/},{className:`function`,begin:/:[\w\-.]+/,relevance:0},{className:`string`,begin:/\B([\/.])[\w\-.\/=]+/},{className:`params`,begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:`attr`,begin:/[\w-]+/}]}],relevance:0}]}}t.exports=n})),la=n(((e,t)=>{function n(e){let t={className:`attr`,begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:`punctuation`,relevance:0},r=[`true`,`false`,`null`],i={scope:`literal`,beginKeywords:r.join(` `)};return{name:`JSON`,aliases:[`jsonc`],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}t.exports=n})),ua=n(((e,t)=>{function n(e){let t=`[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*`,n={$pattern:t,keyword:`baremodule.begin.break.catch.ccall.const.continue.do.else.elseif.end.export.false.finally.for.function.global.if.import.in.isa.let.local.macro.module.quote.return.true.try.using.where.while`.split(`.`),literal:`ARGS.C_NULL.DEPOT_PATH.ENDIAN_BOM.ENV.Inf.Inf16.Inf32.Inf64.InsertionSort.LOAD_PATH.MergeSort.NaN.NaN16.NaN32.NaN64.PROGRAM_FILE.QuickSort.RoundDown.RoundFromZero.RoundNearest.RoundNearestTiesAway.RoundNearestTiesUp.RoundToZero.RoundUp.VERSION|0.devnull.false.im.missing.nothing.pi.stderr.stdin.stdout.true.undef.π.ℯ`.split(`.`),built_in:`AbstractArray.AbstractChannel.AbstractChar.AbstractDict.AbstractDisplay.AbstractFloat.AbstractIrrational.AbstractMatrix.AbstractRange.AbstractSet.AbstractString.AbstractUnitRange.AbstractVecOrMat.AbstractVector.Any.ArgumentError.Array.AssertionError.BigFloat.BigInt.BitArray.BitMatrix.BitSet.BitVector.Bool.BoundsError.CapturedException.CartesianIndex.CartesianIndices.Cchar.Cdouble.Cfloat.Channel.Char.Cint.Cintmax_t.Clong.Clonglong.Cmd.Colon.Complex.ComplexF16.ComplexF32.ComplexF64.CompositeException.Condition.Cptrdiff_t.Cshort.Csize_t.Cssize_t.Cstring.Cuchar.Cuint.Cuintmax_t.Culong.Culonglong.Cushort.Cvoid.Cwchar_t.Cwstring.DataType.DenseArray.DenseMatrix.DenseVecOrMat.DenseVector.Dict.DimensionMismatch.Dims.DivideError.DomainError.EOFError.Enum.ErrorException.Exception.ExponentialBackOff.Expr.Float16.Float32.Float64.Function.GlobalRef.HTML.IO.IOBuffer.IOContext.IOStream.IdDict.IndexCartesian.IndexLinear.IndexStyle.InexactError.InitError.Int.Int128.Int16.Int32.Int64.Int8.Integer.InterruptException.InvalidStateException.Irrational.KeyError.LinRange.LineNumberNode.LinearIndices.LoadError.MIME.Matrix.Method.MethodError.Missing.MissingException.Module.NTuple.NamedTuple.Nothing.Number.OrdinalRange.OutOfMemoryError.OverflowError.Pair.PartialQuickSort.PermutedDimsArray.Pipe.ProcessFailedException.Ptr.QuoteNode.Rational.RawFD.ReadOnlyMemoryError.Real.ReentrantLock.Ref.Regex.RegexMatch.RoundingMode.SegmentationFault.Set.Signed.Some.StackOverflowError.StepRange.StepRangeLen.StridedArray.StridedMatrix.StridedVecOrMat.StridedVector.String.StringIndexError.SubArray.SubString.SubstitutionString.Symbol.SystemError.Task.TaskFailedException.Text.TextDisplay.Timer.Tuple.Type.TypeError.TypeVar.UInt.UInt128.UInt16.UInt32.UInt64.UInt8.UndefInitializer.UndefKeywordError.UndefRefError.UndefVarError.Union.UnionAll.UnitRange.Unsigned.Val.Vararg.VecElement.VecOrMat.Vector.VersionNumber.WeakKeyDict.WeakRef`.split(`.`)},r={keywords:n,illegal:/<\//},i={className:`number`,begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},a={className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},o={className:`subst`,begin:/\$\(/,end:/\)/,keywords:n},s={className:`variable`,begin:`\\$`+t},c={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},l={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],begin:"`",end:"`"},u={className:`meta`,begin:`@`+t};return r.name=`Julia`,r.contains=[i,a,c,l,u,{className:`comment`,variants:[{begin:`#=`,end:`=#`,relevance:10},{begin:`#`,end:`$`}]},e.HASH_COMMENT_MODE,{className:`keyword`,begin:`\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b`},{begin:/<:/}],o.contains=r.contains,r}t.exports=n})),da=n(((e,t)=>{function n(e){return{name:`Julia REPL`,contains:[{className:`meta.prompt`,begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:`julia`}}],aliases:[`jldoctest`]}}t.exports=n})),fa=n(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e){let 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`},n={className:`keyword`,begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:`symbol`,begin:/@\w+/}]}},r={className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`@`},i={className:`subst`,begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:`variable`,begin:`\\$`+e.UNDERSCORE_IDENT_RE},s={className:`string`,variants:[{begin:`"""`,end:`"""(?=[^"])`,contains:[o,i]},{begin:`'`,end:`'`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);let c={className:`meta`,begin:`@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*`+e.UNDERSCORE_IDENT_RE+`)?`},l={className:`meta`,begin:`@`+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:`string`}),`self`]}]},u=a,d=e.COMMENT(`/\\*`,`\\*/`,{contains:[e.C_BLOCK_COMMENT_MODE]}),f={variants:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=f;return p.variants[1].contains=[f],f.variants[1].contains=[p],{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,n,r,c,l,{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://,keywords:`reified`,relevance:0},{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[f,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,c,l,s,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://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},c,l]},s,{className:`meta`,begin:`^#!/usr/bin/env`,end:`$`,illegal:` +`},u]}}t.exports=o})),pa=n(((e,t)=>{function n(e){let t=`[a-zA-Z_][\\w.]*`,n=`<\\?(lasso(script)?|=)`,r=`\\]|\\?>`,i={$pattern:t+`|&[lg]t;`,literal:`true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft`,built_in:`array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock`,keyword:`cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome`},a=e.COMMENT(``,{relevance:0}),o={className:`meta`,begin:`\\[noprocess\\]`,starts:{end:`\\[/noprocess\\]`,returnEnd:!0,contains:[a]}},s={className:`meta`,begin:`\\[/noprocess|`+n},c={className:`symbol`,begin:`'`+t+`'`},l=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+`|(-?infinity|NaN)\\b`}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`string`,begin:"`",end:"`"},{variants:[{begin:`[#$]`+t},{begin:`#`,end:`\\d+`,illegal:`\\W`}]},{className:`type`,begin:`::\\s*`,end:t,illegal:`\\W`},{className:`params`,variants:[{begin:`-(?!infinity)`+t,relevance:0},{begin:`(\\.\\.\\.)`}]},{begin:/(->|\.)\s*/,relevance:0,contains:[c]},{className:`class`,beginKeywords:`define`,returnEnd:!0,end:`\\(|=>`,contains:[e.inherit(e.TITLE_MODE,{begin:t+`(=(?!>))?|[-+*/%](?!>)`})]}];return{name:`Lasso`,aliases:[`ls`,`lassoscript`],case_insensitive:!0,keywords:i,contains:[{className:`meta`,begin:r,relevance:0,starts:{end:`\\[|`+n,returnEnd:!0,relevance:0,contains:[a]}},o,s,{className:`meta`,begin:`\\[no_square_brackets`,starts:{end:`\\[/no_square_brackets\\]`,keywords:i,contains:[{className:`meta`,begin:r,relevance:0,starts:{end:`\\[noprocess\\]|`+n,returnEnd:!0,contains:[a]}},o,s].concat(l)}},{className:`meta`,begin:`\\[`,relevance:0},{className:`meta`,begin:`^#!`,end:`lasso9$`,relevance:10}].concat(l)}}t.exports=n})),ma=n(((e,t)=>{function n(e){let t=e.regex.either(...[`(?:NeedsTeXFormat|RequirePackage|GetIdInfo)`,`Provides(?:Expl)?(?:Package|Class|File)`,`(?:DeclareOption|ProcessOptions)`,`(?:documentclass|usepackage|input|include)`,`makeat(?:letter|other)`,`ExplSyntax(?:On|Off)`,`(?:new|renew|provide)?command`,`(?:re)newenvironment`,`(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand`,`(?:New|Renew|Provide|Declare)DocumentEnvironment`,`(?:(?:e|g|x)?def|let)`,`(?:begin|end)`,`(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)`,`caption`,`(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)`,`(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)`,`(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)`,`(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)`,`(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)`,`(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)`].map(e=>e+`(?![a-zA-Z@:_])`)),n=new RegExp([`(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*`,`[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}`,`[qs]__?[a-zA-Z](?:_?[a-zA-Z])+`,`use(?:_i)?:[a-zA-Z]*`,`(?:else|fi|or):`,`(?:if|cs|exp):w`,`(?:hbox|vbox):n`,`::[a-zA-Z]_unbraced`,`::[a-zA-Z:]`].map(e=>e+`(?![a-zA-Z:_])`).join(`|`)),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],i=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a=[{className:`keyword`,begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:t},{endsParent:!0,begin:n},{endsParent:!0,variants:i},{endsParent:!0,relevance:0,variants:r}]},{className:`params`,relevance:0,begin:/#+\d?/},{variants:i},{className:`built_in`,relevance:0,begin:/[$&^_]/},{className:`meta`,begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:`$`,relevance:10},e.COMMENT(`%`,`$`,{relevance:0})],o={begin:/\{/,end:/\}/,relevance:0,contains:[`self`,...a]},s=e.inherit(o,{relevance:0,endsParent:!0,contains:[o,...a]}),c={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[o,...a]},l={begin:/\s+/,relevance:0},u=[s],d=[c],f=function(e,t){return{contains:[l],starts:{relevance:0,contains:e,starts:t}}},p=function(e,t){return{begin:`\\\\`+e+`(?![a-zA-Z@:_])`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\`+e},relevance:0,contains:[l],starts:t}},m=function(t,n){return e.inherit({begin:`\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{`+t+`\\})`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\begin`},relevance:0},f(u,n))},h=(t=`string`)=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),g=function(e){return{className:`string`,end:`(?=\\\\end\\{`+e+`\\})`}},_=(e=`string`)=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:[`self`]}]}]}});return{name:`LaTeX`,aliases:[`tex`],contains:[...[...[`verb`,`lstinline`].map(e=>p(e,{contains:[h()]})),p(`mint`,f(u,{contains:[h()]})),p(`mintinline`,f(u,{contains:[_(),h()]})),p(`url`,{contains:[_(`link`),_(`link`)]}),p(`hyperref`,{contains:[_(`link`)]}),p(`href`,f(d,{contains:[_(`link`)]})),...[].concat(...[``,`\\*`].map(e=>[m(`verbatim`+e,g(`verbatim`+e)),m(`filecontents`+e,f(u,g(`filecontents`+e))),...[``,`B`,`L`].map(t=>m(t+`Verbatim`+e,f(d,g(t+`Verbatim`+e))))])),m(`minted`,f(d,f(u,g(`minted`))))],...a]}}t.exports=n})),ha=n(((e,t)=>{function n(e){return{name:`LDIF`,contains:[{className:`attribute`,match:`^dn(?=:)`,relevance:10},{className:`attribute`,match:`^\\w+(?=:)`},{className:`literal`,match:`^-`},e.HASH_COMMENT_MODE]}}t.exports=n})),ga=n(((e,t)=>{function n(e){let t=/([A-Za-z_][A-Za-z_0-9]*)?/,n={scope:`params`,begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:`string`,begin:`"`,end:`"`},{scope:`keyword`,match:[`true`,`false`,`in`].join(`|`)},{scope:`variable`,match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:`operator`,match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},r={match:[t,/(?=\()/],scope:{1:`keyword`},contains:[n]};return n.contains.unshift(r),{name:`Leaf`,contains:[{match:[/#+/,t,/(?=\()/],scope:{1:`punctuation`,2:`keyword`},starts:{contains:[{match:/\:/,scope:`punctuation`}]},contains:[n]},{match:[/#+/,t,/:?/],scope:{1:`punctuation`,2:`keyword`,3:`punctuation`}}]}}t.exports=n})),_a=n(((e,t)=>{var n=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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`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`.split(`.`).sort().reverse(),u=s.concat(c).sort().reverse();function d(e){let t=n(e),r=u,i=`[\\w-]+`,d=`(`+i+`|@\\{[\\w-]+\\})`,f=[],p=[],m=function(e){return{className:`string`,begin:`~?`+e+`.*?`+e}},h=function(e,t,n){return{className:e,begin:t,relevance:n}},g={$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},_={begin:`\\(`,end:`\\)`,contains:p,keywords:g,relevance:0};p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m(`'`),m(`"`),t.CSS_NUMBER_MODE,{begin:`(url|data-uri)\\(`,starts:{className:`string`,end:`[\\)\\n]`,excludeEnd:!0}},t.HEXCOLOR,_,h(`variable`,`@@?`+i,10),h(`variable`,`@\\{`+i+`\\}`),h(`built_in`,"~?`[^`]*?`"),{className:`attribute`,begin:i+`\\s*:`,end:`:`,returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:`and not`},t.FUNCTION_DISPATCH);let v=p.concat({begin:/\{/,end:/\}/,contains:f}),y={beginKeywords:`when`,endsWithParent:!0,contains:[{beginKeywords:`and not`}].concat(p)},b={begin:d+`\\s*:`,returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`,end:/(?=:)/,starts:{endsWithParent:!0,illegal:`[<=$]`,relevance:0,contains:p}}]},x={className:`keyword`,begin:`@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b`,starts:{end:`[;{}]`,keywords:g,returnEnd:!0,contains:p,relevance:0}},S={className:`variable`,variants:[{begin:`@`+i+`\\s*:`,relevance:15},{begin:`@`+i}],starts:{end:`[;}]`,returnEnd:!0,contains:v}},C={variants:[{begin:`[\\.#:&\\[>]`,end:`[;{}]`},{begin:d,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,h(`keyword`,`all\\b`),h(`variable`,`@\\{`+i+`\\}`),{begin:`\\b(`+a.join(`|`)+`)\\b`,className:`selector-tag`},t.CSS_NUMBER_MODE,h(`selector-tag`,d,0),h(`selector-id`,`#`+d),h(`selector-class`,`\\.`+d,0),h(`selector-tag`,`&`,0),t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,begin:`:(`+s.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+c.join(`|`)+`)`},{begin:/\(/,end:/\)/,relevance:0,contains:v},{begin:`!important`},t.FUNCTION_DISPATCH]},w={begin:`[\\w-]+:(:)?(${r.join(`|`)})`,returnBegin:!0,contains:[C]};return f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,S,w,b,C,y,t.FUNCTION_DISPATCH),{name:`Less`,case_insensitive:!0,illegal:`[=>'/<($"]`,contains:f}}t.exports=d})),va=n(((e,t)=>{function n(e){let t=`[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*`,n=`\\|[^]*?\\|`,r=`(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?`,i={className:`literal`,begin:`\\b(t{1}|nil)\\b`},a={className:`number`,variants:[{begin:r,relevance:0},{begin:`#(b|B)[0-1]+(/[0-1]+)?`},{begin:`#(o|O)[0-7]+(/[0-7]+)?`},{begin:`#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?`},{begin:`#(c|C)\\(`+r+` +(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?`,end:`\\)`}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),c={begin:`\\*`,end:`\\*`},l={className:`symbol`,begin:`[:&]`+t},u={begin:t,relevance:0},d={begin:n},f={contains:[a,o,c,l,{begin:`\\(`,end:`\\)`,contains:[`self`,i,o,a,u]},u],variants:[{begin:"['`]\\(",end:`\\)`},{begin:`\\(quote `,end:`\\)`,keywords:{name:`quote`}},{begin:`'`+n}]},p={variants:[{begin:`'`+t},{begin:`#'`+t+`(::[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*)*`}]},m={begin:`\\(\\s*`,end:`\\)`},h={endsWithParent:!0,relevance:0};return m.contains=[{className:`name`,variants:[{begin:t,relevance:0},{begin:n}]},h],h.contains=[f,p,m,i,a,o,s,c,l,d,u],{name:`Lisp`,illegal:/\S/,contains:[a,e.SHEBANG(),i,o,s,f,p,m,u]}}t.exports=n})),ya=n(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)`},{begin:`\\$_[A-Z]+`}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT(`--`,`$`),e.COMMENT(`[^:]//`,`$`)],r=e.inherit(e.TITLE_MODE,{variants:[{begin:`\\b_*rig[A-Z][A-Za-z0-9_\\-]*`},{begin:`\\b_[a-z0-9\\-]+`}]}),i=e.inherit(e.TITLE_MODE,{begin:`\\b([A-Za-z0-9_\\-]+)\\b`});return{name:`LiveCode`,case_insensitive:!1,keywords:{keyword:`$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys`,literal:`SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK`,built_in:`put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write`},contains:[t,{className:`keyword`,begin:`\\bend\\sif\\b`},{className:`function`,beginKeywords:`function`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:`function`,begin:`\\bend\\s+`,end:`$`,keywords:`end`,contains:[i,r],relevance:0},{beginKeywords:`command on`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:`meta`,variants:[{begin:`<\\?(rev|lc|livecode)`,relevance:10},{begin:`<\\?`},{begin:`\\?>`}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(n),illegal:`;$|^\\[|^=|&|\\{`}}t.exports=n})),ba=n(((e,t)=>{var n=`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`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`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`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat(`then.unless.until.loop.of.by.when.and.or.is.isnt.not.it.that.otherwise.from.to.til.fallthrough.case.enum.native.list.map.__hasProp.__extends.__slice.__bind.__indexOf`.split(`.`)),literal:r.concat([`yes`,`no`,`on`,`off`,`it`,`that`,`void`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*`,o=e.inherit(e.TITLE_MODE,{begin:a}),s={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},c={className:`subst`,begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},l=[e.BINARY_NUMBER_MODE,{className:`number`,begin:`(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)`,relevance:0,starts:{end:`(\\s*/)?`,relevance:0}},{className:`string`,variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,c]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,c]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:`regexp`,variants:[{begin:`//`,end:`//[gim]*`,contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:`@`+a},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:`javascript`}];s.contains=l;let u={className:`params`,begin:`\\(`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(l)}]},d={begin:`(#=>|=>|\\|>>|-?->|!->)`},f={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`LiveScript`,aliases:[`ls`],keywords:t,illegal:/\/\*/,contains:l.concat([e.COMMENT(`\\/\\*`,`\\*\\/`),e.HASH_COMMENT_MODE,d,{className:`function`,contains:[o,u],returnBegin:!0,variants:[{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?`,end:`->\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?`,end:`[-~]{1,2}>\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?`,end:`!?[-~]{1,2}>\\*?`}]},f,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=a})),xa=n(((e,t)=>{function n(e){let t=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:`type`,begin:/\bi\d+(?=\s|\b)/},i={className:`operator`,relevance:0,begin:/=/},a={className:`punctuation`,relevance:0,begin:/,/},o={className:`number`,variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},s={className:`symbol`,variants:[{begin:/^\s*[a-z]+:/}],relevance:0},c={className:`variable`,variants:[{begin:t.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},l={className:`title`,variants:[{begin:t.concat(/@/,n)},{begin:/@\d+/},{begin:t.concat(/!/,n)},{begin:t.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:`LLVM IR`,keywords:{keyword:`begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly`,type:`void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque`},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:`string`,begin:/"/,end:/"/,contains:[{className:`char.escape`,match:/\\\d\d/}]},l,a,i,c,s,o]}}t.exports=n})),Sa=n(((e,t)=>{function n(e){let t={className:`string`,begin:`"`,end:`"`,contains:[{className:`subst`,begin:/\\[tn"\\]/}]},n={className:`number`,relevance:0,begin:e.C_NUMBER_RE};return{name:`LSL (Linden Scripting Language)`,illegal:`:`,contains:[t,{className:`comment`,variants:[e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`)],relevance:0},n,{className:`section`,variants:[{begin:`\\b(state|default)\\b`},{begin:`\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b`}]},{className:`built_in`,begin:`\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b`},{className:`literal`,variants:[{begin:`\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b`},{begin:`\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b`},{begin:`\\b(FALSE|TRUE)\\b`},{begin:`\\b(ZERO_ROTATION)\\b`},{begin:`\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b`},{begin:`\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b`}]},{className:`type`,begin:`\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b`}]}}t.exports=n})),Ca=n(((e,t)=>{function n(e){let t=`\\[=*\\[`,n=`\\]=*\\]`,r={begin:t,end:n,contains:[`self`]},i=[e.COMMENT(`--(?!`+t+`)`,`$`),e.COMMENT(`--`+t,n,{contains:[r],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:n,contains:[r],relevance:5}])}}t.exports=n})),wa=n(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\$\\(`+e.UNDERSCORE_IDENT_RE+`\\)`,contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{var n=`AASTriangle.AbelianGroup.Abort.AbortKernels.AbortProtect.AbortScheduledTask.Above.Abs.AbsArg.AbsArgPlot.Absolute.AbsoluteCorrelation.AbsoluteCorrelationFunction.AbsoluteCurrentValue.AbsoluteDashing.AbsoluteFileName.AbsoluteOptions.AbsolutePointSize.AbsoluteThickness.AbsoluteTime.AbsoluteTiming.AcceptanceThreshold.AccountingForm.Accumulate.Accuracy.AccuracyGoal.AcousticAbsorbingValue.AcousticImpedanceValue.AcousticNormalVelocityValue.AcousticPDEComponent.AcousticPressureCondition.AcousticRadiationValue.AcousticSoundHardValue.AcousticSoundSoftCondition.ActionDelay.ActionMenu.ActionMenuBox.ActionMenuBoxOptions.Activate.Active.ActiveClassification.ActiveClassificationObject.ActiveItem.ActivePrediction.ActivePredictionObject.ActiveStyle.AcyclicGraphQ.AddOnHelpPath.AddSides.AddTo.AddToSearchIndex.AddUsers.AdjacencyGraph.AdjacencyList.AdjacencyMatrix.AdjacentMeshCells.Adjugate.AdjustmentBox.AdjustmentBoxOptions.AdjustTimeSeriesForecast.AdministrativeDivisionData.AffineHalfSpace.AffineSpace.AffineStateSpaceModel.AffineTransform.After.AggregatedEntityClass.AggregationLayer.AircraftData.AirportData.AirPressureData.AirSoundAttenuation.AirTemperatureData.AiryAi.AiryAiPrime.AiryAiZero.AiryBi.AiryBiPrime.AiryBiZero.AlgebraicIntegerQ.AlgebraicNumber.AlgebraicNumberDenominator.AlgebraicNumberNorm.AlgebraicNumberPolynomial.AlgebraicNumberTrace.AlgebraicRules.AlgebraicRulesData.Algebraics.AlgebraicUnitQ.Alignment.AlignmentMarker.AlignmentPoint.All.AllowAdultContent.AllowChatServices.AllowedCloudExtraParameters.AllowedCloudParameterExtensions.AllowedDimensions.AllowedFrequencyRange.AllowedHeads.AllowGroupClose.AllowIncomplete.AllowInlineCells.AllowKernelInitialization.AllowLooseGrammar.AllowReverseGroupClose.AllowScriptLevelChange.AllowVersionUpdate.AllTrue.Alphabet.AlphabeticOrder.AlphabeticSort.AlphaChannel.AlternateImage.AlternatingFactorial.AlternatingGroup.AlternativeHypothesis.Alternatives.AltitudeMethod.AmbientLight.AmbiguityFunction.AmbiguityList.Analytic.AnatomyData.AnatomyForm.AnatomyPlot3D.AnatomySkinStyle.AnatomyStyling.AnchoredSearch.And.AndersonDarlingTest.AngerJ.AngleBisector.AngleBracket.AnglePath.AnglePath3D.AngleVector.AngularGauge.Animate.AnimatedImage.AnimationCycleOffset.AnimationCycleRepetitions.AnimationDirection.AnimationDisplayTime.AnimationRate.AnimationRepetitions.AnimationRunning.AnimationRunTime.AnimationTimeIndex.AnimationVideo.Animator.AnimatorBox.AnimatorBoxOptions.AnimatorElements.Annotate.Annotation.AnnotationDelete.AnnotationKeys.AnnotationRules.AnnotationValue.Annuity.AnnuityDue.Annulus.AnomalyDetection.AnomalyDetector.AnomalyDetectorFunction.Anonymous.Antialiasing.Antihermitian.AntihermitianMatrixQ.Antisymmetric.AntisymmetricMatrixQ.Antonyms.AnyOrder.AnySubset.AnyTrue.Apart.ApartSquareFree.APIFunction.Appearance.AppearanceElements.AppearanceRules.AppellF1.Append.AppendCheck.AppendLayer.AppendTo.Application.Apply.ApplyReaction.ApplySides.ApplyTo.ArcCos.ArcCosh.ArcCot.ArcCoth.ArcCsc.ArcCsch.ArcCurvature.ARCHProcess.ArcLength.ArcSec.ArcSech.ArcSin.ArcSinDistribution.ArcSinh.ArcTan.ArcTanh.Area.Arg.ArgMax.ArgMin.ArgumentCountQ.ArgumentsOptions.ARIMAProcess.ArithmeticGeometricMean.ARMAProcess.Around.AroundReplace.ARProcess.Array.ArrayComponents.ArrayDepth.ArrayFilter.ArrayFlatten.ArrayMesh.ArrayPad.ArrayPlot.ArrayPlot3D.ArrayQ.ArrayReduce.ArrayResample.ArrayReshape.ArrayRules.Arrays.Arrow.Arrow3DBox.ArrowBox.Arrowheads.ASATriangle.Ask.AskAppend.AskConfirm.AskDisplay.AskedQ.AskedValue.AskFunction.AskState.AskTemplateDisplay.AspectRatio.AspectRatioFixed.Assert.AssessmentFunction.AssessmentResultObject.AssociateTo.Association.AssociationFormat.AssociationMap.AssociationQ.AssociationThread.AssumeDeterministic.Assuming.Assumptions.AstroAngularSeparation.AstroBackground.AstroCenter.AstroDistance.AstroGraphics.AstroGridLines.AstroGridLinesStyle.AstronomicalData.AstroPosition.AstroProjection.AstroRange.AstroRangePadding.AstroReferenceFrame.AstroStyling.AstroZoomLevel.Asymptotic.AsymptoticDSolveValue.AsymptoticEqual.AsymptoticEquivalent.AsymptoticExpectation.AsymptoticGreater.AsymptoticGreaterEqual.AsymptoticIntegrate.AsymptoticLess.AsymptoticLessEqual.AsymptoticOutputTracker.AsymptoticProbability.AsymptoticProduct.AsymptoticRSolveValue.AsymptoticSolve.AsymptoticSum.Asynchronous.AsynchronousTaskObject.AsynchronousTasks.Atom.AtomCoordinates.AtomCount.AtomDiagramCoordinates.AtomLabels.AtomLabelStyle.AtomList.AtomQ.AttachCell.AttachedCell.AttentionLayer.Attributes.Audio.AudioAmplify.AudioAnnotate.AudioAnnotationLookup.AudioBlockMap.AudioCapture.AudioChannelAssignment.AudioChannelCombine.AudioChannelMix.AudioChannels.AudioChannelSeparate.AudioData.AudioDelay.AudioDelete.AudioDevice.AudioDistance.AudioEncoding.AudioFade.AudioFrequencyShift.AudioGenerator.AudioIdentify.AudioInputDevice.AudioInsert.AudioInstanceQ.AudioIntervals.AudioJoin.AudioLabel.AudioLength.AudioLocalMeasurements.AudioLooping.AudioLoudness.AudioMeasurements.AudioNormalize.AudioOutputDevice.AudioOverlay.AudioPad.AudioPan.AudioPartition.AudioPause.AudioPitchShift.AudioPlay.AudioPlot.AudioQ.AudioRecord.AudioReplace.AudioResample.AudioReverb.AudioReverse.AudioSampleRate.AudioSpectralMap.AudioSpectralTransformation.AudioSplit.AudioStop.AudioStream.AudioStreams.AudioTimeStretch.AudioTrackApply.AudioTrackSelection.AudioTrim.AudioType.AugmentedPolyhedron.AugmentedSymmetricPolynomial.Authenticate.Authentication.AuthenticationDialog.AutoAction.Autocomplete.AutocompletionFunction.AutoCopy.AutocorrelationTest.AutoDelete.AutoEvaluateEvents.AutoGeneratedPackage.AutoIndent.AutoIndentSpacings.AutoItalicWords.AutoloadPath.AutoMatch.Automatic.AutomaticImageSize.AutoMultiplicationSymbol.AutoNumberFormatting.AutoOpenNotebooks.AutoOpenPalettes.AutoOperatorRenderings.AutoQuoteCharacters.AutoRefreshed.AutoRemove.AutorunSequencing.AutoScaling.AutoScroll.AutoSpacing.AutoStyleOptions.AutoStyleWords.AutoSubmitting.Axes.AxesEdge.AxesLabel.AxesOrigin.AxesStyle.AxiomaticTheory.Axis.Axis3DBox.Axis3DBoxOptions.AxisBox.AxisBoxOptions.AxisLabel.AxisObject.AxisStyle.BabyMonsterGroupB.Back.BackFaceColor.BackFaceGlowColor.BackFaceOpacity.BackFaceSpecularColor.BackFaceSpecularExponent.BackFaceSurfaceAppearance.BackFaceTexture.Background.BackgroundAppearance.BackgroundTasksSettings.Backslash.Backsubstitution.Backward.Ball.Band.BandpassFilter.BandstopFilter.BarabasiAlbertGraphDistribution.BarChart.BarChart3D.BarcodeImage.BarcodeRecognize.BaringhausHenzeTest.BarLegend.BarlowProschanImportance.BarnesG.BarOrigin.BarSpacing.BartlettHannWindow.BartlettWindow.BaseDecode.BaseEncode.BaseForm.Baseline.BaselinePosition.BaseStyle.BasicRecurrentLayer.BatchNormalizationLayer.BatchSize.BatesDistribution.BattleLemarieWavelet.BayesianMaximization.BayesianMaximizationObject.BayesianMinimization.BayesianMinimizationObject.Because.BeckmannDistribution.Beep.Before.Begin.BeginDialogPacket.BeginPackage.BellB.BellY.Below.BenfordDistribution.BeniniDistribution.BenktanderGibratDistribution.BenktanderWeibullDistribution.BernoulliB.BernoulliDistribution.BernoulliGraphDistribution.BernoulliProcess.BernsteinBasis.BesagL.BesselFilterModel.BesselI.BesselJ.BesselJZero.BesselK.BesselY.BesselYZero.Beta.BetaBinomialDistribution.BetaDistribution.BetaNegativeBinomialDistribution.BetaPrimeDistribution.BetaRegularized.Between.BetweennessCentrality.Beveled.BeveledPolyhedron.BezierCurve.BezierCurve3DBox.BezierCurve3DBoxOptions.BezierCurveBox.BezierCurveBoxOptions.BezierFunction.BilateralFilter.BilateralLaplaceTransform.BilateralZTransform.Binarize.BinaryDeserialize.BinaryDistance.BinaryFormat.BinaryImageQ.BinaryRead.BinaryReadList.BinarySerialize.BinaryWrite.BinCounts.BinLists.BinnedVariogramList.Binomial.BinomialDistribution.BinomialPointProcess.BinomialProcess.BinormalDistribution.BiorthogonalSplineWavelet.BioSequence.BioSequenceBackTranslateList.BioSequenceComplement.BioSequenceInstances.BioSequenceModify.BioSequencePlot.BioSequenceQ.BioSequenceReverseComplement.BioSequenceTranscribe.BioSequenceTranslate.BipartiteGraphQ.BiquadraticFilterModel.BirnbaumImportance.BirnbaumSaundersDistribution.BitAnd.BitClear.BitGet.BitLength.BitNot.BitOr.BitRate.BitSet.BitShiftLeft.BitShiftRight.BitXor.BiweightLocation.BiweightMidvariance.Black.BlackmanHarrisWindow.BlackmanNuttallWindow.BlackmanWindow.Blank.BlankForm.BlankNullSequence.BlankSequence.Blend.Block.BlockchainAddressData.BlockchainBase.BlockchainBlockData.BlockchainContractValue.BlockchainData.BlockchainGet.BlockchainKeyEncode.BlockchainPut.BlockchainTokenData.BlockchainTransaction.BlockchainTransactionData.BlockchainTransactionSign.BlockchainTransactionSubmit.BlockDiagonalMatrix.BlockLowerTriangularMatrix.BlockMap.BlockRandom.BlockUpperTriangularMatrix.BlomqvistBeta.BlomqvistBetaTest.Blue.Blur.Blurring.BodePlot.BohmanWindow.Bold.Bond.BondCount.BondLabels.BondLabelStyle.BondList.BondQ.Bookmarks.Boole.BooleanConsecutiveFunction.BooleanConvert.BooleanCountingFunction.BooleanFunction.BooleanGraph.BooleanMaxterms.BooleanMinimize.BooleanMinterms.BooleanQ.BooleanRegion.Booleans.BooleanStrings.BooleanTable.BooleanVariables.BorderDimensions.BorelTannerDistribution.Bottom.BottomHatTransform.BoundaryDiscretizeGraphics.BoundaryDiscretizeRegion.BoundaryMesh.BoundaryMeshRegion.BoundaryMeshRegionQ.BoundaryStyle.BoundedRegionQ.BoundingRegion.Bounds.Box.BoxBaselineShift.BoxData.BoxDimensions.Boxed.Boxes.BoxForm.BoxFormFormatTypes.BoxFrame.BoxID.BoxMargins.BoxMatrix.BoxObject.BoxRatios.BoxRotation.BoxRotationPoint.BoxStyle.BoxWhiskerChart.Bra.BracketingBar.BraKet.BrayCurtisDistance.BreadthFirstScan.Break.BridgeData.BrightnessEqualize.BroadcastStationData.Brown.BrownForsytheTest.BrownianBridgeProcess.BrowserCategory.BSplineBasis.BSplineCurve.BSplineCurve3DBox.BSplineCurve3DBoxOptions.BSplineCurveBox.BSplineCurveBoxOptions.BSplineFunction.BSplineSurface.BSplineSurface3DBox.BSplineSurface3DBoxOptions.BubbleChart.BubbleChart3D.BubbleScale.BubbleSizes.BuckyballGraph.BuildCompiledComponent.BuildingData.BulletGauge.BusinessDayQ.ButterflyGraph.ButterworthFilterModel.Button.ButtonBar.ButtonBox.ButtonBoxOptions.ButtonCell.ButtonContents.ButtonData.ButtonEvaluator.ButtonExpandable.ButtonFrame.ButtonFunction.ButtonMargins.ButtonMinHeight.ButtonNote.ButtonNotebook.ButtonSource.ButtonStyle.ButtonStyleMenuListing.Byte.ByteArray.ByteArrayFormat.ByteArrayFormatQ.ByteArrayQ.ByteArrayToString.ByteCount.ByteOrdering.C.CachedValue.CacheGraphics.CachePersistence.CalendarConvert.CalendarData.CalendarType.Callout.CalloutMarker.CalloutStyle.CallPacket.CanberraDistance.Cancel.CancelButton.CandlestickChart.CanonicalGraph.CanonicalizePolygon.CanonicalizePolyhedron.CanonicalizeRegion.CanonicalName.CanonicalWarpingCorrespondence.CanonicalWarpingDistance.CantorMesh.CantorStaircase.Canvas.Cap.CapForm.CapitalDifferentialD.Capitalize.CapsuleShape.CaptureRunning.CaputoD.CardinalBSplineBasis.CarlemanLinearize.CarlsonRC.CarlsonRD.CarlsonRE.CarlsonRF.CarlsonRG.CarlsonRJ.CarlsonRK.CarlsonRM.CarmichaelLambda.CaseOrdering.Cases.CaseSensitive.Cashflow.Casoratian.Cast.Catalan.CatalanNumber.Catch.CategoricalDistribution.Catenate.CatenateLayer.CauchyDistribution.CauchyMatrix.CauchyPointProcess.CauchyWindow.CayleyGraph.CDF.CDFDeploy.CDFInformation.CDFWavelet.Ceiling.CelestialSystem.Cell.CellAutoOverwrite.CellBaseline.CellBoundingBox.CellBracketOptions.CellChangeTimes.CellContents.CellContext.CellDingbat.CellDingbatMargin.CellDynamicExpression.CellEditDuplicate.CellElementsBoundingBox.CellElementSpacings.CellEpilog.CellEvaluationDuplicate.CellEvaluationFunction.CellEvaluationLanguage.CellEventActions.CellFrame.CellFrameColor.CellFrameLabelMargins.CellFrameLabels.CellFrameMargins.CellFrameStyle.CellGroup.CellGroupData.CellGrouping.CellGroupingRules.CellHorizontalScrolling.CellID.CellInsertionPointCell.CellLabel.CellLabelAutoDelete.CellLabelMargins.CellLabelPositioning.CellLabelStyle.CellLabelTemplate.CellMargins.CellObject.CellOpen.CellPrint.CellProlog.Cells.CellSize.CellStyle.CellTags.CellTrayPosition.CellTrayWidgets.CellularAutomaton.CensoredDistribution.Censoring.Center.CenterArray.CenterDot.CenteredInterval.CentralFeature.CentralMoment.CentralMomentGeneratingFunction.Cepstrogram.CepstrogramArray.CepstrumArray.CForm.ChampernowneNumber.ChangeOptions.ChannelBase.ChannelBrokerAction.ChannelDatabin.ChannelHistoryLength.ChannelListen.ChannelListener.ChannelListeners.ChannelListenerWait.ChannelObject.ChannelPreSendFunction.ChannelReceiverFunction.ChannelSend.ChannelSubscribers.ChanVeseBinarize.Character.CharacterCounts.CharacterEncoding.CharacterEncodingsPath.CharacteristicFunction.CharacteristicPolynomial.CharacterName.CharacterNormalize.CharacterRange.Characters.ChartBaseStyle.ChartElementData.ChartElementDataFunction.ChartElementFunction.ChartElements.ChartLabels.ChartLayout.ChartLegends.ChartStyle.Chebyshev1FilterModel.Chebyshev2FilterModel.ChebyshevDistance.ChebyshevT.ChebyshevU.Check.CheckAbort.CheckAll.CheckArguments.Checkbox.CheckboxBar.CheckboxBox.CheckboxBoxOptions.ChemicalConvert.ChemicalData.ChemicalFormula.ChemicalInstance.ChemicalReaction.ChessboardDistance.ChiDistribution.ChineseRemainder.ChiSquareDistribution.ChoiceButtons.ChoiceDialog.CholeskyDecomposition.Chop.ChromaticityPlot.ChromaticityPlot3D.ChromaticPolynomial.Circle.CircleBox.CircleDot.CircleMinus.CirclePlus.CirclePoints.CircleThrough.CircleTimes.CirculantGraph.CircularArcThrough.CircularOrthogonalMatrixDistribution.CircularQuaternionMatrixDistribution.CircularRealMatrixDistribution.CircularSymplecticMatrixDistribution.CircularUnitaryMatrixDistribution.Circumsphere.CityData.ClassifierFunction.ClassifierInformation.ClassifierMeasurements.ClassifierMeasurementsObject.Classify.ClassPriors.Clear.ClearAll.ClearAttributes.ClearCookies.ClearPermissions.ClearSystemCache.ClebschGordan.ClickPane.ClickToCopy.ClickToCopyEnabled.Clip.ClipboardNotebook.ClipFill.ClippingStyle.ClipPlanes.ClipPlanesStyle.ClipRange.Clock.ClockGauge.ClockwiseContourIntegral.Close.Closed.CloseKernels.ClosenessCentrality.Closing.ClosingAutoSave.ClosingEvent.CloudAccountData.CloudBase.CloudConnect.CloudConnections.CloudDeploy.CloudDirectory.CloudDisconnect.CloudEvaluate.CloudExport.CloudExpression.CloudExpressions.CloudFunction.CloudGet.CloudImport.CloudLoggingData.CloudObject.CloudObjectInformation.CloudObjectInformationData.CloudObjectNameFormat.CloudObjects.CloudObjectURLType.CloudPublish.CloudPut.CloudRenderingMethod.CloudSave.CloudShare.CloudSubmit.CloudSymbol.CloudUnshare.CloudUserID.ClusterClassify.ClusterDissimilarityFunction.ClusteringComponents.ClusteringMeasurements.ClusteringTree.CMYKColor.Coarse.CodeAssistOptions.Coefficient.CoefficientArrays.CoefficientDomain.CoefficientList.CoefficientRules.CoifletWavelet.Collect.CollinearPoints.Colon.ColonForm.ColorBalance.ColorCombine.ColorConvert.ColorCoverage.ColorData.ColorDataFunction.ColorDetect.ColorDistance.ColorFunction.ColorFunctionBinning.ColorFunctionScaling.Colorize.ColorNegate.ColorOutput.ColorProfileData.ColorQ.ColorQuantize.ColorReplace.ColorRules.ColorSelectorSettings.ColorSeparate.ColorSetter.ColorSetterBox.ColorSetterBoxOptions.ColorSlider.ColorsNear.ColorSpace.ColorToneMapping.Column.ColumnAlignments.ColumnBackgrounds.ColumnForm.ColumnLines.ColumnsEqual.ColumnSpacings.ColumnWidths.CombinatorB.CombinatorC.CombinatorI.CombinatorK.CombinatorS.CombinatorW.CombinatorY.CombinedEntityClass.CombinerFunction.CometData.CommonDefaultFormatTypes.Commonest.CommonestFilter.CommonName.CommonUnits.CommunityBoundaryStyle.CommunityGraphPlot.CommunityLabels.CommunityRegionStyle.CompanyData.CompatibleUnitQ.CompilationOptions.CompilationTarget.Compile.Compiled.CompiledCodeFunction.CompiledComponent.CompiledExpressionDeclaration.CompiledFunction.CompiledLayer.CompilerCallback.CompilerEnvironment.CompilerEnvironmentAppend.CompilerEnvironmentAppendTo.CompilerEnvironmentObject.CompilerOptions.Complement.ComplementedEntityClass.CompleteGraph.CompleteGraphQ.CompleteIntegral.CompleteKaryTree.CompletionsListPacket.Complex.ComplexArrayPlot.ComplexContourPlot.Complexes.ComplexExpand.ComplexInfinity.ComplexityFunction.ComplexListPlot.ComplexPlot.ComplexPlot3D.ComplexRegionPlot.ComplexStreamPlot.ComplexVectorPlot.ComponentMeasurements.ComponentwiseContextMenu.Compose.ComposeList.ComposeSeries.CompositeQ.Composition.CompoundElement.CompoundExpression.CompoundPoissonDistribution.CompoundPoissonProcess.CompoundRenewalProcess.Compress.CompressedData.CompressionLevel.ComputeUncertainty.ConcaveHullMesh.Condition.ConditionalExpression.Conditioned.Cone.ConeBox.ConfidenceLevel.ConfidenceRange.ConfidenceTransform.ConfigurationPath.Confirm.ConfirmAssert.ConfirmBy.ConfirmMatch.ConfirmQuiet.ConformationMethod.ConformAudio.ConformImages.Congruent.ConicGradientFilling.ConicHullRegion.ConicHullRegion3DBox.ConicHullRegion3DBoxOptions.ConicHullRegionBox.ConicHullRegionBoxOptions.ConicOptimization.Conjugate.ConjugateTranspose.Conjunction.Connect.ConnectedComponents.ConnectedGraphComponents.ConnectedGraphQ.ConnectedMeshComponents.ConnectedMoleculeComponents.ConnectedMoleculeQ.ConnectionSettings.ConnectLibraryCallbackFunction.ConnectSystemModelComponents.ConnectSystemModelController.ConnesWindow.ConoverTest.ConservativeConvectionPDETerm.ConsoleMessage.Constant.ConstantArray.ConstantArrayLayer.ConstantImage.ConstantPlusLayer.ConstantRegionQ.Constants.ConstantTimesLayer.ConstellationData.ConstrainedMax.ConstrainedMin.Construct.Containing.ContainsAll.ContainsAny.ContainsExactly.ContainsNone.ContainsOnly.ContentDetectorFunction.ContentFieldOptions.ContentLocationFunction.ContentObject.ContentPadding.ContentsBoundingBox.ContentSelectable.ContentSize.Context.ContextMenu.Contexts.ContextToFileName.Continuation.Continue.ContinuedFraction.ContinuedFractionK.ContinuousAction.ContinuousMarkovProcess.ContinuousTask.ContinuousTimeModelQ.ContinuousWaveletData.ContinuousWaveletTransform.ContourDetect.ContourGraphics.ContourIntegral.ContourLabels.ContourLines.ContourPlot.ContourPlot3D.Contours.ContourShading.ContourSmoothing.ContourStyle.ContraharmonicMean.ContrastiveLossLayer.Control.ControlActive.ControlAlignment.ControlGroupContentsBox.ControllabilityGramian.ControllabilityMatrix.ControllableDecomposition.ControllableModelQ.ControllerDuration.ControllerInformation.ControllerInformationData.ControllerLinking.ControllerManipulate.ControllerMethod.ControllerPath.ControllerState.ControlPlacement.ControlsRendering.ControlType.ConvectionPDETerm.Convergents.ConversionOptions.ConversionRules.ConvertToPostScript.ConvertToPostScriptPacket.ConvexHullMesh.ConvexHullRegion.ConvexOptimization.ConvexPolygonQ.ConvexPolyhedronQ.ConvexRegionQ.ConvolutionLayer.Convolve.ConwayGroupCo1.ConwayGroupCo2.ConwayGroupCo3.CookieFunction.Cookies.CoordinateBoundingBox.CoordinateBoundingBoxArray.CoordinateBounds.CoordinateBoundsArray.CoordinateChartData.CoordinatesToolOptions.CoordinateTransform.CoordinateTransformData.CoplanarPoints.CoprimeQ.Coproduct.CopulaDistribution.Copyable.CopyDatabin.CopyDirectory.CopyFile.CopyFunction.CopyTag.CopyToClipboard.CoreNilpotentDecomposition.CornerFilter.CornerNeighbors.Correlation.CorrelationDistance.CorrelationFunction.CorrelationTest.Cos.Cosh.CoshIntegral.CosineDistance.CosineWindow.CosIntegral.Cot.Coth.CoulombF.CoulombG.CoulombH1.CoulombH2.Count.CountDistinct.CountDistinctBy.CounterAssignments.CounterBox.CounterBoxOptions.CounterClockwiseContourIntegral.CounterEvaluator.CounterFunction.CounterIncrements.CounterStyle.CounterStyleMenuListing.CountRoots.CountryData.Counts.CountsBy.Covariance.CovarianceEstimatorFunction.CovarianceFunction.CoxianDistribution.CoxIngersollRossProcess.CoxModel.CoxModelFit.CramerVonMisesTest.CreateArchive.CreateCellID.CreateChannel.CreateCloudExpression.CreateCompilerEnvironment.CreateDatabin.CreateDataStructure.CreateDataSystemModel.CreateDialog.CreateDirectory.CreateDocument.CreateFile.CreateIntermediateDirectories.CreateLicenseEntitlement.CreateManagedLibraryExpression.CreateNotebook.CreatePacletArchive.CreatePalette.CreatePermissionsGroup.CreateScheduledTask.CreateSearchIndex.CreateSystemModel.CreateTemporary.CreateTypeInstance.CreateUUID.CreateWindow.CriterionFunction.CriticalityFailureImportance.CriticalitySuccessImportance.CriticalSection.Cross.CrossEntropyLossLayer.CrossingCount.CrossingDetect.CrossingPolygon.CrossMatrix.Csc.Csch.CSGRegion.CSGRegionQ.CSGRegionTree.CTCLossLayer.Cube.CubeRoot.Cubics.Cuboid.CuboidBox.CuboidBoxOptions.Cumulant.CumulantGeneratingFunction.CumulativeFeatureImpactPlot.Cup.CupCap.Curl.CurlyDoubleQuote.CurlyQuote.CurrencyConvert.CurrentDate.CurrentImage.CurrentNotebookImage.CurrentScreenImage.CurrentValue.Curry.CurryApplied.CurvatureFlowFilter.CurveClosed.Cyan.CycleGraph.CycleIndexPolynomial.Cycles.CyclicGroup.Cyclotomic.Cylinder.CylinderBox.CylinderBoxOptions.CylindricalDecomposition.CylindricalDecompositionFunction.D.DagumDistribution.DamData.DamerauLevenshteinDistance.DampingFactor.Darker.Dashed.Dashing.DatabaseConnect.DatabaseDisconnect.DatabaseReference.Databin.DatabinAdd.DatabinRemove.Databins.DatabinSubmit.DatabinUpload.DataCompression.DataDistribution.DataRange.DataReversed.Dataset.DatasetDisplayPanel.DatasetTheme.DataStructure.DataStructureQ.Date.DateBounds.Dated.DateDelimiters.DateDifference.DatedUnit.DateFormat.DateFunction.DateGranularity.DateHistogram.DateInterval.DateList.DateListLogPlot.DateListPlot.DateListStepPlot.DateObject.DateObjectQ.DateOverlapsQ.DatePattern.DatePlus.DateRange.DateReduction.DateScale.DateSelect.DateString.DateTicksFormat.DateValue.DateWithinQ.DaubechiesWavelet.DavisDistribution.DawsonF.DayCount.DayCountConvention.DayHemisphere.DaylightQ.DayMatchQ.DayName.DayNightTerminator.DayPlus.DayRange.DayRound.DeBruijnGraph.DeBruijnSequence.Debug.DebugTag.Decapitalize.Decimal.DecimalForm.DeclareCompiledComponent.DeclareKnownSymbols.DeclarePackage.Decompose.DeconvolutionLayer.Decrement.Decrypt.DecryptFile.DedekindEta.DeepSpaceProbeData.Default.Default2DTool.Default3DTool.DefaultAttachedCellStyle.DefaultAxesStyle.DefaultBaseStyle.DefaultBoxStyle.DefaultButton.DefaultColor.DefaultControlPlacement.DefaultDockedCellStyle.DefaultDuplicateCellStyle.DefaultDuration.DefaultElement.DefaultFaceGridsStyle.DefaultFieldHintStyle.DefaultFont.DefaultFontProperties.DefaultFormatType.DefaultFrameStyle.DefaultFrameTicksStyle.DefaultGridLinesStyle.DefaultInlineFormatType.DefaultInputFormatType.DefaultLabelStyle.DefaultMenuStyle.DefaultNaturalLanguage.DefaultNewCellStyle.DefaultNewInlineCellStyle.DefaultNotebook.DefaultOptions.DefaultOutputFormatType.DefaultPrintPrecision.DefaultStyle.DefaultStyleDefinitions.DefaultTextFormatType.DefaultTextInlineFormatType.DefaultTicksStyle.DefaultTooltipStyle.DefaultValue.DefaultValues.Defer.DefineExternal.DefineInputStreamMethod.DefineOutputStreamMethod.DefineResourceFunction.Definition.Degree.DegreeCentrality.DegreeGraphDistribution.DegreeLexicographic.DegreeReverseLexicographic.DEigensystem.DEigenvalues.Deinitialization.Del.DelaunayMesh.Delayed.Deletable.Delete.DeleteAdjacentDuplicates.DeleteAnomalies.DeleteBorderComponents.DeleteCases.DeleteChannel.DeleteCloudExpression.DeleteContents.DeleteDirectory.DeleteDuplicates.DeleteDuplicatesBy.DeleteElements.DeleteFile.DeleteMissing.DeleteObject.DeletePermissionsKey.DeleteSearchIndex.DeleteSmallComponents.DeleteStopwords.DeleteWithContents.DeletionWarning.DelimitedArray.DelimitedSequence.Delimiter.DelimiterAutoMatching.DelimiterFlashTime.DelimiterMatching.Delimiters.DeliveryFunction.Dendrogram.Denominator.DensityGraphics.DensityHistogram.DensityPlot.DensityPlot3D.DependentVariables.Deploy.Deployed.Depth.DepthFirstScan.Derivative.DerivativeFilter.DerivativePDETerm.DerivedKey.DescriptorStateSpace.DesignMatrix.DestroyAfterEvaluation.Det.DeviceClose.DeviceConfigure.DeviceExecute.DeviceExecuteAsynchronous.DeviceObject.DeviceOpen.DeviceOpenQ.DeviceRead.DeviceReadBuffer.DeviceReadLatest.DeviceReadList.DeviceReadTimeSeries.Devices.DeviceStreams.DeviceWrite.DeviceWriteBuffer.DGaussianWavelet.DiacriticalPositioning.Diagonal.DiagonalizableMatrixQ.DiagonalMatrix.DiagonalMatrixQ.Dialog.DialogIndent.DialogInput.DialogLevel.DialogNotebook.DialogProlog.DialogReturn.DialogSymbols.Diamond.DiamondMatrix.DiceDissimilarity.DictionaryLookup.DictionaryWordQ.DifferenceDelta.DifferenceOrder.DifferenceQuotient.DifferenceRoot.DifferenceRootReduce.Differences.DifferentialD.DifferentialRoot.DifferentialRootReduce.DifferentiatorFilter.DiffusionPDETerm.DiggleGatesPointProcess.DiggleGrattonPointProcess.DigitalSignature.DigitBlock.DigitBlockMinimum.DigitCharacter.DigitCount.DigitQ.DihedralAngle.DihedralGroup.Dilation.DimensionalCombinations.DimensionalMeshComponents.DimensionReduce.DimensionReducerFunction.DimensionReduction.Dimensions.DiracComb.DiracDelta.DirectedEdge.DirectedEdges.DirectedGraph.DirectedGraphQ.DirectedInfinity.Direction.DirectionalLight.Directive.Directory.DirectoryName.DirectoryQ.DirectoryStack.DirichletBeta.DirichletCharacter.DirichletCondition.DirichletConvolve.DirichletDistribution.DirichletEta.DirichletL.DirichletLambda.DirichletTransform.DirichletWindow.DisableConsolePrintPacket.DisableFormatting.DiscreteAsymptotic.DiscreteChirpZTransform.DiscreteConvolve.DiscreteDelta.DiscreteHadamardTransform.DiscreteIndicator.DiscreteInputOutputModel.DiscreteLimit.DiscreteLQEstimatorGains.DiscreteLQRegulatorGains.DiscreteLyapunovSolve.DiscreteMarkovProcess.DiscreteMaxLimit.DiscreteMinLimit.DiscretePlot.DiscretePlot3D.DiscreteRatio.DiscreteRiccatiSolve.DiscreteShift.DiscreteTimeModelQ.DiscreteUniformDistribution.DiscreteVariables.DiscreteWaveletData.DiscreteWaveletPacketTransform.DiscreteWaveletTransform.DiscretizeGraphics.DiscretizeRegion.Discriminant.DisjointQ.Disjunction.Disk.DiskBox.DiskBoxOptions.DiskMatrix.DiskSegment.Dispatch.DispatchQ.DispersionEstimatorFunction.Display.DisplayAllSteps.DisplayEndPacket.DisplayForm.DisplayFunction.DisplayPacket.DisplayRules.DisplayString.DisplayTemporary.DisplayWith.DisplayWithRef.DisplayWithVariable.DistanceFunction.DistanceMatrix.DistanceTransform.Distribute.Distributed.DistributedContexts.DistributeDefinitions.DistributionChart.DistributionDomain.DistributionFitTest.DistributionParameterAssumptions.DistributionParameterQ.Dithering.Div.Divergence.Divide.DivideBy.Dividers.DivideSides.Divisible.Divisors.DivisorSigma.DivisorSum.DMSList.DMSString.Do.DockedCell.DockedCells.DocumentGenerator.DocumentGeneratorInformation.DocumentGeneratorInformationData.DocumentGenerators.DocumentNotebook.DocumentWeightingRules.Dodecahedron.DomainRegistrationInformation.DominantColors.DominatorTreeGraph.DominatorVertexList.DOSTextFormat.Dot.DotDashed.DotEqual.DotLayer.DotPlusLayer.Dotted.DoubleBracketingBar.DoubleContourIntegral.DoubleDownArrow.DoubleLeftArrow.DoubleLeftRightArrow.DoubleLeftTee.DoubleLongLeftArrow.DoubleLongLeftRightArrow.DoubleLongRightArrow.DoubleRightArrow.DoubleRightTee.DoubleUpArrow.DoubleUpDownArrow.DoubleVerticalBar.DoublyInfinite.Down.DownArrow.DownArrowBar.DownArrowUpArrow.DownLeftRightVector.DownLeftTeeVector.DownLeftVector.DownLeftVectorBar.DownRightTeeVector.DownRightVector.DownRightVectorBar.Downsample.DownTee.DownTeeArrow.DownValues.DownValuesFunction.DragAndDrop.DrawBackFaces.DrawEdges.DrawFrontFaces.DrawHighlighted.DrazinInverse.Drop.DropoutLayer.DropShadowing.DSolve.DSolveChangeVariables.DSolveValue.Dt.DualLinearProgramming.DualPlanarGraph.DualPolyhedron.DualSystemsModel.DumpGet.DumpSave.DuplicateFreeQ.Duration.Dynamic.DynamicBox.DynamicBoxOptions.DynamicEvaluationTimeout.DynamicGeoGraphics.DynamicImage.DynamicLocation.DynamicModule.DynamicModuleBox.DynamicModuleBoxOptions.DynamicModuleParent.DynamicModuleValues.DynamicName.DynamicNamespace.DynamicReference.DynamicSetting.DynamicUpdating.DynamicWrapper.DynamicWrapperBox.DynamicWrapperBoxOptions.E.EarthImpactData.EarthquakeData.EccentricityCentrality.Echo.EchoEvaluation.EchoFunction.EchoLabel.EchoTiming.EclipseType.EdgeAdd.EdgeBetweennessCentrality.EdgeCapacity.EdgeCapForm.EdgeChromaticNumber.EdgeColor.EdgeConnectivity.EdgeContract.EdgeCost.EdgeCount.EdgeCoverQ.EdgeCycleMatrix.EdgeDashing.EdgeDelete.EdgeDetect.EdgeForm.EdgeIndex.EdgeJoinForm.EdgeLabeling.EdgeLabels.EdgeLabelStyle.EdgeList.EdgeOpacity.EdgeQ.EdgeRenderingFunction.EdgeRules.EdgeShapeFunction.EdgeStyle.EdgeTaggedGraph.EdgeTaggedGraphQ.EdgeTags.EdgeThickness.EdgeTransitiveGraphQ.EdgeValueRange.EdgeValueSizes.EdgeWeight.EdgeWeightedGraphQ.Editable.EditButtonSettings.EditCellTagsSettings.EditDistance.EffectiveInterest.Eigensystem.Eigenvalues.EigenvectorCentrality.Eigenvectors.Element.ElementData.ElementwiseLayer.ElidedForms.Eliminate.EliminationOrder.Ellipsoid.EllipticE.EllipticExp.EllipticExpPrime.EllipticF.EllipticFilterModel.EllipticK.EllipticLog.EllipticNomeQ.EllipticPi.EllipticReducedHalfPeriods.EllipticTheta.EllipticThetaPrime.EmbedCode.EmbeddedHTML.EmbeddedService.EmbeddedSQLEntityClass.EmbeddedSQLExpression.EmbeddingLayer.EmbeddingObject.EmitSound.EmphasizeSyntaxErrors.EmpiricalDistribution.Empty.EmptyGraphQ.EmptyRegion.EmptySpaceF.EnableConsolePrintPacket.Enabled.Enclose.Encode.Encrypt.EncryptedObject.EncryptFile.End.EndAdd.EndDialogPacket.EndOfBuffer.EndOfFile.EndOfLine.EndOfString.EndPackage.EngineEnvironment.EngineeringForm.Enter.EnterExpressionPacket.EnterTextPacket.Entity.EntityClass.EntityClassList.EntityCopies.EntityFunction.EntityGroup.EntityInstance.EntityList.EntityPrefetch.EntityProperties.EntityProperty.EntityPropertyClass.EntityRegister.EntityStore.EntityStores.EntityTypeName.EntityUnregister.EntityValue.Entropy.EntropyFilter.Environment.Epilog.EpilogFunction.Equal.EqualColumns.EqualRows.EqualTilde.EqualTo.EquatedTo.Equilibrium.EquirippleFilterKernel.Equivalent.Erf.Erfc.Erfi.ErlangB.ErlangC.ErlangDistribution.Erosion.ErrorBox.ErrorBoxOptions.ErrorNorm.ErrorPacket.ErrorsDialogSettings.EscapeRadius.EstimatedBackground.EstimatedDistribution.EstimatedPointNormals.EstimatedPointProcess.EstimatedProcess.EstimatedVariogramModel.EstimatorGains.EstimatorRegulator.EuclideanDistance.EulerAngles.EulerCharacteristic.EulerE.EulerGamma.EulerianGraphQ.EulerMatrix.EulerPhi.Evaluatable.Evaluate.Evaluated.EvaluatePacket.EvaluateScheduledTask.EvaluationBox.EvaluationCell.EvaluationCompletionAction.EvaluationData.EvaluationElements.EvaluationEnvironment.EvaluationMode.EvaluationMonitor.EvaluationNotebook.EvaluationObject.EvaluationOrder.EvaluationPrivileges.EvaluationRateLimit.Evaluator.EvaluatorNames.EvenQ.EventData.EventEvaluator.EventHandler.EventHandlerTag.EventLabels.EventSeries.ExactBlackmanWindow.ExactNumberQ.ExactRootIsolation.ExampleData.Except.ExcludedContexts.ExcludedForms.ExcludedLines.ExcludedPhysicalQuantities.ExcludePods.Exclusions.ExclusionsStyle.Exists.Exit.ExitDialog.ExoplanetData.Exp.Expand.ExpandAll.ExpandDenominator.ExpandFileName.ExpandNumerator.Expectation.ExpectationE.ExpectedValue.ExpGammaDistribution.ExpIntegralE.ExpIntegralEi.ExpirationDate.Exponent.ExponentFunction.ExponentialDistribution.ExponentialFamily.ExponentialGeneratingFunction.ExponentialMovingAverage.ExponentialPowerDistribution.ExponentPosition.ExponentStep.Export.ExportAutoReplacements.ExportByteArray.ExportForm.ExportPacket.ExportString.Expression.ExpressionCell.ExpressionGraph.ExpressionPacket.ExpressionTree.ExpressionUUID.ExpToTrig.ExtendedEntityClass.ExtendedGCD.Extension.ExtentElementFunction.ExtentMarkers.ExtentSize.ExternalBundle.ExternalCall.ExternalDataCharacterEncoding.ExternalEvaluate.ExternalFunction.ExternalFunctionName.ExternalIdentifier.ExternalObject.ExternalOptions.ExternalSessionObject.ExternalSessions.ExternalStorageBase.ExternalStorageDownload.ExternalStorageGet.ExternalStorageObject.ExternalStoragePut.ExternalStorageUpload.ExternalTypeSignature.ExternalValue.Extract.ExtractArchive.ExtractLayer.ExtractPacletArchive.ExtremeValueDistribution.FaceAlign.FaceForm.FaceGrids.FaceGridsStyle.FaceRecognize.FacialFeatures.Factor.FactorComplete.Factorial.Factorial2.FactorialMoment.FactorialMomentGeneratingFunction.FactorialPower.FactorInteger.FactorList.FactorSquareFree.FactorSquareFreeList.FactorTerms.FactorTermsList.Fail.Failure.FailureAction.FailureDistribution.FailureQ.False.FareySequence.FARIMAProcess.FeatureDistance.FeatureExtract.FeatureExtraction.FeatureExtractor.FeatureExtractorFunction.FeatureImpactPlot.FeatureNames.FeatureNearest.FeatureSpacePlot.FeatureSpacePlot3D.FeatureTypes.FeatureValueDependencyPlot.FeatureValueImpactPlot.FEDisableConsolePrintPacket.FeedbackLinearize.FeedbackSector.FeedbackSectorStyle.FeedbackType.FEEnableConsolePrintPacket.FetalGrowthData.Fibonacci.Fibonorial.FieldCompletionFunction.FieldHint.FieldHintStyle.FieldMasked.FieldSize.File.FileBaseName.FileByteCount.FileConvert.FileDate.FileExistsQ.FileExtension.FileFormat.FileFormatProperties.FileFormatQ.FileHandler.FileHash.FileInformation.FileName.FileNameDepth.FileNameDialogSettings.FileNameDrop.FileNameForms.FileNameJoin.FileNames.FileNameSetter.FileNameSplit.FileNameTake.FileNameToFormatList.FilePrint.FileSize.FileSystemMap.FileSystemScan.FileSystemTree.FileTemplate.FileTemplateApply.FileType.FilledCurve.FilledCurveBox.FilledCurveBoxOptions.FilledTorus.FillForm.Filling.FillingStyle.FillingTransform.FilteredEntityClass.FilterRules.FinancialBond.FinancialData.FinancialDerivative.FinancialIndicator.Find.FindAnomalies.FindArgMax.FindArgMin.FindChannels.FindClique.FindClusters.FindCookies.FindCurvePath.FindCycle.FindDevices.FindDistribution.FindDistributionParameters.FindDivisions.FindEdgeColoring.FindEdgeCover.FindEdgeCut.FindEdgeIndependentPaths.FindEquationalProof.FindEulerianCycle.FindExternalEvaluators.FindFaces.FindFile.FindFit.FindFormula.FindFundamentalCycles.FindGeneratingFunction.FindGeoLocation.FindGeometricConjectures.FindGeometricTransform.FindGraphCommunities.FindGraphIsomorphism.FindGraphPartition.FindHamiltonianCycle.FindHamiltonianPath.FindHiddenMarkovStates.FindImageText.FindIndependentEdgeSet.FindIndependentVertexSet.FindInstance.FindIntegerNullVector.FindIsomers.FindIsomorphicSubgraph.FindKClan.FindKClique.FindKClub.FindKPlex.FindLibrary.FindLinearRecurrence.FindList.FindMatchingColor.FindMaximum.FindMaximumCut.FindMaximumFlow.FindMaxValue.FindMeshDefects.FindMinimum.FindMinimumCostFlow.FindMinimumCut.FindMinValue.FindMoleculeSubstructure.FindPath.FindPeaks.FindPermutation.FindPlanarColoring.FindPointProcessParameters.FindPostmanTour.FindProcessParameters.FindRegionTransform.FindRepeat.FindRoot.FindSequenceFunction.FindSettings.FindShortestPath.FindShortestTour.FindSpanningTree.FindSubgraphIsomorphism.FindSystemModelEquilibrium.FindTextualAnswer.FindThreshold.FindTransientRepeat.FindVertexColoring.FindVertexCover.FindVertexCut.FindVertexIndependentPaths.Fine.FinishDynamic.FiniteAbelianGroupCount.FiniteGroupCount.FiniteGroupData.First.FirstCase.FirstPassageTimeDistribution.FirstPosition.FischerGroupFi22.FischerGroupFi23.FischerGroupFi24Prime.FisherHypergeometricDistribution.FisherRatioTest.FisherZDistribution.Fit.FitAll.FitRegularization.FittedModel.FixedOrder.FixedPoint.FixedPointList.FlashSelection.Flat.FlatShading.Flatten.FlattenAt.FlattenLayer.FlatTopWindow.FlightData.FlipView.Floor.FlowPolynomial.Fold.FoldList.FoldPair.FoldPairList.FoldWhile.FoldWhileList.FollowRedirects.Font.FontColor.FontFamily.FontForm.FontName.FontOpacity.FontPostScriptName.FontProperties.FontReencoding.FontSize.FontSlant.FontSubstitutions.FontTracking.FontVariations.FontWeight.For.ForAll.ForAllType.ForceVersionInstall.Format.FormatRules.FormatType.FormatTypeAutoConvert.FormatValues.FormBox.FormBoxOptions.FormControl.FormFunction.FormLayoutFunction.FormObject.FormPage.FormProtectionMethod.FormTheme.FormulaData.FormulaLookup.FortranForm.Forward.ForwardBackward.ForwardCloudCredentials.Fourier.FourierCoefficient.FourierCosCoefficient.FourierCosSeries.FourierCosTransform.FourierDCT.FourierDCTFilter.FourierDCTMatrix.FourierDST.FourierDSTMatrix.FourierMatrix.FourierParameters.FourierSequenceTransform.FourierSeries.FourierSinCoefficient.FourierSinSeries.FourierSinTransform.FourierTransform.FourierTrigSeries.FoxH.FoxHReduce.FractionalBrownianMotionProcess.FractionalD.FractionalGaussianNoiseProcess.FractionalPart.FractionBox.FractionBoxOptions.FractionLine.Frame.FrameBox.FrameBoxOptions.Framed.FrameInset.FrameLabel.Frameless.FrameListVideo.FrameMargins.FrameRate.FrameStyle.FrameTicks.FrameTicksStyle.FRatioDistribution.FrechetDistribution.FreeQ.FrenetSerretSystem.FrequencySamplingFilterKernel.FresnelC.FresnelF.FresnelG.FresnelS.Friday.FrobeniusNumber.FrobeniusSolve.FromAbsoluteTime.FromCharacterCode.FromCoefficientRules.FromContinuedFraction.FromDate.FromDateString.FromDigits.FromDMS.FromEntity.FromJulianDate.FromLetterNumber.FromPolarCoordinates.FromRawPointer.FromRomanNumeral.FromSphericalCoordinates.FromUnixTime.Front.FrontEndDynamicExpression.FrontEndEventActions.FrontEndExecute.FrontEndObject.FrontEndResource.FrontEndResourceString.FrontEndStackSize.FrontEndToken.FrontEndTokenExecute.FrontEndValueCache.FrontEndVersion.FrontFaceColor.FrontFaceGlowColor.FrontFaceOpacity.FrontFaceSpecularColor.FrontFaceSpecularExponent.FrontFaceSurfaceAppearance.FrontFaceTexture.Full.FullAxes.FullDefinition.FullForm.FullGraphics.FullInformationOutputRegulator.FullOptions.FullRegion.FullSimplify.Function.FunctionAnalytic.FunctionBijective.FunctionCompile.FunctionCompileExport.FunctionCompileExportByteArray.FunctionCompileExportLibrary.FunctionCompileExportString.FunctionContinuous.FunctionConvexity.FunctionDeclaration.FunctionDiscontinuities.FunctionDomain.FunctionExpand.FunctionInjective.FunctionInterpolation.FunctionLayer.FunctionMeromorphic.FunctionMonotonicity.FunctionPeriod.FunctionPoles.FunctionRange.FunctionSign.FunctionSingularities.FunctionSpace.FunctionSurjective.FussellVeselyImportance.GaborFilter.GaborMatrix.GaborWavelet.GainMargins.GainPhaseMargins.GalaxyData.GalleryView.Gamma.GammaDistribution.GammaRegularized.GapPenalty.GARCHProcess.GatedRecurrentLayer.Gather.GatherBy.GaugeFaceElementFunction.GaugeFaceStyle.GaugeFrameElementFunction.GaugeFrameSize.GaugeFrameStyle.GaugeLabels.GaugeMarkers.GaugeStyle.GaussianFilter.GaussianIntegers.GaussianMatrix.GaussianOrthogonalMatrixDistribution.GaussianSymplecticMatrixDistribution.GaussianUnitaryMatrixDistribution.GaussianWindow.GCD.GegenbauerC.General.GeneralizedLinearModelFit.GenerateAsymmetricKeyPair.GenerateConditions.GeneratedAssetFormat.GeneratedAssetLocation.GeneratedCell.GeneratedCellStyles.GeneratedDocumentBinding.GenerateDerivedKey.GenerateDigitalSignature.GenerateDocument.GeneratedParameters.GeneratedQuantityMagnitudes.GenerateFileSignature.GenerateHTTPResponse.GenerateSecuredAuthenticationKey.GenerateSymmetricKey.GeneratingFunction.GeneratorDescription.GeneratorHistoryLength.GeneratorOutputType.Generic.GenericCylindricalDecomposition.GenomeData.GenomeLookup.GeoAntipode.GeoArea.GeoArraySize.GeoBackground.GeoBoundary.GeoBoundingBox.GeoBounds.GeoBoundsRegion.GeoBoundsRegionBoundary.GeoBubbleChart.GeoCenter.GeoCircle.GeoContourPlot.GeoDensityPlot.GeodesicClosing.GeodesicDilation.GeodesicErosion.GeodesicOpening.GeodesicPolyhedron.GeoDestination.GeodesyData.GeoDirection.GeoDisk.GeoDisplacement.GeoDistance.GeoDistanceList.GeoElevationData.GeoEntities.GeoGraphics.GeoGraphPlot.GeoGraphValuePlot.GeogravityModelData.GeoGridDirectionDifference.GeoGridLines.GeoGridLinesStyle.GeoGridPosition.GeoGridRange.GeoGridRangePadding.GeoGridUnitArea.GeoGridUnitDistance.GeoGridVector.GeoGroup.GeoHemisphere.GeoHemisphereBoundary.GeoHistogram.GeoIdentify.GeoImage.GeoLabels.GeoLength.GeoListPlot.GeoLocation.GeologicalPeriodData.GeomagneticModelData.GeoMarker.GeometricAssertion.GeometricBrownianMotionProcess.GeometricDistribution.GeometricMean.GeometricMeanFilter.GeometricOptimization.GeometricScene.GeometricStep.GeometricStylingRules.GeometricTest.GeometricTransformation.GeometricTransformation3DBox.GeometricTransformation3DBoxOptions.GeometricTransformationBox.GeometricTransformationBoxOptions.GeoModel.GeoNearest.GeoOrientationData.GeoPath.GeoPolygon.GeoPosition.GeoPositionENU.GeoPositionXYZ.GeoProjection.GeoProjectionData.GeoRange.GeoRangePadding.GeoRegionValuePlot.GeoResolution.GeoScaleBar.GeoServer.GeoSmoothHistogram.GeoStreamPlot.GeoStyling.GeoStylingImageFunction.GeoVariant.GeoVector.GeoVectorENU.GeoVectorPlot.GeoVectorXYZ.GeoVisibleRegion.GeoVisibleRegionBoundary.GeoWithinQ.GeoZoomLevel.GestureHandler.GestureHandlerTag.Get.GetContext.GetEnvironment.GetFileName.GetLinebreakInformationPacket.GibbsPointProcess.Glaisher.GlobalClusteringCoefficient.GlobalPreferences.GlobalSession.Glow.GoldenAngle.GoldenRatio.GompertzMakehamDistribution.GoochShading.GoodmanKruskalGamma.GoodmanKruskalGammaTest.Goto.GouraudShading.Grad.Gradient.GradientFilter.GradientFittedMesh.GradientOrientationFilter.GrammarApply.GrammarRules.GrammarToken.Graph.Graph3D.GraphAssortativity.GraphAutomorphismGroup.GraphCenter.GraphComplement.GraphData.GraphDensity.GraphDiameter.GraphDifference.GraphDisjointUnion.GraphDistance.GraphDistanceMatrix.GraphEmbedding.GraphHighlight.GraphHighlightStyle.GraphHub.Graphics.Graphics3D.Graphics3DBox.Graphics3DBoxOptions.GraphicsArray.GraphicsBaseline.GraphicsBox.GraphicsBoxOptions.GraphicsColor.GraphicsColumn.GraphicsComplex.GraphicsComplex3DBox.GraphicsComplex3DBoxOptions.GraphicsComplexBox.GraphicsComplexBoxOptions.GraphicsContents.GraphicsData.GraphicsGrid.GraphicsGridBox.GraphicsGroup.GraphicsGroup3DBox.GraphicsGroup3DBoxOptions.GraphicsGroupBox.GraphicsGroupBoxOptions.GraphicsGrouping.GraphicsHighlightColor.GraphicsRow.GraphicsSpacing.GraphicsStyle.GraphIntersection.GraphJoin.GraphLayerLabels.GraphLayers.GraphLayerStyle.GraphLayout.GraphLinkEfficiency.GraphPeriphery.GraphPlot.GraphPlot3D.GraphPower.GraphProduct.GraphPropertyDistribution.GraphQ.GraphRadius.GraphReciprocity.GraphRoot.GraphStyle.GraphSum.GraphTree.GraphUnion.Gray.GrayLevel.Greater.GreaterEqual.GreaterEqualLess.GreaterEqualThan.GreaterFullEqual.GreaterGreater.GreaterLess.GreaterSlantEqual.GreaterThan.GreaterTilde.GreekStyle.Green.GreenFunction.Grid.GridBaseline.GridBox.GridBoxAlignment.GridBoxBackground.GridBoxDividers.GridBoxFrame.GridBoxItemSize.GridBoxItemStyle.GridBoxOptions.GridBoxSpacings.GridCreationSettings.GridDefaultElement.GridElementStyleOptions.GridFrame.GridFrameMargins.GridGraph.GridLines.GridLinesStyle.GridVideo.GroebnerBasis.GroupActionBase.GroupBy.GroupCentralizer.GroupElementFromWord.GroupElementPosition.GroupElementQ.GroupElements.GroupElementToWord.GroupGenerators.Groupings.GroupMultiplicationTable.GroupOpenerColor.GroupOpenerInsideFrame.GroupOrbits.GroupOrder.GroupPageBreakWithin.GroupSetwiseStabilizer.GroupStabilizer.GroupStabilizerChain.GroupTogetherGrouping.GroupTogetherNestedGrouping.GrowCutComponents.Gudermannian.GuidedFilter.GumbelDistribution.HaarWavelet.HadamardMatrix.HalfLine.HalfNormalDistribution.HalfPlane.HalfSpace.HalftoneShading.HamiltonianGraphQ.HammingDistance.HammingWindow.HandlerFunctions.HandlerFunctionsKeys.HankelH1.HankelH2.HankelMatrix.HankelTransform.HannPoissonWindow.HannWindow.HaradaNortonGroupHN.HararyGraph.HardcorePointProcess.HarmonicMean.HarmonicMeanFilter.HarmonicNumber.Hash.HatchFilling.HatchShading.Haversine.HazardFunction.Head.HeadCompose.HeaderAlignment.HeaderBackground.HeaderDisplayFunction.HeaderLines.Headers.HeaderSize.HeaderStyle.Heads.HeatFluxValue.HeatInsulationValue.HeatOutflowValue.HeatRadiationValue.HeatSymmetryValue.HeatTemperatureCondition.HeatTransferPDEComponent.HeatTransferValue.HeavisideLambda.HeavisidePi.HeavisideTheta.HeldGroupHe.HeldPart.HelmholtzPDEComponent.HelpBrowserLookup.HelpBrowserNotebook.HelpBrowserSettings.HelpViewerSettings.Here.HermiteDecomposition.HermiteH.Hermitian.HermitianMatrixQ.HessenbergDecomposition.Hessian.HeunB.HeunBPrime.HeunC.HeunCPrime.HeunD.HeunDPrime.HeunG.HeunGPrime.HeunT.HeunTPrime.HexadecimalCharacter.Hexahedron.HexahedronBox.HexahedronBoxOptions.HiddenItems.HiddenMarkovProcess.HiddenSurface.Highlighted.HighlightGraph.HighlightImage.HighlightMesh.HighlightString.HighpassFilter.HigmanSimsGroupHS.HilbertCurve.HilbertFilter.HilbertMatrix.Histogram.Histogram3D.HistogramDistribution.HistogramList.HistogramPointDensity.HistogramTransform.HistogramTransformInterpolation.HistoricalPeriodData.HitMissTransform.HITSCentrality.HjorthDistribution.HodgeDual.HoeffdingD.HoeffdingDTest.Hold.HoldAll.HoldAllComplete.HoldComplete.HoldFirst.HoldForm.HoldPattern.HoldRest.HolidayCalendar.HomeDirectory.HomePage.Horizontal.HorizontalForm.HorizontalGauge.HorizontalScrollPosition.HornerForm.HostLookup.HotellingTSquareDistribution.HoytDistribution.HTMLSave.HTTPErrorResponse.HTTPRedirect.HTTPRequest.HTTPRequestData.HTTPResponse.Hue.HumanGrowthData.HumpDownHump.HumpEqual.HurwitzLerchPhi.HurwitzZeta.HyperbolicDistribution.HypercubeGraph.HyperexponentialDistribution.Hyperfactorial.Hypergeometric0F1.Hypergeometric0F1Regularized.Hypergeometric1F1.Hypergeometric1F1Regularized.Hypergeometric2F1.Hypergeometric2F1Regularized.HypergeometricDistribution.HypergeometricPFQ.HypergeometricPFQRegularized.HypergeometricU.Hyperlink.HyperlinkAction.HyperlinkCreationSettings.Hyperplane.Hyphenation.HyphenationOptions.HypoexponentialDistribution.HypothesisTestData.I.IconData.Iconize.IconizedObject.IconRules.Icosahedron.Identity.IdentityMatrix.If.IfCompiled.IgnoreCase.IgnoreDiacritics.IgnoreIsotopes.IgnorePunctuation.IgnoreSpellCheck.IgnoreStereochemistry.IgnoringInactive.Im.Image.Image3D.Image3DProjection.Image3DSlices.ImageAccumulate.ImageAdd.ImageAdjust.ImageAlign.ImageApply.ImageApplyIndexed.ImageAspectRatio.ImageAssemble.ImageAugmentationLayer.ImageBoundingBoxes.ImageCache.ImageCacheValid.ImageCapture.ImageCaptureFunction.ImageCases.ImageChannels.ImageClip.ImageCollage.ImageColorSpace.ImageCompose.ImageContainsQ.ImageContents.ImageConvolve.ImageCooccurrence.ImageCorners.ImageCorrelate.ImageCorrespondingPoints.ImageCrop.ImageData.ImageDeconvolve.ImageDemosaic.ImageDifference.ImageDimensions.ImageDisplacements.ImageDistance.ImageEditMode.ImageEffect.ImageExposureCombine.ImageFeatureTrack.ImageFileApply.ImageFileFilter.ImageFileScan.ImageFilter.ImageFocusCombine.ImageForestingComponents.ImageFormattingWidth.ImageForwardTransformation.ImageGraphics.ImageHistogram.ImageIdentify.ImageInstanceQ.ImageKeypoints.ImageLabels.ImageLegends.ImageLevels.ImageLines.ImageMargins.ImageMarker.ImageMarkers.ImageMeasurements.ImageMesh.ImageMultiply.ImageOffset.ImagePad.ImagePadding.ImagePartition.ImagePeriodogram.ImagePerspectiveTransformation.ImagePosition.ImagePreviewFunction.ImagePyramid.ImagePyramidApply.ImageQ.ImageRangeCache.ImageRecolor.ImageReflect.ImageRegion.ImageResize.ImageResolution.ImageRestyle.ImageRotate.ImageRotated.ImageSaliencyFilter.ImageScaled.ImageScan.ImageSize.ImageSizeAction.ImageSizeCache.ImageSizeMultipliers.ImageSizeRaw.ImageStitch.ImageSubtract.ImageTake.ImageTransformation.ImageTrim.ImageType.ImageValue.ImageValuePositions.ImageVectorscopePlot.ImageWaveformPlot.ImagingDevice.ImplicitD.ImplicitRegion.Implies.Import.ImportAutoReplacements.ImportByteArray.ImportedObject.ImportOptions.ImportString.ImprovementImportance.In.Inactivate.Inactive.InactiveStyle.IncidenceGraph.IncidenceList.IncidenceMatrix.IncludeAromaticBonds.IncludeConstantBasis.IncludedContexts.IncludeDefinitions.IncludeDirectories.IncludeFileExtension.IncludeGeneratorTasks.IncludeHydrogens.IncludeInflections.IncludeMetaInformation.IncludePods.IncludeQuantities.IncludeRelatedTables.IncludeSingularSolutions.IncludeSingularTerm.IncludeWindowTimes.Increment.IndefiniteMatrixQ.Indent.IndentingNewlineSpacings.IndentMaxFraction.IndependenceTest.IndependentEdgeSetQ.IndependentPhysicalQuantity.IndependentUnit.IndependentUnitDimension.IndependentVertexSetQ.Indeterminate.IndeterminateThreshold.IndexCreationOptions.Indexed.IndexEdgeTaggedGraph.IndexGraph.IndexTag.Inequality.InertEvaluate.InertExpression.InexactNumberQ.InexactNumbers.InfiniteFuture.InfiniteLine.InfiniteLineThrough.InfinitePast.InfinitePlane.Infinity.Infix.InflationAdjust.InflationMethod.Information.InformationData.InformationDataGrid.Inherited.InheritScope.InhomogeneousPoissonPointProcess.InhomogeneousPoissonProcess.InitialEvaluationHistory.Initialization.InitializationCell.InitializationCellEvaluation.InitializationCellWarning.InitializationObject.InitializationObjects.InitializationValue.Initialize.InitialSeeding.InlineCounterAssignments.InlineCounterIncrements.InlineRules.Inner.InnerPolygon.InnerPolyhedron.Inpaint.Input.InputAliases.InputAssumptions.InputAutoReplacements.InputField.InputFieldBox.InputFieldBoxOptions.InputForm.InputGrouping.InputNamePacket.InputNotebook.InputPacket.InputPorts.InputSettings.InputStream.InputString.InputStringPacket.InputToBoxFormPacket.Insert.InsertionFunction.InsertionPointObject.InsertLinebreaks.InsertResults.Inset.Inset3DBox.Inset3DBoxOptions.InsetBox.InsetBoxOptions.Insphere.Install.InstallService.InstanceNormalizationLayer.InString.Integer.IntegerDigits.IntegerExponent.IntegerLength.IntegerName.IntegerPart.IntegerPartitions.IntegerQ.IntegerReverse.Integers.IntegerString.Integral.Integrate.IntegrateChangeVariables.Interactive.InteractiveTradingChart.InterfaceSwitched.Interlaced.Interleaving.InternallyBalancedDecomposition.InterpolatingFunction.InterpolatingPolynomial.Interpolation.InterpolationOrder.InterpolationPoints.InterpolationPrecision.Interpretation.InterpretationBox.InterpretationBoxOptions.InterpretationFunction.Interpreter.InterpretTemplate.InterquartileRange.Interrupt.InterruptSettings.IntersectedEntityClass.IntersectingQ.Intersection.Interval.IntervalIntersection.IntervalMarkers.IntervalMarkersStyle.IntervalMemberQ.IntervalSlider.IntervalUnion.Into.Inverse.InverseBetaRegularized.InverseBilateralLaplaceTransform.InverseBilateralZTransform.InverseCDF.InverseChiSquareDistribution.InverseContinuousWaveletTransform.InverseDistanceTransform.InverseEllipticNomeQ.InverseErf.InverseErfc.InverseFourier.InverseFourierCosTransform.InverseFourierSequenceTransform.InverseFourierSinTransform.InverseFourierTransform.InverseFunction.InverseFunctions.InverseGammaDistribution.InverseGammaRegularized.InverseGaussianDistribution.InverseGudermannian.InverseHankelTransform.InverseHaversine.InverseImagePyramid.InverseJacobiCD.InverseJacobiCN.InverseJacobiCS.InverseJacobiDC.InverseJacobiDN.InverseJacobiDS.InverseJacobiNC.InverseJacobiND.InverseJacobiNS.InverseJacobiSC.InverseJacobiSD.InverseJacobiSN.InverseLaplaceTransform.InverseMellinTransform.InversePermutation.InverseRadon.InverseRadonTransform.InverseSeries.InverseShortTimeFourier.InverseSpectrogram.InverseSurvivalFunction.InverseTransformedRegion.InverseWaveletTransform.InverseWeierstrassP.InverseWishartMatrixDistribution.InverseZTransform.Invisible.InvisibleApplication.InvisibleTimes.IPAddress.IrreduciblePolynomialQ.IslandData.IsolatingInterval.IsomorphicGraphQ.IsomorphicSubgraphQ.IsotopeData.Italic.Item.ItemAspectRatio.ItemBox.ItemBoxOptions.ItemDisplayFunction.ItemSize.ItemStyle.ItoProcess.JaccardDissimilarity.JacobiAmplitude.Jacobian.JacobiCD.JacobiCN.JacobiCS.JacobiDC.JacobiDN.JacobiDS.JacobiEpsilon.JacobiNC.JacobiND.JacobiNS.JacobiP.JacobiSC.JacobiSD.JacobiSN.JacobiSymbol.JacobiZeta.JacobiZN.JankoGroupJ1.JankoGroupJ2.JankoGroupJ3.JankoGroupJ4.JarqueBeraALMTest.JohnsonDistribution.Join.JoinAcross.Joined.JoinedCurve.JoinedCurveBox.JoinedCurveBoxOptions.JoinForm.JordanDecomposition.JordanModelDecomposition.JulianDate.JuliaSetBoettcher.JuliaSetIterationCount.JuliaSetPlot.JuliaSetPoints.K.KagiChart.KaiserBesselWindow.KaiserWindow.KalmanEstimator.KalmanFilter.KarhunenLoeveDecomposition.KaryTree.KatzCentrality.KCoreComponents.KDistribution.KEdgeConnectedComponents.KEdgeConnectedGraphQ.KeepExistingVersion.KelvinBei.KelvinBer.KelvinKei.KelvinKer.KendallTau.KendallTauTest.KernelConfiguration.KernelExecute.KernelFunction.KernelMixtureDistribution.KernelObject.Kernels.Ket.Key.KeyCollisionFunction.KeyComplement.KeyDrop.KeyDropFrom.KeyExistsQ.KeyFreeQ.KeyIntersection.KeyMap.KeyMemberQ.KeypointStrength.Keys.KeySelect.KeySort.KeySortBy.KeyTake.KeyUnion.KeyValueMap.KeyValuePattern.Khinchin.KillProcess.KirchhoffGraph.KirchhoffMatrix.KleinInvariantJ.KnapsackSolve.KnightTourGraph.KnotData.KnownUnitQ.KochCurve.KolmogorovSmirnovTest.KroneckerDelta.KroneckerModelDecomposition.KroneckerProduct.KroneckerSymbol.KuiperTest.KumaraswamyDistribution.Kurtosis.KuwaharaFilter.KVertexConnectedComponents.KVertexConnectedGraphQ.LABColor.Label.Labeled.LabeledSlider.LabelingFunction.LabelingSize.LabelStyle.LabelVisibility.LaguerreL.LakeData.LambdaComponents.LambertW.LameC.LameCPrime.LameEigenvalueA.LameEigenvalueB.LameS.LameSPrime.LaminaData.LanczosWindow.LandauDistribution.Language.LanguageCategory.LanguageData.LanguageIdentify.LanguageOptions.LaplaceDistribution.LaplaceTransform.Laplacian.LaplacianFilter.LaplacianGaussianFilter.LaplacianPDETerm.Large.Larger.Last.Latitude.LatitudeLongitude.LatticeData.LatticeReduce.Launch.LaunchKernels.LayeredGraphPlot.LayeredGraphPlot3D.LayerSizeFunction.LayoutInformation.LCHColor.LCM.LeaderSize.LeafCount.LeapVariant.LeapYearQ.LearnDistribution.LearnedDistribution.LearningRate.LearningRateMultipliers.LeastSquares.LeastSquaresFilterKernel.Left.LeftArrow.LeftArrowBar.LeftArrowRightArrow.LeftDownTeeVector.LeftDownVector.LeftDownVectorBar.LeftRightArrow.LeftRightVector.LeftTee.LeftTeeArrow.LeftTeeVector.LeftTriangle.LeftTriangleBar.LeftTriangleEqual.LeftUpDownVector.LeftUpTeeVector.LeftUpVector.LeftUpVectorBar.LeftVector.LeftVectorBar.LegendAppearance.Legended.LegendFunction.LegendLabel.LegendLayout.LegendMargins.LegendMarkers.LegendMarkerSize.LegendreP.LegendreQ.LegendreType.Length.LengthWhile.LerchPhi.Less.LessEqual.LessEqualGreater.LessEqualThan.LessFullEqual.LessGreater.LessLess.LessSlantEqual.LessThan.LessTilde.LetterCharacter.LetterCounts.LetterNumber.LetterQ.Level.LeveneTest.LeviCivitaTensor.LevyDistribution.Lexicographic.LexicographicOrder.LexicographicSort.LibraryDataType.LibraryFunction.LibraryFunctionDeclaration.LibraryFunctionError.LibraryFunctionInformation.LibraryFunctionLoad.LibraryFunctionUnload.LibraryLoad.LibraryUnload.LicenseEntitlementObject.LicenseEntitlements.LicenseID.LicensingSettings.LiftingFilterData.LiftingWaveletTransform.LightBlue.LightBrown.LightCyan.Lighter.LightGray.LightGreen.Lighting.LightingAngle.LightMagenta.LightOrange.LightPink.LightPurple.LightRed.LightSources.LightYellow.Likelihood.Limit.LimitsPositioning.LimitsPositioningTokens.LindleyDistribution.Line.Line3DBox.Line3DBoxOptions.LinearFilter.LinearFractionalOptimization.LinearFractionalTransform.LinearGradientFilling.LinearGradientImage.LinearizingTransformationData.LinearLayer.LinearModelFit.LinearOffsetFunction.LinearOptimization.LinearProgramming.LinearRecurrence.LinearSolve.LinearSolveFunction.LineBox.LineBoxOptions.LineBreak.LinebreakAdjustments.LineBreakChart.LinebreakSemicolonWeighting.LineBreakWithin.LineColor.LineGraph.LineIndent.LineIndentMaxFraction.LineIntegralConvolutionPlot.LineIntegralConvolutionScale.LineLegend.LineOpacity.LineSpacing.LineWrapParts.LinkActivate.LinkClose.LinkConnect.LinkConnectedQ.LinkCreate.LinkError.LinkFlush.LinkFunction.LinkHost.LinkInterrupt.LinkLaunch.LinkMode.LinkObject.LinkOpen.LinkOptions.LinkPatterns.LinkProtocol.LinkRankCentrality.LinkRead.LinkReadHeld.LinkReadyQ.Links.LinkService.LinkWrite.LinkWriteHeld.LiouvilleLambda.List.Listable.ListAnimate.ListContourPlot.ListContourPlot3D.ListConvolve.ListCorrelate.ListCurvePathPlot.ListDeconvolve.ListDensityPlot.ListDensityPlot3D.Listen.ListFormat.ListFourierSequenceTransform.ListInterpolation.ListLineIntegralConvolutionPlot.ListLinePlot.ListLinePlot3D.ListLogLinearPlot.ListLogLogPlot.ListLogPlot.ListPicker.ListPickerBox.ListPickerBoxBackground.ListPickerBoxOptions.ListPlay.ListPlot.ListPlot3D.ListPointPlot3D.ListPolarPlot.ListQ.ListSliceContourPlot3D.ListSliceDensityPlot3D.ListSliceVectorPlot3D.ListStepPlot.ListStreamDensityPlot.ListStreamPlot.ListStreamPlot3D.ListSurfacePlot3D.ListVectorDensityPlot.ListVectorDisplacementPlot.ListVectorDisplacementPlot3D.ListVectorPlot.ListVectorPlot3D.ListZTransform.Literal.LiteralSearch.LiteralType.LoadCompiledComponent.LocalAdaptiveBinarize.LocalCache.LocalClusteringCoefficient.LocalEvaluate.LocalizeDefinitions.LocalizeVariables.LocalObject.LocalObjects.LocalResponseNormalizationLayer.LocalSubmit.LocalSymbol.LocalTime.LocalTimeZone.LocationEquivalenceTest.LocationTest.Locator.LocatorAutoCreate.LocatorBox.LocatorBoxOptions.LocatorCentering.LocatorPane.LocatorPaneBox.LocatorPaneBoxOptions.LocatorRegion.Locked.Log.Log10.Log2.LogBarnesG.LogGamma.LogGammaDistribution.LogicalExpand.LogIntegral.LogisticDistribution.LogisticSigmoid.LogitModelFit.LogLikelihood.LogLinearPlot.LogLogisticDistribution.LogLogPlot.LogMultinormalDistribution.LogNormalDistribution.LogPlot.LogRankTest.LogSeriesDistribution.LongEqual.Longest.LongestCommonSequence.LongestCommonSequencePositions.LongestCommonSubsequence.LongestCommonSubsequencePositions.LongestMatch.LongestOrderedSequence.LongForm.Longitude.LongLeftArrow.LongLeftRightArrow.LongRightArrow.LongShortTermMemoryLayer.Lookup.Loopback.LoopFreeGraphQ.Looping.LossFunction.LowerCaseQ.LowerLeftArrow.LowerRightArrow.LowerTriangularize.LowerTriangularMatrix.LowerTriangularMatrixQ.LowpassFilter.LQEstimatorGains.LQGRegulator.LQOutputRegulatorGains.LQRegulatorGains.LUBackSubstitution.LucasL.LuccioSamiComponents.LUDecomposition.LunarEclipse.LUVColor.LyapunovSolve.LyonsGroupLy.MachineID.MachineName.MachineNumberQ.MachinePrecision.MacintoshSystemPageSetup.Magenta.Magnification.Magnify.MailAddressValidation.MailExecute.MailFolder.MailItem.MailReceiverFunction.MailResponseFunction.MailSearch.MailServerConnect.MailServerConnection.MailSettings.MainSolve.MaintainDynamicCaches.Majority.MakeBoxes.MakeExpression.MakeRules.ManagedLibraryExpressionID.ManagedLibraryExpressionQ.MandelbrotSetBoettcher.MandelbrotSetDistance.MandelbrotSetIterationCount.MandelbrotSetMemberQ.MandelbrotSetPlot.MangoldtLambda.ManhattanDistance.Manipulate.Manipulator.MannedSpaceMissionData.MannWhitneyTest.MantissaExponent.Manual.Map.MapAll.MapApply.MapAt.MapIndexed.MAProcess.MapThread.MarchenkoPasturDistribution.MarcumQ.MardiaCombinedTest.MardiaKurtosisTest.MardiaSkewnessTest.MarginalDistribution.MarkovProcessProperties.Masking.MassConcentrationCondition.MassFluxValue.MassImpermeableBoundaryValue.MassOutflowValue.MassSymmetryValue.MassTransferValue.MassTransportPDEComponent.MatchingDissimilarity.MatchLocalNameQ.MatchLocalNames.MatchQ.Material.MaterialShading.MaternPointProcess.MathematicalFunctionData.MathematicaNotation.MathieuC.MathieuCharacteristicA.MathieuCharacteristicB.MathieuCharacteristicExponent.MathieuCPrime.MathieuGroupM11.MathieuGroupM12.MathieuGroupM22.MathieuGroupM23.MathieuGroupM24.MathieuS.MathieuSPrime.MathMLForm.MathMLText.Matrices.MatrixExp.MatrixForm.MatrixFunction.MatrixLog.MatrixNormalDistribution.MatrixPlot.MatrixPower.MatrixPropertyDistribution.MatrixQ.MatrixRank.MatrixTDistribution.Max.MaxBend.MaxCellMeasure.MaxColorDistance.MaxDate.MaxDetect.MaxDisplayedChildren.MaxDuration.MaxExtraBandwidths.MaxExtraConditions.MaxFeatureDisplacement.MaxFeatures.MaxFilter.MaximalBy.Maximize.MaxItems.MaxIterations.MaxLimit.MaxMemoryUsed.MaxMixtureKernels.MaxOverlapFraction.MaxPlotPoints.MaxPoints.MaxRecursion.MaxStableDistribution.MaxStepFraction.MaxSteps.MaxStepSize.MaxTrainingRounds.MaxValue.MaxwellDistribution.MaxWordGap.McLaughlinGroupMcL.Mean.MeanAbsoluteLossLayer.MeanAround.MeanClusteringCoefficient.MeanDegreeConnectivity.MeanDeviation.MeanFilter.MeanGraphDistance.MeanNeighborDegree.MeanPointDensity.MeanShift.MeanShiftFilter.MeanSquaredLossLayer.Median.MedianDeviation.MedianFilter.MedicalTestData.Medium.MeijerG.MeijerGReduce.MeixnerDistribution.MellinConvolve.MellinTransform.MemberQ.MemoryAvailable.MemoryConstrained.MemoryConstraint.MemoryInUse.MengerMesh.Menu.MenuAppearance.MenuCommandKey.MenuEvaluator.MenuItem.MenuList.MenuPacket.MenuSortingValue.MenuStyle.MenuView.Merge.MergeDifferences.MergingFunction.MersennePrimeExponent.MersennePrimeExponentQ.Mesh.MeshCellCentroid.MeshCellCount.MeshCellHighlight.MeshCellIndex.MeshCellLabel.MeshCellMarker.MeshCellMeasure.MeshCellQuality.MeshCells.MeshCellShapeFunction.MeshCellStyle.MeshConnectivityGraph.MeshCoordinates.MeshFunctions.MeshPrimitives.MeshQualityGoal.MeshRange.MeshRefinementFunction.MeshRegion.MeshRegionQ.MeshShading.MeshStyle.Message.MessageDialog.MessageList.MessageName.MessageObject.MessageOptions.MessagePacket.Messages.MessagesNotebook.MetaCharacters.MetaInformation.MeteorShowerData.Method.MethodOptions.MexicanHatWavelet.MeyerWavelet.Midpoint.MIMETypeToFormatList.Min.MinColorDistance.MinDate.MinDetect.MineralData.MinFilter.MinimalBy.MinimalPolynomial.MinimalStateSpaceModel.Minimize.MinimumTimeIncrement.MinIntervalSize.MinkowskiQuestionMark.MinLimit.MinMax.MinorPlanetData.Minors.MinPointSeparation.MinRecursion.MinSize.MinStableDistribution.Minus.MinusPlus.MinValue.Missing.MissingBehavior.MissingDataMethod.MissingDataRules.MissingQ.MissingString.MissingStyle.MissingValuePattern.MissingValueSynthesis.MittagLefflerE.MixedFractionParts.MixedGraphQ.MixedMagnitude.MixedRadix.MixedRadixQuantity.MixedUnit.MixtureDistribution.Mod.Modal.Mode.ModelPredictiveController.Modular.ModularInverse.ModularLambda.Module.Modulus.MoebiusMu.Molecule.MoleculeAlign.MoleculeContainsQ.MoleculeDraw.MoleculeEquivalentQ.MoleculeFreeQ.MoleculeGraph.MoleculeMatchQ.MoleculeMaximumCommonSubstructure.MoleculeModify.MoleculeName.MoleculePattern.MoleculePlot.MoleculePlot3D.MoleculeProperty.MoleculeQ.MoleculeRecognize.MoleculeSubstructureCount.MoleculeValue.Moment.MomentConvert.MomentEvaluate.MomentGeneratingFunction.MomentOfInertia.Monday.Monitor.MonomialList.MonomialOrder.MonsterGroupM.MoonPhase.MoonPosition.MorletWavelet.MorphologicalBinarize.MorphologicalBranchPoints.MorphologicalComponents.MorphologicalEulerNumber.MorphologicalGraph.MorphologicalPerimeter.MorphologicalTransform.MortalityData.Most.MountainData.MouseAnnotation.MouseAppearance.MouseAppearanceTag.MouseButtons.Mouseover.MousePointerNote.MousePosition.MovieData.MovingAverage.MovingMap.MovingMedian.MoyalDistribution.MultiaxisArrangement.Multicolumn.MultiedgeStyle.MultigraphQ.MultilaunchWarning.MultiLetterItalics.MultiLetterStyle.MultilineFunction.Multinomial.MultinomialDistribution.MultinormalDistribution.MultiplicativeOrder.Multiplicity.MultiplySides.MultiscriptBoxOptions.Multiselection.MultivariateHypergeometricDistribution.MultivariatePoissonDistribution.MultivariateTDistribution.N.NakagamiDistribution.NameQ.Names.NamespaceBox.NamespaceBoxOptions.Nand.NArgMax.NArgMin.NBernoulliB.NBodySimulation.NBodySimulationData.NCache.NCaputoD.NDEigensystem.NDEigenvalues.NDSolve.NDSolveValue.Nearest.NearestFunction.NearestMeshCells.NearestNeighborG.NearestNeighborGraph.NearestTo.NebulaData.NeedlemanWunschSimilarity.Needs.Negative.NegativeBinomialDistribution.NegativeDefiniteMatrixQ.NegativeIntegers.NegativelyOrientedPoints.NegativeMultinomialDistribution.NegativeRationals.NegativeReals.NegativeSemidefiniteMatrixQ.NeighborhoodData.NeighborhoodGraph.Nest.NestedGreaterGreater.NestedLessLess.NestedScriptRules.NestGraph.NestList.NestTree.NestWhile.NestWhileList.NetAppend.NetArray.NetArrayLayer.NetBidirectionalOperator.NetChain.NetDecoder.NetDelete.NetDrop.NetEncoder.NetEvaluationMode.NetExternalObject.NetExtract.NetFlatten.NetFoldOperator.NetGANOperator.NetGraph.NetInformation.NetInitialize.NetInsert.NetInsertSharedArrays.NetJoin.NetMapOperator.NetMapThreadOperator.NetMeasurements.NetModel.NetNestOperator.NetPairEmbeddingOperator.NetPort.NetPortGradient.NetPrepend.NetRename.NetReplace.NetReplacePart.NetSharedArray.NetStateObject.NetTake.NetTrain.NetTrainResultsObject.NetUnfold.NetworkPacketCapture.NetworkPacketRecording.NetworkPacketRecordingDuring.NetworkPacketTrace.NeumannValue.NevilleThetaC.NevilleThetaD.NevilleThetaN.NevilleThetaS.NewPrimitiveStyle.NExpectation.Next.NextCell.NextDate.NextPrime.NextScheduledTaskTime.NeymanScottPointProcess.NFractionalD.NHoldAll.NHoldFirst.NHoldRest.NicholsGridLines.NicholsPlot.NightHemisphere.NIntegrate.NMaximize.NMaxValue.NMinimize.NMinValue.NominalScale.NominalVariables.NonAssociative.NoncentralBetaDistribution.NoncentralChiSquareDistribution.NoncentralFRatioDistribution.NoncentralStudentTDistribution.NonCommutativeMultiply.NonConstants.NondimensionalizationTransform.None.NoneTrue.NonlinearModelFit.NonlinearStateSpaceModel.NonlocalMeansFilter.NonNegative.NonNegativeIntegers.NonNegativeRationals.NonNegativeReals.NonPositive.NonPositiveIntegers.NonPositiveRationals.NonPositiveReals.Nor.NorlundB.Norm.Normal.NormalDistribution.NormalGrouping.NormalizationLayer.Normalize.Normalized.NormalizedSquaredEuclideanDistance.NormalMatrixQ.NormalsFunction.NormFunction.Not.NotCongruent.NotCupCap.NotDoubleVerticalBar.Notebook.NotebookApply.NotebookAutoSave.NotebookBrowseDirectory.NotebookClose.NotebookConvertSettings.NotebookCreate.NotebookDefault.NotebookDelete.NotebookDirectory.NotebookDynamicExpression.NotebookEvaluate.NotebookEventActions.NotebookFileName.NotebookFind.NotebookGet.NotebookImport.NotebookInformation.NotebookInterfaceObject.NotebookLocate.NotebookObject.NotebookOpen.NotebookPath.NotebookPrint.NotebookPut.NotebookRead.Notebooks.NotebookSave.NotebookSelection.NotebooksMenu.NotebookTemplate.NotebookWrite.NotElement.NotEqualTilde.NotExists.NotGreater.NotGreaterEqual.NotGreaterFullEqual.NotGreaterGreater.NotGreaterLess.NotGreaterSlantEqual.NotGreaterTilde.Nothing.NotHumpDownHump.NotHumpEqual.NotificationFunction.NotLeftTriangle.NotLeftTriangleBar.NotLeftTriangleEqual.NotLess.NotLessEqual.NotLessFullEqual.NotLessGreater.NotLessLess.NotLessSlantEqual.NotLessTilde.NotNestedGreaterGreater.NotNestedLessLess.NotPrecedes.NotPrecedesEqual.NotPrecedesSlantEqual.NotPrecedesTilde.NotReverseElement.NotRightTriangle.NotRightTriangleBar.NotRightTriangleEqual.NotSquareSubset.NotSquareSubsetEqual.NotSquareSuperset.NotSquareSupersetEqual.NotSubset.NotSubsetEqual.NotSucceeds.NotSucceedsEqual.NotSucceedsSlantEqual.NotSucceedsTilde.NotSuperset.NotSupersetEqual.NotTilde.NotTildeEqual.NotTildeFullEqual.NotTildeTilde.NotVerticalBar.Now.NoWhitespace.NProbability.NProduct.NProductFactors.NRoots.NSolve.NSolveValues.NSum.NSumTerms.NuclearExplosionData.NuclearReactorData.Null.NullRecords.NullSpace.NullWords.Number.NumberCompose.NumberDecompose.NumberDigit.NumberExpand.NumberFieldClassNumber.NumberFieldDiscriminant.NumberFieldFundamentalUnits.NumberFieldIntegralBasis.NumberFieldNormRepresentatives.NumberFieldRegulator.NumberFieldRootsOfUnity.NumberFieldSignature.NumberForm.NumberFormat.NumberLinePlot.NumberMarks.NumberMultiplier.NumberPadding.NumberPoint.NumberQ.NumberSeparator.NumberSigns.NumberString.Numerator.NumeratorDenominator.NumericalOrder.NumericalSort.NumericArray.NumericArrayQ.NumericArrayType.NumericFunction.NumericQ.NuttallWindow.NValues.NyquistGridLines.NyquistPlot.O.ObjectExistsQ.ObservabilityGramian.ObservabilityMatrix.ObservableDecomposition.ObservableModelQ.OceanData.Octahedron.OddQ.Off.Offset.OLEData.On.ONanGroupON.Once.OneIdentity.Opacity.OpacityFunction.OpacityFunctionScaling.Open.OpenAppend.Opener.OpenerBox.OpenerBoxOptions.OpenerView.OpenFunctionInspectorPacket.Opening.OpenRead.OpenSpecialOptions.OpenTemporary.OpenWrite.Operate.OperatingSystem.OperatorApplied.OptimumFlowData.Optional.OptionalElement.OptionInspectorSettings.OptionQ.Options.OptionsPacket.OptionsPattern.OptionValue.OptionValueBox.OptionValueBoxOptions.Or.Orange.Order.OrderDistribution.OrderedQ.Ordering.OrderingBy.OrderingLayer.Orderless.OrderlessPatternSequence.OrdinalScale.OrnsteinUhlenbeckProcess.Orthogonalize.OrthogonalMatrixQ.Out.Outer.OuterPolygon.OuterPolyhedron.OutputAutoOverwrite.OutputControllabilityMatrix.OutputControllableModelQ.OutputForm.OutputFormData.OutputGrouping.OutputMathEditExpression.OutputNamePacket.OutputPorts.OutputResponse.OutputSizeLimit.OutputStream.Over.OverBar.OverDot.Overflow.OverHat.Overlaps.Overlay.OverlayBox.OverlayBoxOptions.OverlayVideo.Overscript.OverscriptBox.OverscriptBoxOptions.OverTilde.OverVector.OverwriteTarget.OwenT.OwnValues.Package.PackingMethod.PackPaclet.PacletDataRebuild.PacletDirectoryAdd.PacletDirectoryLoad.PacletDirectoryRemove.PacletDirectoryUnload.PacletDisable.PacletEnable.PacletFind.PacletFindRemote.PacletInformation.PacletInstall.PacletInstallSubmit.PacletNewerQ.PacletObject.PacletObjectQ.PacletSite.PacletSiteObject.PacletSiteRegister.PacletSites.PacletSiteUnregister.PacletSiteUpdate.PacletSymbol.PacletUninstall.PacletUpdate.PaddedForm.Padding.PaddingLayer.PaddingSize.PadeApproximant.PadLeft.PadRight.PageBreakAbove.PageBreakBelow.PageBreakWithin.PageFooterLines.PageFooters.PageHeaderLines.PageHeaders.PageHeight.PageRankCentrality.PageTheme.PageWidth.Pagination.PairCorrelationG.PairedBarChart.PairedHistogram.PairedSmoothHistogram.PairedTTest.PairedZTest.PaletteNotebook.PalettePath.PalettesMenuSettings.PalindromeQ.Pane.PaneBox.PaneBoxOptions.Panel.PanelBox.PanelBoxOptions.Paneled.PaneSelector.PaneSelectorBox.PaneSelectorBoxOptions.PaperWidth.ParabolicCylinderD.ParagraphIndent.ParagraphSpacing.ParallelArray.ParallelAxisPlot.ParallelCombine.ParallelDo.Parallelepiped.ParallelEvaluate.Parallelization.Parallelize.ParallelKernels.ParallelMap.ParallelNeeds.Parallelogram.ParallelProduct.ParallelSubmit.ParallelSum.ParallelTable.ParallelTry.Parameter.ParameterEstimator.ParameterMixtureDistribution.ParameterVariables.ParametricConvexOptimization.ParametricFunction.ParametricNDSolve.ParametricNDSolveValue.ParametricPlot.ParametricPlot3D.ParametricRampLayer.ParametricRegion.ParentBox.ParentCell.ParentConnect.ParentDirectory.ParentEdgeLabel.ParentEdgeLabelFunction.ParentEdgeLabelStyle.ParentEdgeShapeFunction.ParentEdgeStyle.ParentEdgeStyleFunction.ParentForm.Parenthesize.ParentList.ParentNotebook.ParetoDistribution.ParetoPickandsDistribution.ParkData.Part.PartBehavior.PartialCorrelationFunction.PartialD.ParticleAcceleratorData.ParticleData.Partition.PartitionGranularity.PartitionsP.PartitionsQ.PartLayer.PartOfSpeech.PartProtection.ParzenWindow.PascalDistribution.PassEventsDown.PassEventsUp.Paste.PasteAutoQuoteCharacters.PasteBoxFormInlineCells.PasteButton.Path.PathGraph.PathGraphQ.Pattern.PatternFilling.PatternReaction.PatternSequence.PatternTest.PauliMatrix.PaulWavelet.Pause.PausedTime.PDF.PeakDetect.PeanoCurve.PearsonChiSquareTest.PearsonCorrelationTest.PearsonDistribution.PenttinenPointProcess.PercentForm.PerfectNumber.PerfectNumberQ.PerformanceGoal.Perimeter.PeriodicBoundaryCondition.PeriodicInterpolation.Periodogram.PeriodogramArray.Permanent.Permissions.PermissionsGroup.PermissionsGroupMemberQ.PermissionsGroups.PermissionsKey.PermissionsKeys.PermutationCycles.PermutationCyclesQ.PermutationGroup.PermutationLength.PermutationList.PermutationListQ.PermutationMatrix.PermutationMax.PermutationMin.PermutationOrder.PermutationPower.PermutationProduct.PermutationReplace.Permutations.PermutationSupport.Permute.PeronaMalikFilter.Perpendicular.PerpendicularBisector.PersistenceLocation.PersistenceTime.PersistentObject.PersistentObjects.PersistentSymbol.PersistentValue.PersonData.PERTDistribution.PetersenGraph.PhaseMargins.PhaseRange.PhongShading.PhysicalSystemData.Pi.Pick.PickedElements.PickMode.PIDData.PIDDerivativeFilter.PIDFeedforward.PIDTune.Piecewise.PiecewiseExpand.PieChart.PieChart3D.PillaiTrace.PillaiTraceTest.PingTime.Pink.PitchRecognize.Pivoting.PixelConstrained.PixelValue.PixelValuePositions.Placed.Placeholder.PlaceholderLayer.PlaceholderReplace.Plain.PlanarAngle.PlanarFaceList.PlanarGraph.PlanarGraphQ.PlanckRadiationLaw.PlaneCurveData.PlanetaryMoonData.PlanetData.PlantData.Play.PlaybackSettings.PlayRange.Plot.Plot3D.Plot3Matrix.PlotDivision.PlotJoined.PlotLabel.PlotLabels.PlotLayout.PlotLegends.PlotMarkers.PlotPoints.PlotRange.PlotRangeClipping.PlotRangeClipPlanesStyle.PlotRangePadding.PlotRegion.PlotStyle.PlotTheme.Pluralize.Plus.PlusMinus.Pochhammer.PodStates.PodWidth.Point.Point3DBox.Point3DBoxOptions.PointBox.PointBoxOptions.PointCountDistribution.PointDensity.PointDensityFunction.PointFigureChart.PointLegend.PointLight.PointProcessEstimator.PointProcessFitTest.PointProcessParameterAssumptions.PointProcessParameterQ.PointSize.PointStatisticFunction.PointValuePlot.PoissonConsulDistribution.PoissonDistribution.PoissonPDEComponent.PoissonPointProcess.PoissonProcess.PoissonWindow.PolarAxes.PolarAxesOrigin.PolarGridLines.PolarPlot.PolarTicks.PoleZeroMarkers.PolyaAeppliDistribution.PolyGamma.Polygon.Polygon3DBox.Polygon3DBoxOptions.PolygonalNumber.PolygonAngle.PolygonBox.PolygonBoxOptions.PolygonCoordinates.PolygonDecomposition.PolygonHoleScale.PolygonIntersections.PolygonScale.Polyhedron.PolyhedronAngle.PolyhedronBox.PolyhedronBoxOptions.PolyhedronCoordinates.PolyhedronData.PolyhedronDecomposition.PolyhedronGenus.PolyLog.PolynomialExpressionQ.PolynomialExtendedGCD.PolynomialForm.PolynomialGCD.PolynomialLCM.PolynomialMod.PolynomialQ.PolynomialQuotient.PolynomialQuotientRemainder.PolynomialReduce.PolynomialRemainder.Polynomials.PolynomialSumOfSquaresList.PoolingLayer.PopupMenu.PopupMenuBox.PopupMenuBoxOptions.PopupView.PopupWindow.Position.PositionIndex.PositionLargest.PositionSmallest.Positive.PositiveDefiniteMatrixQ.PositiveIntegers.PositivelyOrientedPoints.PositiveRationals.PositiveReals.PositiveSemidefiniteMatrixQ.PossibleZeroQ.Postfix.PostScript.Power.PowerDistribution.PowerExpand.PowerMod.PowerModList.PowerRange.PowerSpectralDensity.PowersRepresentations.PowerSymmetricPolynomial.Precedence.PrecedenceForm.Precedes.PrecedesEqual.PrecedesSlantEqual.PrecedesTilde.Precision.PrecisionGoal.PreDecrement.Predict.PredictionRoot.PredictorFunction.PredictorInformation.PredictorMeasurements.PredictorMeasurementsObject.PreemptProtect.PreferencesPath.PreferencesSettings.Prefix.PreIncrement.Prepend.PrependLayer.PrependTo.PreprocessingRules.PreserveColor.PreserveImageOptions.Previous.PreviousCell.PreviousDate.PriceGraphDistribution.PrimaryPlaceholder.Prime.PrimeNu.PrimeOmega.PrimePi.PrimePowerQ.PrimeQ.Primes.PrimeZetaP.PrimitivePolynomialQ.PrimitiveRoot.PrimitiveRootList.PrincipalComponents.PrincipalValue.Print.PrintableASCIIQ.PrintAction.PrintForm.PrintingCopies.PrintingOptions.PrintingPageRange.PrintingStartingPageNumber.PrintingStyleEnvironment.Printout3D.Printout3DPreviewer.PrintPrecision.PrintTemporary.Prism.PrismBox.PrismBoxOptions.PrivateCellOptions.PrivateEvaluationOptions.PrivateFontOptions.PrivateFrontEndOptions.PrivateKey.PrivateNotebookOptions.PrivatePaths.Probability.ProbabilityDistribution.ProbabilityPlot.ProbabilityPr.ProbabilityScalePlot.ProbitModelFit.ProcessConnection.ProcessDirectory.ProcessEnvironment.Processes.ProcessEstimator.ProcessInformation.ProcessObject.ProcessParameterAssumptions.ProcessParameterQ.ProcessStateDomain.ProcessStatus.ProcessTimeDomain.Product.ProductDistribution.ProductLog.ProgressIndicator.ProgressIndicatorBox.ProgressIndicatorBoxOptions.ProgressReporting.Projection.Prolog.PromptForm.ProofObject.PropagateAborts.Properties.Property.PropertyList.PropertyValue.Proportion.Proportional.Protect.Protected.ProteinData.Pruning.PseudoInverse.PsychrometricPropertyData.PublicKey.PublisherID.PulsarData.PunctuationCharacter.Purple.Put.PutAppend.Pyramid.PyramidBox.PyramidBoxOptions.QBinomial.QFactorial.QGamma.QHypergeometricPFQ.QnDispersion.QPochhammer.QPolyGamma.QRDecomposition.QuadraticIrrationalQ.QuadraticOptimization.Quantile.QuantilePlot.Quantity.QuantityArray.QuantityDistribution.QuantityForm.QuantityMagnitude.QuantityQ.QuantityUnit.QuantityVariable.QuantityVariableCanonicalUnit.QuantityVariableDimensions.QuantityVariableIdentifier.QuantityVariablePhysicalQuantity.Quartics.QuartileDeviation.Quartiles.QuartileSkewness.Query.QuestionGenerator.QuestionInterface.QuestionObject.QuestionSelector.QueueingNetworkProcess.QueueingProcess.QueueProperties.Quiet.QuietEcho.Quit.Quotient.QuotientRemainder.RadialAxisPlot.RadialGradientFilling.RadialGradientImage.RadialityCentrality.RadicalBox.RadicalBoxOptions.RadioButton.RadioButtonBar.RadioButtonBox.RadioButtonBoxOptions.Radon.RadonTransform.RamanujanTau.RamanujanTauL.RamanujanTauTheta.RamanujanTauZ.Ramp.Random.RandomArrayLayer.RandomChoice.RandomColor.RandomComplex.RandomDate.RandomEntity.RandomFunction.RandomGeneratorState.RandomGeoPosition.RandomGraph.RandomImage.RandomInstance.RandomInteger.RandomPermutation.RandomPoint.RandomPointConfiguration.RandomPolygon.RandomPolyhedron.RandomPrime.RandomReal.RandomSample.RandomSeed.RandomSeeding.RandomTime.RandomTree.RandomVariate.RandomWalkProcess.RandomWord.Range.RangeFilter.RangeSpecification.RankedMax.RankedMin.RarerProbability.Raster.Raster3D.Raster3DBox.Raster3DBoxOptions.RasterArray.RasterBox.RasterBoxOptions.Rasterize.RasterSize.Rational.RationalExpressionQ.RationalFunctions.Rationalize.Rationals.Ratios.RawArray.RawBoxes.RawData.RawMedium.RayleighDistribution.Re.ReactionBalance.ReactionBalancedQ.ReactionPDETerm.Read.ReadByteArray.ReadLine.ReadList.ReadProtected.ReadString.Real.RealAbs.RealBlockDiagonalForm.RealDigits.RealExponent.Reals.RealSign.Reap.RebuildPacletData.RecalibrationFunction.RecognitionPrior.RecognitionThreshold.ReconstructionMesh.Record.RecordLists.RecordSeparators.Rectangle.RectangleBox.RectangleBoxOptions.RectangleChart.RectangleChart3D.RectangularRepeatingElement.RecurrenceFilter.RecurrenceTable.RecurringDigitsForm.Red.Reduce.RefBox.ReferenceLineStyle.ReferenceMarkers.ReferenceMarkerStyle.Refine.ReflectionMatrix.ReflectionTransform.Refresh.RefreshRate.Region.RegionBinarize.RegionBoundary.RegionBoundaryStyle.RegionBounds.RegionCentroid.RegionCongruent.RegionConvert.RegionDifference.RegionDilation.RegionDimension.RegionDisjoint.RegionDistance.RegionDistanceFunction.RegionEmbeddingDimension.RegionEqual.RegionErosion.RegionFillingStyle.RegionFit.RegionFunction.RegionImage.RegionIntersection.RegionMeasure.RegionMember.RegionMemberFunction.RegionMoment.RegionNearest.RegionNearestFunction.RegionPlot.RegionPlot3D.RegionProduct.RegionQ.RegionResize.RegionSimilar.RegionSize.RegionSymmetricDifference.RegionUnion.RegionWithin.RegisterExternalEvaluator.RegularExpression.Regularization.RegularlySampledQ.RegularPolygon.ReIm.ReImLabels.ReImPlot.ReImStyle.Reinstall.RelationalDatabase.RelationGraph.Release.ReleaseHold.ReliabilityDistribution.ReliefImage.ReliefPlot.RemoteAuthorizationCaching.RemoteBatchJobAbort.RemoteBatchJobObject.RemoteBatchJobs.RemoteBatchMapSubmit.RemoteBatchSubmissionEnvironment.RemoteBatchSubmit.RemoteConnect.RemoteConnectionObject.RemoteEvaluate.RemoteFile.RemoteInputFiles.RemoteKernelObject.RemoteProviderSettings.RemoteRun.RemoteRunProcess.RemovalConditions.Remove.RemoveAlphaChannel.RemoveAsynchronousTask.RemoveAudioStream.RemoveBackground.RemoveChannelListener.RemoveChannelSubscribers.Removed.RemoveDiacritics.RemoveInputStreamMethod.RemoveOutputStreamMethod.RemoveProperty.RemoveScheduledTask.RemoveUsers.RemoveVideoStream.RenameDirectory.RenameFile.RenderAll.RenderingOptions.RenewalProcess.RenkoChart.RepairMesh.Repeated.RepeatedNull.RepeatedString.RepeatedTiming.RepeatingElement.Replace.ReplaceAll.ReplaceAt.ReplaceHeldPart.ReplaceImageValue.ReplaceList.ReplacePart.ReplacePixelValue.ReplaceRepeated.ReplicateLayer.RequiredPhysicalQuantities.Resampling.ResamplingAlgorithmData.ResamplingMethod.Rescale.RescalingTransform.ResetDirectory.ResetScheduledTask.ReshapeLayer.Residue.ResidueSum.ResizeLayer.Resolve.ResolveContextAliases.ResourceAcquire.ResourceData.ResourceFunction.ResourceObject.ResourceRegister.ResourceRemove.ResourceSearch.ResourceSubmissionObject.ResourceSubmit.ResourceSystemBase.ResourceSystemPath.ResourceUpdate.ResourceVersion.ResponseForm.Rest.RestartInterval.Restricted.Resultant.ResumePacket.Return.ReturnCreatesNewCell.ReturnEntersInput.ReturnExpressionPacket.ReturnInputFormPacket.ReturnPacket.ReturnReceiptFunction.ReturnTextPacket.Reverse.ReverseApplied.ReverseBiorthogonalSplineWavelet.ReverseElement.ReverseEquilibrium.ReverseGraph.ReverseSort.ReverseSortBy.ReverseUpEquilibrium.RevolutionAxis.RevolutionPlot3D.RGBColor.RiccatiSolve.RiceDistribution.RidgeFilter.RiemannR.RiemannSiegelTheta.RiemannSiegelZ.RiemannXi.Riffle.Right.RightArrow.RightArrowBar.RightArrowLeftArrow.RightComposition.RightCosetRepresentative.RightDownTeeVector.RightDownVector.RightDownVectorBar.RightTee.RightTeeArrow.RightTeeVector.RightTriangle.RightTriangleBar.RightTriangleEqual.RightUpDownVector.RightUpTeeVector.RightUpVector.RightUpVectorBar.RightVector.RightVectorBar.RipleyK.RipleyRassonRegion.RiskAchievementImportance.RiskReductionImportance.RobustConvexOptimization.RogersTanimotoDissimilarity.RollPitchYawAngles.RollPitchYawMatrix.RomanNumeral.Root.RootApproximant.RootIntervals.RootLocusPlot.RootMeanSquare.RootOfUnityQ.RootReduce.Roots.RootSum.RootTree.Rotate.RotateLabel.RotateLeft.RotateRight.RotationAction.RotationBox.RotationBoxOptions.RotationMatrix.RotationTransform.Round.RoundImplies.RoundingRadius.Row.RowAlignments.RowBackgrounds.RowBox.RowHeights.RowLines.RowMinHeight.RowReduce.RowsEqual.RowSpacings.RSolve.RSolveValue.RudinShapiro.RudvalisGroupRu.Rule.RuleCondition.RuleDelayed.RuleForm.RulePlot.RulerUnits.RulesTree.Run.RunProcess.RunScheduledTask.RunThrough.RuntimeAttributes.RuntimeOptions.RussellRaoDissimilarity.SameAs.SameQ.SameTest.SameTestProperties.SampledEntityClass.SampleDepth.SampledSoundFunction.SampledSoundList.SampleRate.SamplingPeriod.SARIMAProcess.SARMAProcess.SASTriangle.SatelliteData.SatisfiabilityCount.SatisfiabilityInstances.SatisfiableQ.Saturday.Save.Saveable.SaveAutoDelete.SaveConnection.SaveDefinitions.SavitzkyGolayMatrix.SawtoothWave.Scale.Scaled.ScaleDivisions.ScaledMousePosition.ScaleOrigin.ScalePadding.ScaleRanges.ScaleRangeStyle.ScalingFunctions.ScalingMatrix.ScalingTransform.Scan.ScheduledTask.ScheduledTaskActiveQ.ScheduledTaskInformation.ScheduledTaskInformationData.ScheduledTaskObject.ScheduledTasks.SchurDecomposition.ScientificForm.ScientificNotationThreshold.ScorerGi.ScorerGiPrime.ScorerHi.ScorerHiPrime.ScreenRectangle.ScreenStyleEnvironment.ScriptBaselineShifts.ScriptForm.ScriptLevel.ScriptMinSize.ScriptRules.ScriptSizeMultipliers.Scrollbars.ScrollingOptions.ScrollPosition.SearchAdjustment.SearchIndexObject.SearchIndices.SearchQueryString.SearchResultObject.Sec.Sech.SechDistribution.SecondOrderConeOptimization.SectionGrouping.SectorChart.SectorChart3D.SectorOrigin.SectorSpacing.SecuredAuthenticationKey.SecuredAuthenticationKeys.SecurityCertificate.SeedRandom.Select.Selectable.SelectComponents.SelectedCells.SelectedNotebook.SelectFirst.Selection.SelectionAnimate.SelectionCell.SelectionCellCreateCell.SelectionCellDefaultStyle.SelectionCellParentStyle.SelectionCreateCell.SelectionDebuggerTag.SelectionEvaluate.SelectionEvaluateCreateCell.SelectionMove.SelectionPlaceholder.SelectWithContents.SelfLoops.SelfLoopStyle.SemanticImport.SemanticImportString.SemanticInterpretation.SemialgebraicComponentInstances.SemidefiniteOptimization.SendMail.SendMessage.Sequence.SequenceAlignment.SequenceAttentionLayer.SequenceCases.SequenceCount.SequenceFold.SequenceFoldList.SequenceForm.SequenceHold.SequenceIndicesLayer.SequenceLastLayer.SequenceMostLayer.SequencePosition.SequencePredict.SequencePredictorFunction.SequenceReplace.SequenceRestLayer.SequenceReverseLayer.SequenceSplit.Series.SeriesCoefficient.SeriesData.SeriesTermGoal.ServiceConnect.ServiceDisconnect.ServiceExecute.ServiceObject.ServiceRequest.ServiceResponse.ServiceSubmit.SessionSubmit.SessionTime.Set.SetAccuracy.SetAlphaChannel.SetAttributes.Setbacks.SetCloudDirectory.SetCookies.SetDelayed.SetDirectory.SetEnvironment.SetFileDate.SetFileFormatProperties.SetOptions.SetOptionsPacket.SetPermissions.SetPrecision.SetProperty.SetSecuredAuthenticationKey.SetSelectedNotebook.SetSharedFunction.SetSharedVariable.SetStreamPosition.SetSystemModel.SetSystemOptions.Setter.SetterBar.SetterBox.SetterBoxOptions.Setting.SetUsers.Shading.Shallow.ShannonWavelet.ShapiroWilkTest.Share.SharingList.Sharpen.ShearingMatrix.ShearingTransform.ShellRegion.ShenCastanMatrix.ShiftedGompertzDistribution.ShiftRegisterSequence.Short.ShortDownArrow.Shortest.ShortestMatch.ShortestPathFunction.ShortLeftArrow.ShortRightArrow.ShortTimeFourier.ShortTimeFourierData.ShortUpArrow.Show.ShowAutoConvert.ShowAutoSpellCheck.ShowAutoStyles.ShowCellBracket.ShowCellLabel.ShowCellTags.ShowClosedCellArea.ShowCodeAssist.ShowContents.ShowControls.ShowCursorTracker.ShowGroupOpenCloseIcon.ShowGroupOpener.ShowInvisibleCharacters.ShowPageBreaks.ShowPredictiveInterface.ShowSelection.ShowShortBoxForm.ShowSpecialCharacters.ShowStringCharacters.ShowSyntaxStyles.ShrinkingDelay.ShrinkWrapBoundingBox.SiderealTime.SiegelTheta.SiegelTukeyTest.SierpinskiCurve.SierpinskiMesh.Sign.Signature.SignedRankTest.SignedRegionDistance.SignificanceLevel.SignPadding.SignTest.SimilarityRules.SimpleGraph.SimpleGraphQ.SimplePolygonQ.SimplePolyhedronQ.Simplex.Simplify.Sin.Sinc.SinghMaddalaDistribution.SingleEvaluation.SingleLetterItalics.SingleLetterStyle.SingularValueDecomposition.SingularValueList.SingularValuePlot.SingularValues.Sinh.SinhIntegral.SinIntegral.SixJSymbol.Skeleton.SkeletonTransform.SkellamDistribution.Skewness.SkewNormalDistribution.SkinStyle.Skip.SliceContourPlot3D.SliceDensityPlot3D.SliceDistribution.SliceVectorPlot3D.Slider.Slider2D.Slider2DBox.Slider2DBoxOptions.SliderBox.SliderBoxOptions.SlideShowVideo.SlideView.Slot.SlotSequence.Small.SmallCircle.Smaller.SmithDecomposition.SmithDelayCompensator.SmithWatermanSimilarity.SmoothDensityHistogram.SmoothHistogram.SmoothHistogram3D.SmoothKernelDistribution.SmoothPointDensity.SnDispersion.Snippet.SnippetsVideo.SnubPolyhedron.SocialMediaData.Socket.SocketConnect.SocketListen.SocketListener.SocketObject.SocketOpen.SocketReadMessage.SocketReadyQ.Sockets.SocketWaitAll.SocketWaitNext.SoftmaxLayer.SokalSneathDissimilarity.SolarEclipse.SolarSystemFeatureData.SolarTime.SolidAngle.SolidBoundaryLoadValue.SolidData.SolidDisplacementCondition.SolidFixedCondition.SolidMechanicsPDEComponent.SolidMechanicsStrain.SolidMechanicsStress.SolidRegionQ.Solve.SolveAlways.SolveDelayed.SolveValues.Sort.SortBy.SortedBy.SortedEntityClass.Sound.SoundAndGraphics.SoundNote.SoundVolume.SourceLink.SourcePDETerm.Sow.Space.SpaceCurveData.SpaceForm.Spacer.Spacings.Span.SpanAdjustments.SpanCharacterRounding.SpanFromAbove.SpanFromBoth.SpanFromLeft.SpanLineThickness.SpanMaxSize.SpanMinSize.SpanningCharacters.SpanSymmetric.SparseArray.SparseArrayQ.SpatialBinnedPointData.SpatialBoundaryCorrection.SpatialEstimate.SpatialEstimatorFunction.SpatialGraphDistribution.SpatialJ.SpatialMedian.SpatialNoiseLevel.SpatialObservationRegionQ.SpatialPointData.SpatialPointSelect.SpatialRandomnessTest.SpatialTransformationLayer.SpatialTrendFunction.Speak.SpeakerMatchQ.SpearmanRankTest.SpearmanRho.SpeciesData.SpecificityGoal.SpectralLineData.Spectrogram.SpectrogramArray.Specularity.SpeechCases.SpeechInterpreter.SpeechRecognize.SpeechSynthesize.SpellingCorrection.SpellingCorrectionList.SpellingDictionaries.SpellingDictionariesPath.SpellingOptions.Sphere.SphereBox.SphereBoxOptions.SpherePoints.SphericalBesselJ.SphericalBesselY.SphericalHankelH1.SphericalHankelH2.SphericalHarmonicY.SphericalPlot3D.SphericalRegion.SphericalShell.SpheroidalEigenvalue.SpheroidalJoiningFactor.SpheroidalPS.SpheroidalPSPrime.SpheroidalQS.SpheroidalQSPrime.SpheroidalRadialFactor.SpheroidalS1.SpheroidalS1Prime.SpheroidalS2.SpheroidalS2Prime.Splice.SplicedDistribution.SplineClosed.SplineDegree.SplineKnots.SplineWeights.Split.SplitBy.SpokenString.SpotLight.Sqrt.SqrtBox.SqrtBoxOptions.Square.SquaredEuclideanDistance.SquareFreeQ.SquareIntersection.SquareMatrixQ.SquareRepeatingElement.SquaresR.SquareSubset.SquareSubsetEqual.SquareSuperset.SquareSupersetEqual.SquareUnion.SquareWave.SSSTriangle.StabilityMargins.StabilityMarginsStyle.StableDistribution.Stack.StackBegin.StackComplete.StackedDateListPlot.StackedListPlot.StackInhibit.StadiumShape.StandardAtmosphereData.StandardDeviation.StandardDeviationFilter.StandardForm.Standardize.Standardized.StandardOceanData.StandbyDistribution.Star.StarClusterData.StarData.StarGraph.StartAsynchronousTask.StartExternalSession.StartingStepSize.StartOfLine.StartOfString.StartProcess.StartScheduledTask.StartupSound.StartWebSession.StateDimensions.StateFeedbackGains.StateOutputEstimator.StateResponse.StateSpaceModel.StateSpaceRealization.StateSpaceTransform.StateTransformationLinearize.StationaryDistribution.StationaryWaveletPacketTransform.StationaryWaveletTransform.StatusArea.StatusCentrality.StepMonitor.StereochemistryElements.StieltjesGamma.StippleShading.StirlingS1.StirlingS2.StopAsynchronousTask.StoppingPowerData.StopScheduledTask.StrataVariables.StratonovichProcess.StraussHardcorePointProcess.StraussPointProcess.StreamColorFunction.StreamColorFunctionScaling.StreamDensityPlot.StreamMarkers.StreamPlot.StreamPlot3D.StreamPoints.StreamPosition.Streams.StreamScale.StreamStyle.StrictInequalities.String.StringBreak.StringByteCount.StringCases.StringContainsQ.StringCount.StringDelete.StringDrop.StringEndsQ.StringExpression.StringExtract.StringForm.StringFormat.StringFormatQ.StringFreeQ.StringInsert.StringJoin.StringLength.StringMatchQ.StringPadLeft.StringPadRight.StringPart.StringPartition.StringPosition.StringQ.StringRepeat.StringReplace.StringReplaceList.StringReplacePart.StringReverse.StringRiffle.StringRotateLeft.StringRotateRight.StringSkeleton.StringSplit.StringStartsQ.StringTake.StringTakeDrop.StringTemplate.StringToByteArray.StringToStream.StringTrim.StripBoxes.StripOnInput.StripStyleOnPaste.StripWrapperBoxes.StrokeForm.Struckthrough.StructuralImportance.StructuredArray.StructuredArrayHeadQ.StructuredSelection.StruveH.StruveL.Stub.StudentTDistribution.Style.StyleBox.StyleBoxAutoDelete.StyleData.StyleDefinitions.StyleForm.StyleHints.StyleKeyMapping.StyleMenuListing.StyleNameDialogSettings.StyleNames.StylePrint.StyleSheetPath.Subdivide.Subfactorial.Subgraph.SubMinus.SubPlus.SubresultantPolynomialRemainders.SubresultantPolynomials.Subresultants.Subscript.SubscriptBox.SubscriptBoxOptions.Subscripted.Subsequences.Subset.SubsetCases.SubsetCount.SubsetEqual.SubsetMap.SubsetPosition.SubsetQ.SubsetReplace.Subsets.SubStar.SubstitutionSystem.Subsuperscript.SubsuperscriptBox.SubsuperscriptBoxOptions.SubtitleEncoding.SubtitleTrackSelection.Subtract.SubtractFrom.SubtractSides.SubValues.Succeeds.SucceedsEqual.SucceedsSlantEqual.SucceedsTilde.Success.SuchThat.Sum.SumConvergence.SummationLayer.Sunday.SunPosition.Sunrise.Sunset.SuperDagger.SuperMinus.SupernovaData.SuperPlus.Superscript.SuperscriptBox.SuperscriptBoxOptions.Superset.SupersetEqual.SuperStar.Surd.SurdForm.SurfaceAppearance.SurfaceArea.SurfaceColor.SurfaceData.SurfaceGraphics.SurvivalDistribution.SurvivalFunction.SurvivalModel.SurvivalModelFit.SuspendPacket.SuzukiDistribution.SuzukiGroupSuz.SwatchLegend.Switch.Symbol.SymbolName.SymletWavelet.Symmetric.SymmetricDifference.SymmetricGroup.SymmetricKey.SymmetricMatrixQ.SymmetricPolynomial.SymmetricReduction.Symmetrize.SymmetrizedArray.SymmetrizedArrayRules.SymmetrizedDependentComponents.SymmetrizedIndependentComponents.SymmetrizedReplacePart.SynchronousInitialization.SynchronousUpdating.Synonyms.Syntax.SyntaxForm.SyntaxInformation.SyntaxLength.SyntaxPacket.SyntaxQ.SynthesizeMissingValues.SystemCredential.SystemCredentialData.SystemCredentialKey.SystemCredentialKeys.SystemCredentialStoreObject.SystemDialogInput.SystemException.SystemGet.SystemHelpPath.SystemInformation.SystemInformationData.SystemInstall.SystemModel.SystemModeler.SystemModelExamples.SystemModelLinearize.SystemModelMeasurements.SystemModelParametricSimulate.SystemModelPlot.SystemModelProgressReporting.SystemModelReliability.SystemModels.SystemModelSimulate.SystemModelSimulateSensitivity.SystemModelSimulationData.SystemOpen.SystemOptions.SystemProcessData.SystemProcesses.SystemsConnectionsModel.SystemsModelControllerData.SystemsModelDelay.SystemsModelDelayApproximate.SystemsModelDelete.SystemsModelDimensions.SystemsModelExtract.SystemsModelFeedbackConnect.SystemsModelLabels.SystemsModelLinearity.SystemsModelMerge.SystemsModelOrder.SystemsModelParallelConnect.SystemsModelSeriesConnect.SystemsModelStateFeedbackConnect.SystemsModelVectorRelativeOrders.SystemStub.SystemTest.Tab.TabFilling.Table.TableAlignments.TableDepth.TableDirections.TableForm.TableHeadings.TableSpacing.TableView.TableViewBox.TableViewBoxAlignment.TableViewBoxBackground.TableViewBoxHeaders.TableViewBoxItemSize.TableViewBoxItemStyle.TableViewBoxOptions.TabSpacings.TabView.TabViewBox.TabViewBoxOptions.TagBox.TagBoxNote.TagBoxOptions.TaggingRules.TagSet.TagSetDelayed.TagStyle.TagUnset.Take.TakeDrop.TakeLargest.TakeLargestBy.TakeList.TakeSmallest.TakeSmallestBy.TakeWhile.Tally.Tan.Tanh.TargetDevice.TargetFunctions.TargetSystem.TargetUnits.TaskAbort.TaskExecute.TaskObject.TaskRemove.TaskResume.Tasks.TaskSuspend.TaskWait.TautologyQ.TelegraphProcess.TemplateApply.TemplateArgBox.TemplateBox.TemplateBoxOptions.TemplateEvaluate.TemplateExpression.TemplateIf.TemplateObject.TemplateSequence.TemplateSlot.TemplateSlotSequence.TemplateUnevaluated.TemplateVerbatim.TemplateWith.TemporalData.TemporalRegularity.Temporary.TemporaryVariable.TensorContract.TensorDimensions.TensorExpand.TensorProduct.TensorQ.TensorRank.TensorReduce.TensorSymmetry.TensorTranspose.TensorWedge.TerminatedEvaluation.TernaryListPlot.TernaryPlotCorners.TestID.TestReport.TestReportObject.TestResultObject.Tetrahedron.TetrahedronBox.TetrahedronBoxOptions.TeXForm.TeXSave.Text.Text3DBox.Text3DBoxOptions.TextAlignment.TextBand.TextBoundingBox.TextBox.TextCases.TextCell.TextClipboardType.TextContents.TextData.TextElement.TextForm.TextGrid.TextJustification.TextLine.TextPacket.TextParagraph.TextPosition.TextRecognize.TextSearch.TextSearchReport.TextSentences.TextString.TextStructure.TextStyle.TextTranslation.Texture.TextureCoordinateFunction.TextureCoordinateScaling.TextWords.Therefore.ThermodynamicData.ThermometerGauge.Thick.Thickness.Thin.Thinning.ThisLink.ThomasPointProcess.ThompsonGroupTh.Thread.Threaded.ThreadingLayer.ThreeJSymbol.Threshold.Through.Throw.ThueMorse.Thumbnail.Thursday.TickDirection.TickLabelOrientation.TickLabelPositioning.TickLabels.TickLengths.TickPositions.Ticks.TicksStyle.TideData.Tilde.TildeEqual.TildeFullEqual.TildeTilde.TimeConstrained.TimeConstraint.TimeDirection.TimeFormat.TimeGoal.TimelinePlot.TimeObject.TimeObjectQ.TimeRemaining.Times.TimesBy.TimeSeries.TimeSeriesAggregate.TimeSeriesForecast.TimeSeriesInsert.TimeSeriesInvertibility.TimeSeriesMap.TimeSeriesMapThread.TimeSeriesModel.TimeSeriesModelFit.TimeSeriesResample.TimeSeriesRescale.TimeSeriesShift.TimeSeriesThread.TimeSeriesWindow.TimeSystem.TimeSystemConvert.TimeUsed.TimeValue.TimeWarpingCorrespondence.TimeWarpingDistance.TimeZone.TimeZoneConvert.TimeZoneOffset.Timing.Tiny.TitleGrouping.TitsGroupT.ToBoxes.ToCharacterCode.ToColor.ToContinuousTimeModel.ToDate.Today.ToDiscreteTimeModel.ToEntity.ToeplitzMatrix.ToExpression.ToFileName.Together.Toggle.ToggleFalse.Toggler.TogglerBar.TogglerBox.TogglerBoxOptions.ToHeldExpression.ToInvertibleTimeSeries.TokenWords.Tolerance.ToLowerCase.Tomorrow.ToNumberField.TooBig.Tooltip.TooltipBox.TooltipBoxOptions.TooltipDelay.TooltipStyle.ToonShading.Top.TopHatTransform.ToPolarCoordinates.TopologicalSort.ToRadicals.ToRawPointer.ToRules.Torus.TorusGraph.ToSphericalCoordinates.ToString.Total.TotalHeight.TotalLayer.TotalVariationFilter.TotalWidth.TouchPosition.TouchscreenAutoZoom.TouchscreenControlPlacement.ToUpperCase.TourVideo.Tr.Trace.TraceAbove.TraceAction.TraceBackward.TraceDepth.TraceDialog.TraceForward.TraceInternal.TraceLevel.TraceOff.TraceOn.TraceOriginal.TracePrint.TraceScan.TrackCellChangeTimes.TrackedSymbols.TrackingFunction.TracyWidomDistribution.TradingChart.TraditionalForm.TraditionalFunctionNotation.TraditionalNotation.TraditionalOrder.TrainImageContentDetector.TrainingProgressCheckpointing.TrainingProgressFunction.TrainingProgressMeasurements.TrainingProgressReporting.TrainingStoppingCriterion.TrainingUpdateSchedule.TrainTextContentDetector.TransferFunctionCancel.TransferFunctionExpand.TransferFunctionFactor.TransferFunctionModel.TransferFunctionPoles.TransferFunctionTransform.TransferFunctionZeros.TransformationClass.TransformationFunction.TransformationFunctions.TransformationMatrix.TransformedDistribution.TransformedField.TransformedProcess.TransformedRegion.TransitionDirection.TransitionDuration.TransitionEffect.TransitiveClosureGraph.TransitiveReductionGraph.Translate.TranslationOptions.TranslationTransform.Transliterate.Transparent.TransparentColor.Transpose.TransposeLayer.TrapEnterKey.TrapSelection.TravelDirections.TravelDirectionsData.TravelDistance.TravelDistanceList.TravelMethod.TravelTime.Tree.TreeCases.TreeChildren.TreeCount.TreeData.TreeDelete.TreeDepth.TreeElementCoordinates.TreeElementLabel.TreeElementLabelFunction.TreeElementLabelStyle.TreeElementShape.TreeElementShapeFunction.TreeElementSize.TreeElementSizeFunction.TreeElementStyle.TreeElementStyleFunction.TreeExpression.TreeExtract.TreeFold.TreeForm.TreeGraph.TreeGraphQ.TreeInsert.TreeLayout.TreeLeafCount.TreeLeafQ.TreeLeaves.TreeLevel.TreeMap.TreeMapAt.TreeOutline.TreePlot.TreePosition.TreeQ.TreeReplacePart.TreeRules.TreeScan.TreeSelect.TreeSize.TreeTraversalOrder.TrendStyle.Triangle.TriangleCenter.TriangleConstruct.TriangleMeasurement.TriangleWave.TriangularDistribution.TriangulateMesh.Trig.TrigExpand.TrigFactor.TrigFactorList.Trigger.TrigReduce.TrigToExp.TrimmedMean.TrimmedVariance.TropicalStormData.True.TrueQ.TruncatedDistribution.TruncatedPolyhedron.TsallisQExponentialDistribution.TsallisQGaussianDistribution.TTest.Tube.TubeBezierCurveBox.TubeBezierCurveBoxOptions.TubeBox.TubeBoxOptions.TubeBSplineCurveBox.TubeBSplineCurveBoxOptions.Tuesday.TukeyLambdaDistribution.TukeyWindow.TunnelData.Tuples.TuranGraph.TuringMachine.TuttePolynomial.TwoWayRule.Typed.TypeDeclaration.TypeEvaluate.TypeHint.TypeOf.TypeSpecifier.UnateQ.Uncompress.UnconstrainedParameters.Undefined.UnderBar.Underflow.Underlined.Underoverscript.UnderoverscriptBox.UnderoverscriptBoxOptions.Underscript.UnderscriptBox.UnderscriptBoxOptions.UnderseaFeatureData.UndirectedEdge.UndirectedGraph.UndirectedGraphQ.UndoOptions.UndoTrackedVariables.Unequal.UnequalTo.Unevaluated.UniformDistribution.UniformGraphDistribution.UniformPolyhedron.UniformSumDistribution.Uninstall.Union.UnionedEntityClass.UnionPlus.Unique.UniqueElements.UnitaryMatrixQ.UnitBox.UnitConvert.UnitDimensions.Unitize.UnitRootTest.UnitSimplify.UnitStep.UnitSystem.UnitTriangle.UnitVector.UnitVectorLayer.UnityDimensions.UniverseModelData.UniversityData.UnixTime.UnlabeledTree.UnmanageObject.Unprotect.UnregisterExternalEvaluator.UnsameQ.UnsavedVariables.Unset.UnsetShared.Until.UntrackedVariables.Up.UpArrow.UpArrowBar.UpArrowDownArrow.Update.UpdateDynamicObjects.UpdateDynamicObjectsSynchronous.UpdateInterval.UpdatePacletSites.UpdateSearchIndex.UpDownArrow.UpEquilibrium.UpperCaseQ.UpperLeftArrow.UpperRightArrow.UpperTriangularize.UpperTriangularMatrix.UpperTriangularMatrixQ.Upsample.UpSet.UpSetDelayed.UpTee.UpTeeArrow.UpTo.UpValues.URL.URLBuild.URLDecode.URLDispatcher.URLDownload.URLDownloadSubmit.URLEncode.URLExecute.URLExpand.URLFetch.URLFetchAsynchronous.URLParse.URLQueryDecode.URLQueryEncode.URLRead.URLResponseTime.URLSave.URLSaveAsynchronous.URLShorten.URLSubmit.UseEmbeddedLibrary.UseGraphicsRange.UserDefinedWavelet.Using.UsingFrontEnd.UtilityFunction.V2Get.ValenceErrorHandling.ValenceFilling.ValidationLength.ValidationSet.ValueBox.ValueBoxOptions.ValueDimensions.ValueForm.ValuePreprocessingFunction.ValueQ.Values.ValuesData.VandermondeMatrix.Variables.Variance.VarianceEquivalenceTest.VarianceEstimatorFunction.VarianceGammaDistribution.VarianceGammaPointProcess.VarianceTest.VariogramFunction.VariogramModel.VectorAngle.VectorAround.VectorAspectRatio.VectorColorFunction.VectorColorFunctionScaling.VectorDensityPlot.VectorDisplacementPlot.VectorDisplacementPlot3D.VectorGlyphData.VectorGreater.VectorGreaterEqual.VectorLess.VectorLessEqual.VectorMarkers.VectorPlot.VectorPlot3D.VectorPoints.VectorQ.VectorRange.Vectors.VectorScale.VectorScaling.VectorSizes.VectorStyle.Vee.Verbatim.Verbose.VerificationTest.VerifyConvergence.VerifyDerivedKey.VerifyDigitalSignature.VerifyFileSignature.VerifyInterpretation.VerifySecurityCertificates.VerifySolutions.VerifyTestAssumptions.VersionedPreferences.VertexAdd.VertexCapacity.VertexChromaticNumber.VertexColors.VertexComponent.VertexConnectivity.VertexContract.VertexCoordinateRules.VertexCoordinates.VertexCorrelationSimilarity.VertexCosineSimilarity.VertexCount.VertexCoverQ.VertexDataCoordinates.VertexDegree.VertexDelete.VertexDiceSimilarity.VertexEccentricity.VertexInComponent.VertexInComponentGraph.VertexInDegree.VertexIndex.VertexJaccardSimilarity.VertexLabeling.VertexLabels.VertexLabelStyle.VertexList.VertexNormals.VertexOutComponent.VertexOutComponentGraph.VertexOutDegree.VertexQ.VertexRenderingFunction.VertexReplace.VertexShape.VertexShapeFunction.VertexSize.VertexStyle.VertexTextureCoordinates.VertexTransitiveGraphQ.VertexWeight.VertexWeightedGraphQ.Vertical.VerticalBar.VerticalForm.VerticalGauge.VerticalSeparator.VerticalSlider.VerticalTilde.Video.VideoCapture.VideoCombine.VideoDelete.VideoEncoding.VideoExtractFrames.VideoFrameList.VideoFrameMap.VideoGenerator.VideoInsert.VideoIntervals.VideoJoin.VideoMap.VideoMapList.VideoMapTimeSeries.VideoPadding.VideoPause.VideoPlay.VideoQ.VideoRecord.VideoReplace.VideoScreenCapture.VideoSplit.VideoStop.VideoStream.VideoStreams.VideoTimeStretch.VideoTrackSelection.VideoTranscode.VideoTransparency.VideoTrim.ViewAngle.ViewCenter.ViewMatrix.ViewPoint.ViewPointSelectorSettings.ViewPort.ViewProjection.ViewRange.ViewVector.ViewVertical.VirtualGroupData.Visible.VisibleCell.VoiceStyleData.VoigtDistribution.VolcanoData.Volume.VonMisesDistribution.VoronoiMesh.WaitAll.WaitAsynchronousTask.WaitNext.WaitUntil.WakebyDistribution.WalleniusHypergeometricDistribution.WaringYuleDistribution.WarpingCorrespondence.WarpingDistance.WatershedComponents.WatsonUSquareTest.WattsStrogatzGraphDistribution.WaveletBestBasis.WaveletFilterCoefficients.WaveletImagePlot.WaveletListPlot.WaveletMapIndexed.WaveletMatrixPlot.WaveletPhi.WaveletPsi.WaveletScale.WaveletScalogram.WaveletThreshold.WavePDEComponent.WeaklyConnectedComponents.WeaklyConnectedGraphComponents.WeaklyConnectedGraphQ.WeakStationarity.WeatherData.WeatherForecastData.WebAudioSearch.WebColumn.WebElementObject.WeberE.WebExecute.WebImage.WebImageSearch.WebItem.WebPageMetaInformation.WebRow.WebSearch.WebSessionObject.WebSessions.WebWindowObject.Wedge.Wednesday.WeibullDistribution.WeierstrassE1.WeierstrassE2.WeierstrassE3.WeierstrassEta1.WeierstrassEta2.WeierstrassEta3.WeierstrassHalfPeriods.WeierstrassHalfPeriodW1.WeierstrassHalfPeriodW2.WeierstrassHalfPeriodW3.WeierstrassInvariantG2.WeierstrassInvariantG3.WeierstrassInvariants.WeierstrassP.WeierstrassPPrime.WeierstrassSigma.WeierstrassZeta.WeightedAdjacencyGraph.WeightedAdjacencyMatrix.WeightedData.WeightedGraphQ.Weights.WelchWindow.WheelGraph.WhenEvent.Which.While.White.WhiteNoiseProcess.WhitePoint.Whitespace.WhitespaceCharacter.WhittakerM.WhittakerW.WholeCellGroupOpener.WienerFilter.WienerProcess.WignerD.WignerSemicircleDistribution.WikidataData.WikidataSearch.WikipediaData.WikipediaSearch.WilksW.WilksWTest.WindDirectionData.WindingCount.WindingPolygon.WindowClickSelect.WindowElements.WindowFloating.WindowFrame.WindowFrameElements.WindowMargins.WindowMovable.WindowOpacity.WindowPersistentStyles.WindowSelected.WindowSize.WindowStatusArea.WindowTitle.WindowToolbars.WindowWidth.WindSpeedData.WindVectorData.WinsorizedMean.WinsorizedVariance.WishartMatrixDistribution.With.WithCleanup.WithLock.WolframAlpha.WolframAlphaDate.WolframAlphaQuantity.WolframAlphaResult.WolframCloudSettings.WolframLanguageData.Word.WordBoundary.WordCharacter.WordCloud.WordCount.WordCounts.WordData.WordDefinition.WordFrequency.WordFrequencyData.WordList.WordOrientation.WordSearch.WordSelectionFunction.WordSeparators.WordSpacings.WordStem.WordTranslation.WorkingPrecision.WrapAround.Write.WriteLine.WriteString.Wronskian.XMLElement.XMLObject.XMLTemplate.Xnor.Xor.XYZColor.Yellow.Yesterday.YuleDissimilarity.ZernikeR.ZeroSymmetric.ZeroTest.ZeroWidthTimes.Zeta.ZetaZero.ZIPCodeData.ZipfDistribution.ZoomCenter.ZoomFactor.ZTest.ZTransform.$Aborted.$ActivationGroupID.$ActivationKey.$ActivationUserRegistered.$AddOnsDirectory.$AllowDataUpdates.$AllowExternalChannelFunctions.$AllowInternet.$AssertFunction.$Assumptions.$AsynchronousTask.$AudioDecoders.$AudioEncoders.$AudioInputDevices.$AudioOutputDevices.$BaseDirectory.$BasePacletsDirectory.$BatchInput.$BatchOutput.$BlockchainBase.$BoxForms.$ByteOrdering.$CacheBaseDirectory.$Canceled.$ChannelBase.$CharacterEncoding.$CharacterEncodings.$CloudAccountName.$CloudBase.$CloudConnected.$CloudConnection.$CloudCreditsAvailable.$CloudEvaluation.$CloudExpressionBase.$CloudObjectNameFormat.$CloudObjectURLType.$CloudRootDirectory.$CloudSymbolBase.$CloudUserID.$CloudUserUUID.$CloudVersion.$CloudVersionNumber.$CloudWolframEngineVersionNumber.$CommandLine.$CompilationTarget.$CompilerEnvironment.$ConditionHold.$ConfiguredKernels.$Context.$ContextAliases.$ContextPath.$ControlActiveSetting.$Cookies.$CookieStore.$CreationDate.$CryptographicEllipticCurveNames.$CurrentLink.$CurrentTask.$CurrentWebSession.$DataStructures.$DateStringFormat.$DefaultAudioInputDevice.$DefaultAudioOutputDevice.$DefaultFont.$DefaultFrontEnd.$DefaultImagingDevice.$DefaultKernels.$DefaultLocalBase.$DefaultLocalKernel.$DefaultMailbox.$DefaultNetworkInterface.$DefaultPath.$DefaultProxyRules.$DefaultRemoteBatchSubmissionEnvironment.$DefaultRemoteKernel.$DefaultSystemCredentialStore.$Display.$DisplayFunction.$DistributedContexts.$DynamicEvaluation.$Echo.$EmbedCodeEnvironments.$EmbeddableServices.$EntityStores.$Epilog.$EvaluationCloudBase.$EvaluationCloudObject.$EvaluationEnvironment.$ExportFormats.$ExternalIdentifierTypes.$ExternalStorageBase.$Failed.$FinancialDataSource.$FontFamilies.$FormatType.$FrontEnd.$FrontEndSession.$GeneratedAssetLocation.$GeoEntityTypes.$GeoLocation.$GeoLocationCity.$GeoLocationCountry.$GeoLocationPrecision.$GeoLocationSource.$HistoryLength.$HomeDirectory.$HTMLExportRules.$HTTPCookies.$HTTPRequest.$IgnoreEOF.$ImageFormattingWidth.$ImageResolution.$ImagingDevice.$ImagingDevices.$ImportFormats.$IncomingMailSettings.$InitialDirectory.$Initialization.$InitializationContexts.$Input.$InputFileName.$InputStreamMethods.$Inspector.$InstallationDate.$InstallationDirectory.$InterfaceEnvironment.$InterpreterTypes.$IterationLimit.$KernelCount.$KernelID.$Language.$LaunchDirectory.$LibraryPath.$LicenseExpirationDate.$LicenseID.$LicenseProcesses.$LicenseServer.$LicenseSubprocesses.$LicenseType.$Line.$Linked.$LinkSupported.$LoadedFiles.$LocalBase.$LocalSymbolBase.$MachineAddresses.$MachineDomain.$MachineDomains.$MachineEpsilon.$MachineID.$MachineName.$MachinePrecision.$MachineType.$MaxDisplayedChildren.$MaxExtraPrecision.$MaxLicenseProcesses.$MaxLicenseSubprocesses.$MaxMachineNumber.$MaxNumber.$MaxPiecewiseCases.$MaxPrecision.$MaxRootDegree.$MessageGroups.$MessageList.$MessagePrePrint.$Messages.$MinMachineNumber.$MinNumber.$MinorReleaseNumber.$MinPrecision.$MobilePhone.$ModuleNumber.$NetworkConnected.$NetworkInterfaces.$NetworkLicense.$NewMessage.$NewSymbol.$NotebookInlineStorageLimit.$Notebooks.$NoValue.$NumberMarks.$Off.$OperatingSystem.$Output.$OutputForms.$OutputSizeLimit.$OutputStreamMethods.$Packages.$ParentLink.$ParentProcessID.$PasswordFile.$PatchLevelID.$Path.$PathnameSeparator.$PerformanceGoal.$Permissions.$PermissionsGroupBase.$PersistenceBase.$PersistencePath.$PipeSupported.$PlotTheme.$Post.$Pre.$PreferencesDirectory.$PreInitialization.$PrePrint.$PreRead.$PrintForms.$PrintLiteral.$Printout3DPreviewer.$ProcessID.$ProcessorCount.$ProcessorType.$ProductInformation.$ProgramName.$ProgressReporting.$PublisherID.$RandomGeneratorState.$RandomState.$RecursionLimit.$RegisteredDeviceClasses.$RegisteredUserName.$ReleaseNumber.$RequesterAddress.$RequesterCloudUserID.$RequesterCloudUserUUID.$RequesterWolframID.$RequesterWolframUUID.$ResourceSystemBase.$ResourceSystemPath.$RootDirectory.$ScheduledTask.$ScriptCommandLine.$ScriptInputString.$SecuredAuthenticationKeyTokens.$ServiceCreditsAvailable.$Services.$SessionID.$SetParentLink.$SharedFunctions.$SharedVariables.$SoundDisplay.$SoundDisplayFunction.$SourceLink.$SSHAuthentication.$SubtitleDecoders.$SubtitleEncoders.$SummaryBoxDataSizeLimit.$SuppressInputFormHeads.$SynchronousEvaluation.$SyntaxHandler.$System.$SystemCharacterEncoding.$SystemCredentialStore.$SystemID.$SystemMemory.$SystemShell.$SystemTimeZone.$SystemWordLength.$TargetSystems.$TemplatePath.$TemporaryDirectory.$TemporaryPrefix.$TestFileName.$TextStyle.$TimedOut.$TimeUnit.$TimeZone.$TimeZoneEntity.$TopDirectory.$TraceOff.$TraceOn.$TracePattern.$TracePostAction.$TracePreAction.$UnitSystem.$Urgent.$UserAddOnsDirectory.$UserAgentLanguages.$UserAgentMachine.$UserAgentName.$UserAgentOperatingSystem.$UserAgentString.$UserAgentVersion.$UserBaseDirectory.$UserBasePacletsDirectory.$UserDocumentsDirectory.$Username.$UserName.$UserURLBase.$Version.$VersionNumber.$VideoDecoders.$VideoEncoders.$VoiceStyles.$WolframDocumentsDirectory.$WolframID.$WolframUUID`.split(`.`);function r(e){let t=e.regex,r=t.either(t.concat(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),i=t.either(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),a={className:`number`,relevance:0,begin:t.concat(r,t.optional(i),t.optional(/\*\^[+-]?\d+/))},o=/[a-zA-Z$][a-zA-Z0-9$]*/,s=new Set(n),c={variants:[{className:`builtin-symbol`,begin:o,"on:begin":(e,t)=>{s.has(e[0])||t.ignoreMatch()}},{className:`symbol`,relevance:0,begin:o}]},l={className:`named-character`,begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},u={className:`operator`,relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},d={className:`pattern`,relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},f={className:`slot`,relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},p={className:`brace`,relevance:0,begin:/[[\](){}]/},m={className:`message-name`,relevance:0,begin:t.concat(`::`,o)};return{name:`Mathematica`,aliases:[`mma`,`wl`],classNameAliases:{brace:`punctuation`,pattern:`type`,slot:`type`,symbol:`variable`,"named-character":`variable`,"builtin-symbol":`built_in`,"message-name":`string`},contains:[e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`]}),d,f,m,c,l,e.QUOTE_STRING_MODE,a,u,p]}}t.exports=r})),Ea=n(((e,t)=>{function n(e){let t=`('|\\.')+`,n={relevance:0,contains:[{begin:t}]};return{name:`Matlab`,keywords:{keyword:`arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while`,built_in:`sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell `},illegal:`(//|"|#|/\\*|\\s+/\\w+)`,contains:[{className:`function`,beginKeywords:`function`,end:`$`,contains:[e.UNDERSCORE_TITLE_MODE,{className:`params`,variants:[{begin:`\\(`,end:`\\)`},{begin:`\\[`,end:`\\]`}]}]},{className:`built_in`,begin:/true|false/,relevance:0,starts:n},{begin:`[a-zA-Z][a-zA-Z_0-9]*`+t,relevance:0},{className:`number`,begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:`string`,begin:`"`,end:`"`,contains:[{begin:`""`}],starts:n},e.COMMENT(`^\\s*%\\{\\s*$`,`^\\s*%\\}\\s*$`),e.COMMENT(`%`,`$`)]}}t.exports=n})),Da=n(((e,t)=>{function n(e){return{name:`Maxima`,keywords:{$pattern:`[A-Za-z_%][0-9A-Za-z_%]*`,keyword:`if then else elseif for thru do while unless step in and or not`,literal:`true false unknown inf minf ind und %e %i %pi %phi %gamma`,built_in:` abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest`,symbol:`_ __ %|0 %%|0`},contains:[{className:`comment`,begin:`/\\*`,end:`\\*/`,contains:[`self`]},e.QUOTE_STRING_MODE,{className:`number`,relevance:0,variants:[{begin:`\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b`},{begin:`\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b`,relevance:10},{begin:`\\b(\\.\\d+|\\d+\\.\\d+)\\b`},{begin:`\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b`}]}],illegal:/@/}}t.exports=n})),Oa=n(((e,t)=>{function n(e){return{name:`MEL`,keywords:`int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform`,illegal:`{function n(e){let t={keyword:`module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure`,meta:`inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing`,built_in:`some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure`},n=e.COMMENT(`%`,`$`),r={className:`number`,begin:`0'.\\|0[box][0-9a-fA-F]*`},i=e.inherit(e.APOS_STRING_MODE,{relevance:0}),a=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return a.contains=a.contains.slice(),a.contains.push({className:`subst`,begin:`\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]`,relevance:0}),{name:`Mercury`,aliases:[`m`,`moo`],keywords:t,contains:[{className:`built_in`,variants:[{begin:`<=>`},{begin:`<=`,relevance:0},{begin:`=>`,relevance:0},{begin:`/\\\\`},{begin:`\\\\/`}]},{className:`built_in`,variants:[{begin:`:-\\|-->`},{begin:`=`,relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,a,{begin:/:-/},{begin:/\.$/}]}}t.exports=n})),Aa=n(((e,t)=>{function n(e){return{name:`MIPS Assembly`,case_insensitive:!0,aliases:[`mips`],keywords:{$pattern:`\\.?`+e.IDENT_RE,meta:`.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg `,built_in:`$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt `},contains:[{className:`keyword`,begin:`\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)`,end:`\\s`},e.COMMENT(`[;#](?!\\s*$)`,`$`),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,relevance:0},{className:`title`,begin:`\\|`,end:`\\|`,illegal:`\\n`,relevance:0},{className:`number`,variants:[{begin:`0x[0-9a-f]+`},{begin:`\\b-?\\d+`}],relevance:0},{className:`symbol`,variants:[{begin:`^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:`},{begin:`^\\s*[0-9]+:`},{begin:`[0-9]+[bf]`}],relevance:0}],illegal:/\//}}t.exports=n})),ja=n(((e,t)=>{function n(e){return{name:`Mizar`,keywords:`environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity`,contains:[e.COMMENT(`::`,`$`)]}}t.exports=n})),Ma=n(((e,t)=>{function n(e){let t=e.regex,n=`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`.split(`.`),r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(` `)},a={className:`subst`,begin:`[$@]\\{`,end:`\\}`,keywords:i},o={begin:/->\{/,end:/\}/},s={scope:`attr`,match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:`variable`,variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={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},u=[e.BACKSLASH_ESCAPE,a,c],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(e,n,i=`\\1`)=>{let a=i===`\\1`?i:t.concat(i,n);return t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},p=(e,n,i)=>t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,i,r),m=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:`string`,contains:u,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}]},l,{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(...d,{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(...d,{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,s]},{className:`class`,beginKeywords:`class`,end:`[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:`-\\w\\b`,relevance:0},{begin:`^__DATA__$`,end:`^__END__$`,subLanguage:`mojolicious`,contains:[{begin:`^@@.*`,end:`$`,className:`comment`}]}];return a.contains=m,o.contains=m,{name:`Perl`,aliases:[`pl`,`pm`],keywords:i,contains:m}}t.exports=n})),Na=n(((e,t)=>{function n(e){return{name:`Mojolicious`,subLanguage:`xml`,contains:[{className:`meta`,begin:`^__(END|DATA)__$`},{begin:`^\\s*%{1,2}={0,2}`,end:`$`,subLanguage:`perl`},{begin:`<%{1,2}={0,2}`,end:`={0,1}%>`,subLanguage:`perl`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),Pa=n(((e,t)=>{function n(e){let t={className:`number`,relevance:0,variants:[{begin:`[$][a-fA-F0-9]+`},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:`keyword`,3:`title.function`}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:`keyword`,3:`title.class`}};return{name:`Monkey`,case_insensitive:!0,keywords:{keyword:`public.private.property.continue.exit.extern.new.try.catch.eachin.not.abstract.final.select.case.default.const.local.global.field.end.if.then.else.elseif.endif.while.wend.repeat.until.forever.for.to.step.next.return.module.inline.throw.import.and.or.shl.shr.mod`.split(`.`),built_in:`DebugLog.DebugStop.Error.Print.ACos.ACosr.ASin.ASinr.ATan.ATan2.ATan2r.ATanr.Abs.Abs.Ceil.Clamp.Clamp.Cos.Cosr.Exp.Floor.Log.Max.Max.Min.Min.Pow.Sgn.Sgn.Sin.Sinr.Sqrt.Tan.Tanr.Seed.PI.HALFPI.TWOPI`.split(`.`),literal:[`true`,`false`,`null`]},illegal:/\/\*/,contains:[e.COMMENT(`#rem`,`#end`),e.COMMENT(`'`,`$`,{relevance:0}),n,r,{className:`variable.language`,begin:/\b(self|super)\b/},{className:`meta`,begin:/\s*#/,end:`$`,keywords:{keyword:`if else elseif endif end then`}},{match:[/^\s*/,/strict\b/],scope:{2:`meta`}},{beginKeywords:`alias`,end:`=`,contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}t.exports=n})),Fa=n(((e,t)=>{function n(e){let t={keyword:`if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using`,literal:`true false nil`,built_in:`_G _VERSION 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 coroutine debug io math os package string table`},n=`[A-Za-z$_][0-9A-Za-z$_]*`,r={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:`(\\s*/)?`,relevance:0}}),{className:`string`,variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:`built_in`,begin:`@__`+e.IDENT_RE},{begin:`@`+e.IDENT_RE},{begin:e.IDENT_RE+`\\\\`+e.IDENT_RE}];r.contains=i;let a=e.inherit(e.TITLE_MODE,{begin:n}),o={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(i)}]};return{name:`MoonScript`,aliases:[`moon`],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT(`--`,`$`),{className:`function`,begin:`^\\s*`+n+`\\s*=\\s*(\\(.*\\)\\s*)?\\B[-=]>`,end:`[-=]>`,returnBegin:!0,contains:[a,o]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:`function`,begin:`(\\(.*\\)\\s*)?\\B[-=]>`,end:`[-=]>`,returnBegin:!0,contains:[o]}]},{className:`class`,beginKeywords:`class`,end:`$`,illegal:/[:="\[\]]/,contains:[{beginKeywords:`extends`,endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:`name`,begin:n+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=n})),Ia=n(((e,t)=>{function n(e){return{name:`N1QL`,case_insensitive:!0,contains:[{beginKeywords:`build create index delete drop explain infer|10 insert merge prepare select update upsert|10`,end:/;/,keywords:{keyword:`all.alter.analyze.and.any.array.as.asc.begin.between.binary.boolean.break.bucket.build.by.call.case.cast.cluster.collate.collection.commit.connect.continue.correlate.cover.create.database.dataset.datastore.declare.decrement.delete.derived.desc.describe.distinct.do.drop.each.element.else.end.every.except.exclude.execute.exists.explain.fetch.first.flatten.for.force.from.function.grant.group.gsi.having.if.ignore.ilike.in.include.increment.index.infer.inline.inner.insert.intersect.into.is.join.key.keys.keyspace.known.last.left.let.letting.like.limit.lsm.map.mapping.matched.materialized.merge.minus.namespace.nest.not.number.object.offset.on.option.or.order.outer.over.parse.partition.password.path.pool.prepare.primary.private.privilege.procedure.public.raw.realm.reduce.rename.return.returning.revoke.right.role.rollback.satisfies.schema.select.self.semi.set.show.some.start.statistics.string.system.then.to.transaction.trigger.truncate.under.union.unique.unknown.unnest.unset.update.upsert.use.user.using.validate.value.valued.values.via.view.when.where.while.with.within.work.xor`.split(`.`),literal:[`true`,`false`,`null`,`missing|5`],built_in:`array_agg.array_append.array_concat.array_contains.array_count.array_distinct.array_ifnull.array_length.array_max.array_min.array_position.array_prepend.array_put.array_range.array_remove.array_repeat.array_replace.array_reverse.array_sort.array_sum.avg.count.max.min.sum.greatest.least.ifmissing.ifmissingornull.ifnull.missingif.nullif.ifinf.ifnan.ifnanorinf.naninf.neginfif.posinfif.clock_millis.clock_str.date_add_millis.date_add_str.date_diff_millis.date_diff_str.date_part_millis.date_part_str.date_trunc_millis.date_trunc_str.duration_to_str.millis.str_to_millis.millis_to_str.millis_to_utc.millis_to_zone_name.now_millis.now_str.str_to_duration.str_to_utc.str_to_zone_name.decode_json.encode_json.encoded_size.poly_length.base64.base64_encode.base64_decode.meta.uuid.abs.acos.asin.atan.atan2.ceil.cos.degrees.e.exp.ln.log.floor.pi.power.radians.random.round.sign.sin.sqrt.tan.trunc.object_length.object_names.object_pairs.object_inner_pairs.object_values.object_inner_values.object_add.object_put.object_remove.object_unwrap.regexp_contains.regexp_like.regexp_position.regexp_replace.contains.initcap.length.lower.ltrim.position.repeat.replace.rtrim.split.substr.title.trim.upper.isarray.isatom.isboolean.isnumber.isobject.isstring.type.toarray.toatom.toboolean.tonumber.toobject.tostring`.split(`.`)},contains:[{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE]},{className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{className:`symbol`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),La=n(((e,t)=>{function n(e){return{name:`Nested Text`,aliases:[`nt`],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:`bullet`,4:`string`}},{match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:`punctuation`,4:`string`}},{match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:`attribute`,3:`punctuation`}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:`attribute`,3:`punctuation`,5:`string`}}]}}t.exports=n})),Ra=n(((e,t)=>{function n(e){let t=e.regex,n={className:`variable`,variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:[`on`,`off`,`yes`,`no`,`true`,`false`,`none`,`blocked`,`debug`,`info`,`notice`,`warn`,`error`,`crit`,`select`,`break`,`last`,`permanent`,`redirect`,`kqueue`,`rtsig`,`epoll`,`poll`,`/dev/poll`]},relevance:0,illegal:`=>`,contains:[e.HASH_COMMENT_MODE,{className:`string`,contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:`([a-z]+):/`,end:`\\s`,endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:`\\s\\^`,end:`\\s|\\{|;`,returnEnd:!0},{begin:`~\\*?\\s+`,end:`\\s|\\{|;`,returnEnd:!0},{begin:`\\*(\\.[a-z\\-]+)+`},{begin:`([a-z\\-]+\\.)+\\*`}]},{className:`number`,begin:`\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b`},{className:`number`,begin:`\\b\\d+[kKmMgGdshdwy]?\\b`,relevance:0},n]};return{name:`Nginx config`,aliases:[`nginxconf`],contains:[e.HASH_COMMENT_MODE,{beginKeywords:`upstream location`,end:/;|\{/,contains:r.contains,keywords:{section:`upstream location`}},{className:`section`,begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+`\\s`),end:`;|\\{`,contains:[{className:`attribute`,begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:`[^\\s\\}\\{]`}}t.exports=n})),za=n(((e,t)=>{function n(e){return{name:`Nim`,keywords:{keyword:`addr.and.as.asm.bind.block.break.case.cast.concept.const.continue.converter.defer.discard.distinct.div.do.elif.else.end.enum.except.export.finally.for.from.func.generic.guarded.if.import.in.include.interface.is.isnot.iterator.let.macro.method.mixin.mod.nil.not.notin.object.of.or.out.proc.ptr.raise.ref.return.shared.shl.shr.static.template.try.tuple.type.using.var.when.while.with.without.xor.yield`.split(`.`),literal:[`true`,`false`],type:`int.int8.int16.int32.int64.uint.uint8.uint16.uint32.uint64.float.float32.float64.bool.char.string.cstring.pointer.expr.stmt.void.auto.any.range.array.openarray.varargs.seq.set.clong.culong.cchar.cschar.cshort.cint.csize.clonglong.cfloat.cdouble.clongdouble.cuchar.cushort.cuint.culonglong.cstringarray.semistatic`.split(`.`),built_in:[`stdin`,`stdout`,`stderr`,`result`]},contains:[{className:`meta`,begin:/\{\./,end:/\.\}/,relevance:10},{className:`string`,begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:`string`,begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:`type`,begin:/\b[A-Z]\w+\b/,relevance:0},{className:`number`,relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}t.exports=n})),Ba=n(((e,t)=>{function n(e){let t=e.regex,n={keyword:[`assert`,`else`,`if`,`in`,`inherit`,`let`,`or`,`rec`,`then`,`with`],literal:[`true`,`false`,`null`],built_in:[`abort`,`baseNameOf`,`builtins`,`derivation`,`derivationStrict`,`dirOf`,`fetchGit`,`fetchMercurial`,`fetchTarball`,`fetchTree`,`fromTOML`,`import`,`isNull`,`map`,`placeholder`,`removeAttrs`,`scopedImport`,`throw`,`toString`]},r={scope:`built_in`,match:t.either(...`abort.add.addDrvOutputDependencies.addErrorContext.all.any.appendContext.attrNames.attrValues.baseNameOf.bitAnd.bitOr.bitXor.break.builtins.catAttrs.ceil.compareVersions.concatLists.concatMap.concatStringsSep.convertHash.currentSystem.currentTime.deepSeq.derivation.derivationStrict.dirOf.div.elem.elemAt.false.fetchGit.fetchMercurial.fetchTarball.fetchTree.fetchurl.filter.filterSource.findFile.flakeRefToString.floor.foldl'.fromJSON.fromTOML.functionArgs.genList.genericClosure.getAttr.getContext.getEnv.getFlake.groupBy.hasAttr.hasContext.hashFile.hashString.head.import.intersectAttrs.isAttrs.isBool.isFloat.isFunction.isInt.isList.isNull.isPath.isString.langVersion.length.lessThan.listToAttrs.map.mapAttrs.match.mul.nixPath.nixVersion.null.parseDrvName.parseFlakeRef.partition.path.pathExists.placeholder.readDir.readFile.readFileType.removeAttrs.replaceStrings.scopedImport.seq.sort.split.splitVersion.storeDir.storePath.stringLength.sub.substring.tail.throw.toFile.toJSON.toPath.toString.toXML.trace.traceVerbose.true.tryEval.typeOf.unsafeDiscardOutputDependency.unsafeDiscardStringContext.unsafeGetAttrPos.warn.zipAttrsWith`.split(`.`).map(e=>`builtins\\.${e}`)),relevance:10},i=`[A-Za-z_][A-Za-z0-9_'-]*`,a={scope:`symbol`,match:RegExp(`<${i}(/${i})*>`)},o=`[A-Za-z0-9_\\+\\.-]+`,s={scope:`symbol`,match:RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},c=t.either(`==`,`=`,`\\+\\+`,`\\+`,`<=`,`<\\|`,`<`,`>=`,`>`,`->`,`//`,`/`,`!=`,`!`,`\\|\\|`,`\\|>`,`\\?`,`\\*`,`&&`),l={scope:`operator`,match:t.concat(c,/(?!-)/),relevance:0},u={scope:`number`,match:RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},d={variants:[{scope:`operator`,beforeMatch:/\s/,begin:/-(?!>)/},{begin:[RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:`number`,2:`operator`}},{begin:[c,/-/,/(?!>)/],beginScope:{1:`operator`,2:`operator`}}],relevance:0},f={beforeMatch:/(^|\{|;)\s*/,begin:RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:`attr`,match:RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},p={scope:`char.escape`,match:/\\\$/},m={scope:`char.escape`,match:/''\$/},h={scope:`subst`,begin:/\$\{/,end:/\}/,keywords:n},g={scope:`char.escape`,match:/'''/},_={scope:`char.escape`,match:/\\(?!\$)./},v={scope:`string`,variants:[{begin:`''`,end:`''`,contains:[m,h,g,_]},{begin:`"`,end:`"`,contains:[p,h,_]}]},y={scope:`params`,match:RegExp(`${i}\\s*:(?=\\s)`)},b=[u,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:`markdown`,relevance:0}),r,v,a,s,y,f,d,l];return h.contains=b,{name:`Nix`,aliases:[`nixos`],keywords:n,contains:b.concat([{scope:`meta.prompt`,match:/^nix-repl>(?=\s)/,relevance:10},{scope:`meta`,beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}])}}t.exports=n})),Va=n(((e,t)=>{function n(e){return{name:`Node REPL`,contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`javascript`}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),Ha=n(((e,t)=>{function n(e){let t=e.regex,n=`ADMINTOOLS.APPDATA.CDBURN_AREA.CMDLINE.COMMONFILES32.COMMONFILES64.COMMONFILES.COOKIES.DESKTOP.DOCUMENTS.EXEDIR.EXEFILE.EXEPATH.FAVORITES.FONTS.HISTORY.HWNDPARENT.INSTDIR.INTERNET_CACHE.LANGUAGE.LOCALAPPDATA.MUSIC.NETHOOD.OUTDIR.PICTURES.PLUGINSDIR.PRINTHOOD.PROFILE.PROGRAMFILES32.PROGRAMFILES64.PROGRAMFILES.QUICKLAUNCH.RECENT.RESOURCES_LOCALIZED.RESOURCES.SENDTO.SMPROGRAMS.SMSTARTUP.STARTMENU.SYSDIR.TEMP.TEMPLATES.VIDEOS.WINDIR`.split(`.`),r=`ARCHIVE.FILE_ATTRIBUTE_ARCHIVE.FILE_ATTRIBUTE_NORMAL.FILE_ATTRIBUTE_OFFLINE.FILE_ATTRIBUTE_READONLY.FILE_ATTRIBUTE_SYSTEM.FILE_ATTRIBUTE_TEMPORARY.HKCR.HKCU.HKDD.HKEY_CLASSES_ROOT.HKEY_CURRENT_CONFIG.HKEY_CURRENT_USER.HKEY_DYN_DATA.HKEY_LOCAL_MACHINE.HKEY_PERFORMANCE_DATA.HKEY_USERS.HKLM.HKPD.HKU.IDABORT.IDCANCEL.IDIGNORE.IDNO.IDOK.IDRETRY.IDYES.MB_ABORTRETRYIGNORE.MB_DEFBUTTON1.MB_DEFBUTTON2.MB_DEFBUTTON3.MB_DEFBUTTON4.MB_ICONEXCLAMATION.MB_ICONINFORMATION.MB_ICONQUESTION.MB_ICONSTOP.MB_OK.MB_OKCANCEL.MB_RETRYCANCEL.MB_RIGHT.MB_RTLREADING.MB_SETFOREGROUND.MB_TOPMOST.MB_USERICON.MB_YESNO.NORMAL.OFFLINE.READONLY.SHCTX.SHELL_CONTEXT.SYSTEM|TEMPORARY`.split(`.`),i=`addincludedir.addplugindir.appendfile.assert.cd.define.delfile.echo.else.endif.error.execute.finalize.getdllversion.gettlbversion.if.ifdef.ifmacrodef.ifmacrondef.ifndef.include.insertmacro.macro.macroend.makensis.packhdr.searchparse.searchreplace.system.tempfile.undef.uninstfinalize.verbose.warning`.split(`.`),a={className:`variable.constant`,begin:t.concat(/\$/,t.either(...n))},o={className:`variable`,begin:/\$+\{[\!\w.:-]+\}/},s={className:`variable`,begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},c={className:`variable`,begin:/\$+\([\w^.:!-]+\)/},l={className:`params`,begin:t.either(...r)},u={className:`keyword`,begin:t.concat(/!/,t.either(...i))},d={className:`char.escape`,begin:/\$(\\[nrt]|\$)/},f={className:`title.function`,begin:/\w+::\w+/},p={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`},{begin:"`",end:"`"}],illegal:/\n/,contains:[d,a,o,s,c]},m=`Abort.AddBrandingImage.AddSize.AllowRootDirInstall.AllowSkipFiles.AutoCloseWindow.BGFont.BGGradient.BrandingText.BringToFront.Call.CallInstDLL.Caption.ChangeUI.CheckBitmap.ClearErrors.CompletedText.ComponentText.CopyFiles.CRCCheck.CreateDirectory.CreateFont.CreateShortCut.Delete.DeleteINISec.DeleteINIStr.DeleteRegKey.DeleteRegValue.DetailPrint.DetailsButtonText.DirText.DirVar.DirVerify.EnableWindow.EnumRegKey.EnumRegValue.Exch.Exec.ExecShell.ExecShellWait.ExecWait.ExpandEnvStrings.File.FileBufSize.FileClose.FileErrorText.FileOpen.FileRead.FileReadByte.FileReadUTF16LE.FileReadWord.FileWriteUTF16LE.FileSeek.FileWrite.FileWriteByte.FileWriteWord.FindClose.FindFirst.FindNext.FindWindow.FlushINI.GetCurInstType.GetCurrentAddress.GetDlgItem.GetDLLVersion.GetDLLVersionLocal.GetErrorLevel.GetFileTime.GetFileTimeLocal.GetFullPathName.GetFunctionAddress.GetInstDirError.GetKnownFolderPath.GetLabelAddress.GetTempFileName.GetWinVer.Goto.HideWindow.Icon.IfAbort.IfErrors.IfFileExists.IfRebootFlag.IfRtlLanguage.IfShellVarContextAll.IfSilent.InitPluginsDir.InstallButtonText.InstallColors.InstallDir.InstallDirRegKey.InstProgressFlags.InstType.InstTypeGetText.InstTypeSetText.Int64Cmp.Int64CmpU.Int64Fmt.IntCmp.IntCmpU.IntFmt.IntOp.IntPtrCmp.IntPtrCmpU.IntPtrOp.IsWindow.LangString.LicenseBkColor.LicenseData.LicenseForceSelection.LicenseLangString.LicenseText.LoadAndSetImage.LoadLanguageFile.LockWindow.LogSet.LogText.ManifestDPIAware.ManifestLongPathAware.ManifestMaxVersionTested.ManifestSupportedOS.MessageBox.MiscButtonText.Name|0.Nop.OutFile.Page.PageCallbacks.PEAddResource.PEDllCharacteristics.PERemoveResource.PESubsysVer.Pop.Push.Quit.ReadEnvStr.ReadINIStr.ReadRegDWORD.ReadRegStr.Reboot.RegDLL.Rename.RequestExecutionLevel.ReserveFile.Return.RMDir.SearchPath.SectionGetFlags.SectionGetInstTypes.SectionGetSize.SectionGetText.SectionIn.SectionSetFlags.SectionSetInstTypes.SectionSetSize.SectionSetText.SendMessage.SetAutoClose.SetBrandingImage.SetCompress.SetCompressor.SetCompressorDictSize.SetCtlColors.SetCurInstType.SetDatablockOptimize.SetDateSave.SetDetailsPrint.SetDetailsView.SetErrorLevel.SetErrors.SetFileAttributes.SetFont.SetOutPath.SetOverwrite.SetRebootFlag.SetRegView.SetShellVarContext.SetSilent.ShowInstDetails.ShowUninstDetails.ShowWindow.SilentInstall.SilentUnInstall.Sleep.SpaceTexts.StrCmp.StrCmpS.StrCpy.StrLen.SubCaption.Unicode.UninstallButtonText.UninstallCaption.UninstallIcon.UninstallSubCaption.UninstallText.UninstPage.UnRegDLL.Var.VIAddVersionKey.VIFileVersion.VIProductVersion.WindowIcon.WriteINIStr.WriteRegBin.WriteRegDWORD.WriteRegExpandStr.WriteRegMultiStr.WriteRegNone.WriteRegStr.WriteUninstaller.XPStyle`.split(`.`),h=`admin,all,auto,both,bottom,bzip2,colored,components,current,custom,directory,false,force,hide,highest,ifdiff,ifnewer,instfiles,lastused,leave,left,license,listonly,lzma,nevershow,none,normal,notset,off,on,open,print,right,show,silent,silentlog,smooth,textonly,top,true,try,un.components,un.custom,un.directory,un.instfiles,un.license,uninstConfirm,user,Win10,Win7,Win8,WinVista,zlib`.split(`,`),g={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:`keyword`,3:`title.function`}};return{name:`NSIS`,case_insensitive:!0,keywords:{keyword:m,literal:h},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`;`,`$`,{relevance:0}),{match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:`keyword`,3:`params`,4:`variable`}},g,{beginKeywords:`Function PageEx Section SectionGroup FunctionEnd SectionEnd`},p,u,o,s,c,l,f,e.NUMBER_MODE]}}t.exports=n})),Ua=n(((e,t)=>{function n(e){let 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+`},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={"variable.language":[`this`,`super`],$pattern:n,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`.split(`.`),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`]},i={$pattern:n,keyword:[`@interface`,`@class`,`@protocol`,`@implementation`]};return{name:`Objective-C`,aliases:[`mm`,`objc`,`obj-c`,`obj-c++`,`objective-c++`],keywords:r,illegal:`/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`class`,begin:`(`+i.keyword.join(`|`)+`)\\b`,end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:`\\.`+e.UNDERSCORE_IDENT_RE,relevance:0}]}}t.exports=n})),Wa=n(((e,t)=>{function n(e){return{name:`OCaml`,aliases:[`ml`],keywords:{$pattern:`[a-z_]\\w*!?`,keyword:`and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value`,built_in:`array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref`,literal:`true false`},illegal:/\/\/|>>/,contains:[{className:`literal`,begin:`\\[(\\|\\|)?\\]|\\(\\)`,relevance:0},e.COMMENT(`\\(\\*`,`\\*\\)`,{contains:[`self`]}),{className:`symbol`,begin:`'[A-Za-z_](?!')[\\w']*`},{className:`type`,begin:"`[A-Z][\\w']*"},{className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},{begin:`[a-z_]\\w*'[\\w']*`,relevance:0},e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`number`,begin:`\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)`,relevance:0},{begin:/->/}]}}t.exports=n})),Ga=n(((e,t)=>{function n(e){let t={className:`keyword`,begin:`\\$(f[asn]|t|vp[rtd]|children)`},n={className:`literal`,begin:`false|true|PI|undef`},r={className:`number`,begin:`\\b\\d+(\\.\\d+)?(e-?\\d+)?`,relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:`meta`,keywords:{keyword:`include use`},begin:`include|use <`,end:`>`},o={className:`params`,begin:`\\(`,end:`\\)`,contains:[`self`,r,i,t,n]},s={begin:`[*!#%]`,relevance:0},c={className:`function`,beginKeywords:`module function`,end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:`OpenSCAD`,aliases:[`scad`],keywords:{keyword:`function module include use for intersection_for if else \\%`,literal:`false true PI undef`,built_in:`circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,a,i,t,s,c]}}t.exports=n})),Ka=n(((e,t)=>{function n(e){let t={$pattern:/\.?\w+/,keyword:`abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained`},n=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT(`\\(\\*`,`\\*\\)`,{relevance:10}),i={className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},a={className:`string`,begin:`(#\\d+)+`},o={beginKeywords:`function constructor destructor procedure method`,end:`[:;]`,keywords:`function constructor|10 destructor|10 procedure|10 method|10`,contains:[e.inherit(e.TITLE_MODE,{scope:`title.function`}),{className:`params`,begin:`\\(`,end:`\\)`,keywords:t,contains:[i,a]},n,r]};return{name:`Oxygene`,case_insensitive:!0,keywords:t,illegal:`("|\\$[G-Zg-z]|\\/\\*||->)`,contains:[n,r,e.C_LINE_COMMENT_MODE,i,a,e.NUMBER_MODE,o,{scope:`punctuation`,match:/;/,relevance:0}]}}t.exports=n})),qa=n(((e,t)=>{function n(e){let t=e.COMMENT(/\{/,/\}/,{contains:[`self`]});return{name:`Parser3`,subLanguage:`xml`,relevance:0,contains:[e.COMMENT(`^#`,`$`),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:`meta`,begin:`^@(?:BASE|USE|CLASS|OPTIONS)$`,relevance:10},{className:`title`,begin:`@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$`},{className:`variable`,begin:/\$\{?[\w\-.:]+\}?/},{className:`keyword`,begin:/\^[\w\-.:]+/},{className:`number`,begin:`\\^#[0-9a-fA-F]+`},e.C_NUMBER_MODE]}}t.exports=n})),Ja=n(((e,t)=>{function n(e){return{name:`Packet Filter config`,aliases:[`pf.conf`],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:`block match pass load anchor|5 antispoof|10 set table`,keyword:`in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id`,literal:`all any no-route self urpf-failed egress|5 unknown`},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:`variable`,begin:/\$[\w\d#@][\w\d_]*/,relevance:0},{className:`variable`,begin:/<(?!\/)/,end:/>/}]}}t.exports=n})),Ya=n(((e,t)=>{function n(e){let t=e.COMMENT(`--`,`$`),n=`\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$`,r=`BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`),i=`ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`);return{name:`PostgreSQL`,aliases:[`postgres`,`postgresql`],supersetOf:`sql`,case_insensitive:!0,keywords:{keyword:`ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS `,built_in:`CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED `},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:`keyword`,variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:`INCLUDE`},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:`CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR`}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:`NAME`}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:`DOCUMENT CONTENT`}},{beginKeywords:`CACHE INCREMENT MAXVALUE MINVALUE`,end:e.C_NUMBER_RE,returnEnd:!0,keywords:`BY CACHE INCREMENT MAXVALUE MINVALUE`},{className:`type`,begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:`type`,begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:`RETURNS`,type:`LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER`}},{begin:`\\b(`+i+`)\\s*\\(`},{begin:`\\.(`+r+`)\\b`},{begin:`\\b(`+r+`)\\s+PATH\\b`,keywords:{keyword:`PATH`,type:`BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 `}},{className:`type`,begin:`\\b(`+r+`)\\b`},{className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},{className:`string`,begin:`(e|E|u&|U&)'`,end:`'`,contains:[{begin:`\\\\.`}],relevance:10},e.END_SAME_AS_BEGIN({begin:n,end:n,contains:[{subLanguage:[`pgsql`,`perl`,`python`,`tcl`,`r`,`lua`,`java`,`php`,`ruby`,`bash`,`scheme`,`xml`,`json`],endsWithParent:!0}]}),{begin:`"`,end:`"`,contains:[{begin:`""`}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:`meta`,variants:[{begin:`%(ROW)?TYPE`,relevance:10},{begin:`\\$\\d+`},{begin:`^#\\w`,end:`$`}]},{className:`symbol`,begin:`<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>`,relevance:10}]}}t.exports=n})),Xa=n(((e,t)=>{function n(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[ +]`,m={scope:`string`,variants:[u,l,d,f]},h={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},g=[`false`,`null`,`true`],_=`__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`.split(`.`),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`.split(`.`),y={keyword:_,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(g),built_in:v},b=e=>e.map(e=>e.replace(/\|\d+$/,``)),x={variants:[{match:[/new/,t.concat(p,`+`),t.concat(`(?!`,b(v).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},S=t.concat(r,`\\b(?!\\()`),C={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),S],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(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[w,o,C,e.C_BLOCK_COMMENT_MODE,m,h,x]},E={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,b(_).join(`\\b|`),`|`,b(v).join(`\\b|`),`\\b)`),r,t.concat(p,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[T]};T.contains.push(E);let D=[w,C,e.C_BLOCK_COMMENT_MODE,m,h,x],O={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:g,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:[`new`,`array`]},contains:[`self`,...D]},...D,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:y,contains:[O,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}]}},s,{scope:`variable.language`,match:/\$this\b/},o,E,C,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},x,{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:y,contains:[`self`,O,o,C,e.C_BLOCK_COMMENT_MODE,m,h]}]},{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]},m,h]}}t.exports=n})),Za=n(((e,t)=>{function n(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})]}]}}t.exports=n})),Qa=n(((e,t)=>{function n(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}t.exports=n})),$a=n(((e,t)=>{function n(e){return{name:`Pony`,keywords:{keyword:`actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor`,meta:`iso val tag trn box ref`,literal:`this false true`},contains:[{className:`type`,begin:`\\b_?[A-Z][\\w]*`,relevance:0},{className:`string`,begin:`"""`,end:`"""`,relevance:10},{className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+`'`,relevance:0},{className:`number`,begin:`(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),eo=n(((e,t)=>{function n(e){let t=[`string`,`char`,`byte`,`int`,`long`,`bool`,`decimal`,`single`,`double`,`DateTime`,`xml`,`array`,`hashtable`,`void`],n={$pattern:/-?[A-z\.\-]+\b/,keyword:`if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter`,built_in:`ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write`},r=/\w[\w\d]*((-)[\w\d]+)*/,i={begin:"`[\\s\\S]",relevance:0},a={className:`variable`,variants:[{begin:/\$\B/},{className:`keyword`,begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},o={className:`literal`,begin:/\$(null|true|false)\b/},s={className:`string`,variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:`variable`,begin:/\$[A-z]/,end:/[^A-z]/}]},c={className:`string`,variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},l=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:`doctag`,variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),u={className:`built_in`,variants:[{begin:`(Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where)+(-)[\\w\\d]+`}]},d={className:`class`,beginKeywords:`class enum`,end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},f={className:`function`,begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:`function`,relevance:0,className:`keyword`},{className:`title`,begin:r,relevance:0},{begin:/\(/,end:/\)/,className:`params`,relevance:0,contains:[a]}]},p={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,c,{className:`keyword`,begin:/(using|assembly|command|module|namespace|type)/}]},m={variants:[{className:`operator`,begin:`(-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor)\\b`},{className:`literal`,begin:/(-){1,2}[\w\d-]+/,relevance:0}]},h={className:`selector-tag`,begin:/@\B/,relevance:0},g={className:`function`,begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:`keyword`,begin:`(${n.keyword.toString().replace(/\s/g,`|`)})\\b`,endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},_=[g,l,i,e.NUMBER_MODE,s,c,u,a,o,h],v={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[`self`].concat(_,{begin:`(`+t.join(`|`)+`)`,className:`built_in`,relevance:0},{className:`type`,begin:/[\.\w\d]+/,relevance:0})};return g.contains.unshift(v),{name:`PowerShell`,aliases:[`pwsh`,`ps`,`ps1`],case_insensitive:!0,keywords:n,contains:_.concat(d,f,p,m,v)}}t.exports=n})),to=n(((e,t)=>{function n(e){let t=e.regex,n=`displayHeight.displayWidth.mouseY.mouseX.mousePressed.pmouseX.pmouseY.key.keyCode.pixels.focused.frameCount.frameRate.height.width.size.createGraphics.beginDraw.createShape.loadShape.PShape.arc.ellipse.line.point.quad.rect.triangle.bezier.bezierDetail.bezierPoint.bezierTangent.curve.curveDetail.curvePoint.curveTangent.curveTightness.shape.shapeMode.beginContour.beginShape.bezierVertex.curveVertex.endContour.endShape.quadraticVertex.vertex.ellipseMode.noSmooth.rectMode.smooth.strokeCap.strokeJoin.strokeWeight.mouseClicked.mouseDragged.mouseMoved.mousePressed.mouseReleased.mouseWheel.keyPressed.keyPressedkeyReleased.keyTyped.print.println.save.saveFrame.day.hour.millis.minute.month.second.year.background.clear.colorMode.fill.noFill.noStroke.stroke.alpha.blue.brightness.color.green.hue.lerpColor.red.saturation.modelX.modelY.modelZ.screenX.screenY.screenZ.ambient.emissive.shininess.specular.add.createImage.beginCamera.camera.endCamera.frustum.ortho.perspective.printCamera.printProjection.cursor.frameRate.noCursor.exit.loop.noLoop.popStyle.pushStyle.redraw.binary.boolean.byte.char.float.hex.int.str.unbinary.unhex.join.match.matchAll.nf.nfc.nfp.nfs.split.splitTokens.trim.append.arrayCopy.concat.expand.reverse.shorten.sort.splice.subset.box.sphere.sphereDetail.createInput.createReader.loadBytes.loadJSONArray.loadJSONObject.loadStrings.loadTable.loadXML.open.parseXML.saveTable.selectFolder.selectInput.beginRaw.beginRecord.createOutput.createWriter.endRaw.endRecord.PrintWritersaveBytes.saveJSONArray.saveJSONObject.saveStream.saveStrings.saveXML.selectOutput.popMatrix.printMatrix.pushMatrix.resetMatrix.rotate.rotateX.rotateY.rotateZ.scale.shearX.shearY.translate.ambientLight.directionalLight.lightFalloff.lights.lightSpecular.noLights.normal.pointLight.spotLight.image.imageMode.loadImage.noTint.requestImage.tint.texture.textureMode.textureWrap.blend.copy.filter.get.loadPixels.set.updatePixels.blendMode.loadShader.PShaderresetShader.shader.createFont.loadFont.text.textFont.textAlign.textLeading.textMode.textSize.textWidth.textAscent.textDescent.abs.ceil.constrain.dist.exp.floor.lerp.log.mag.map.max.min.norm.pow.round.sq.sqrt.acos.asin.atan.atan2.cos.degrees.radians.sin.tan.noise.noiseDetail.noiseSeed.random.randomGaussian.randomSeed`.split(`.`),r=e.IDENT_RE,i={variants:[{match:t.concat(t.either(...n),t.lookahead(/\s*\(/)),className:`built_in`},{relevance:0,match:t.concat(/\b(?!for|if|while)/,r,t.lookahead(/\s*\(/)),className:`title.function`}]},a={match:[/new\s+/,r],className:{1:`keyword`,2:`class.title`}},o={relevance:0,match:[/\./,r],className:{2:`property`}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},c=[`boolean`,`byte`,`char`,`color`,`double`,`float`,`int`,`long`,`short`],l=[`BufferedReader`,`PVector`,`PFont`,`PImage`,`PGraphics`,`HashMap`,`String`,`Array`,`FloatDict`,`ArrayList`,`FloatList`,`IntDict`,`IntList`,`JSONArray`,`JSONObject`,`Object`,`StringDict`,`StringList`,`Table`,`TableRow`,`XML`];return{name:`Processing`,aliases:[`pde`],keywords:{keyword:[...`abstract.assert.break.case.catch.const.continue.default.else.enum.final.finally.for.if.import.instanceof.long.native.new.package.private.private.protected.protected.public.public.return.static.strictfp.switch.synchronized.throw.throws.transient.try.void.volatile.while`.split(`.`)],literal:`P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false`,title:`setup draw`,variable:`super this`,built_in:[...n,...l],type:c},contains:[s,a,i,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),no=n(((e,t)=>{function n(e){return{name:`Python profiler`,contains:[e.C_NUMBER_MODE,{begin:`[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}`,end:`:`,excludeEnd:!0},{begin:`(ncalls|tottime|cumtime)`,end:`$`,keywords:`ncalls tottime|10 cumtime|10 filename`,relevance:10},{begin:`function calls`,end:`$`,contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:`\\(`,end:`\\)$`,excludeBegin:!0,excludeEnd:!0,relevance:0}]}}t.exports=n})),ro=n(((e,t)=>{function n(e){let t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:`symbol`,variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},a={className:`comment`,begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:`string`,begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s=[t,n,r,{begin:/:-/},i,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,{className:`string`,begin:/0'(\\'|.)/},{className:`string`,begin:/0'\\s/},e.C_NUMBER_MODE];return r.contains=s,i.contains=s,{name:`Prolog`,contains:s.concat([{begin:/\.$/}])}}t.exports=n})),io=n(((e,t)=>{function n(e){let t=`[ \\t\\f]*`,n=t+`[:=][ \\t\\f]*`;``+n;let r=`([^\\\\:= \\t\\f\\n]|\\\\.)+`;return{name:`.properties`,disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(`^\\s*[!#]`,`$`),{returnBegin:!0,variants:[{begin:r+n},{begin:r+`[ \\t\\f]+`}],contains:[{className:`attr`,begin:r,endsParent:!0}],starts:{end:`([ \\t\\f]*[:=][ \\t\\f]*|[ \\t\\f]+)`,relevance:0,starts:{className:`string`,end:/$/,relevance:0,contains:[{begin:`\\\\\\\\`},{begin:`\\\\\\n`}]}}},{className:`attr`,begin:r+t+`$`}]}}t.exports=n})),ao=n(((e,t)=>{function n(e){let t=[`package`,`import`,`option`,`optional`,`required`,`repeated`,`group`,`oneof`],n=[`double`,`float`,`int32`,`int64`,`uint32`,`uint64`,`sint32`,`sint64`,`fixed32`,`fixed64`,`sfixed32`,`sfixed64`,`bool`,`string`,`bytes`],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:`keyword`,2:`title.class`}};return{name:`Protocol Buffers`,aliases:[`proto`],keywords:{keyword:t,type:n,literal:[`true`,`false`]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:`function`,beginKeywords:`rpc`,end:/[{;]/,excludeEnd:!0,keywords:`rpc returns`},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}t.exports=n})),oo=n(((e,t)=>{function n(e){let t={keyword:`and case default else elsif false if in import enherits node or true undef unless main settings $string `,literal:`alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted`,built_in:`architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version`},n=e.COMMENT(`#`,`$`),r=`([A-Za-z_]|::)(\\w|::)*`,i=e.inherit(e.TITLE_MODE,{begin:r}),a={className:`variable`,begin:`\\$`+r},o={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:`Puppet`,aliases:[`pp`],contains:[n,a,o,{beginKeywords:`class`,end:`\\{|;`,illegal:/=/,contains:[i,n]},{beginKeywords:`define`,end:/\{/,contains:[{className:`section`,begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+`\\s+\\{`,returnBegin:!0,end:/\S/,contains:[{className:`keyword`,begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[o,n,{begin:`[a-zA-Z_]+\\s*=>`,returnBegin:!0,end:`=>`,contains:[{className:`attr`,begin:e.IDENT_RE}]},{className:`number`,begin:`(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b`,relevance:0},a]}],relevance:0}]}}t.exports=n})),so=n(((e,t)=>{function n(e){return{name:`PureBASIC`,aliases:[`pb`,`pbi`],keywords:`Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr`,contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`function`,begin:`\\b(Procedure|Declare)(C|CDLL|DLL)?\\b`,end:`\\(`,excludeEnd:!0,returnBegin:!0,contains:[{className:`keyword`,begin:`(Procedure|Declare)(C|CDLL|DLL)?`,excludeEnd:!0},{className:`type`,begin:`\\.\\w*`},e.UNDERSCORE_TITLE_MODE]},{className:`string`,begin:`(~)?"`,end:`"`,illegal:`\\n`},{className:`symbol`,begin:`#[a-zA-Z_]\\w*\\$?`}]}}t.exports=n})),co=n(((e,t)=>{function n(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`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`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,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`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},c={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{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,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},l=`[0-9](_?[0-9])*`,u=`(\\b(${l}))?\\.(${l})|\\b(${l})\\.`,d=`\\b|${r.join(`|`)}`,f={className:`number`,relevance:0,variants:[{begin:`(\\b(${l})|(${u}))[eE][+-]?(${l})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${l})[jJ](?=${d})`}]},p={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,f,c,e.HASH_COMMENT_MODE]}]};return o.contains=[c,f,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,f,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},c,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:`keyword`,3:`title.class`,6:`title.class.inherited`}},{className:`meta`,begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[f,m,c]}]}}t.exports=n})),lo=n(((e,t)=>{function n(e){return{aliases:[`pycon`],contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`python`}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),uo=n(((e,t)=>{function n(e){return{name:`Q`,aliases:[`k`,`kdb`],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:`do while select delete by update from`,literal:`0b 1b`,built_in:`neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum`,type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),fo=n(((e,t)=>{function n(e){let t=e.regex,n={keyword:`in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import`,literal:`true false null undefined NaN Infinity`,built_in:`eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise`},r=`[a-zA-Z_][a-zA-Z0-9\\._]*`,i={className:`keyword`,begin:`\\bproperty\\b`,starts:{className:`string`,end:`(:|=|;|,|//|/\\*|$)`,returnEnd:!0}},a={className:`keyword`,begin:`\\bsignal\\b`,starts:{className:`string`,end:`(\\(|:|=|;|,|//|/\\*|$)`,returnEnd:!0}},o={className:`attribute`,begin:`\\bid\\s*:`,starts:{className:`string`,end:r,returnEnd:!1}},s={begin:r+`\\s*:`,returnBegin:!0,contains:[{className:`attribute`,begin:r,end:`\\s*:`,excludeEnd:!0,relevance:0}],relevance:0},c={begin:t.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:r})]};return{name:`QML`,aliases:[`qt`],case_insensitive:!1,keywords:n,contains:[{className:`meta`,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:`subst`,begin:`\\$\\{`,end:`\\}`}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`number`,variants:[{begin:`\\b(0[bB][01]+)`},{begin:`\\b(0[oO][0-7]+)`},{begin:e.C_NUMBER_RE}],relevance:0},{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:`xml`}],relevance:0},a,i,{className:`function`,beginKeywords:`function`,end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:`\\.`+e.IDENT_RE,relevance:0},o,s,c],illegal:/#/}}t.exports=n})),po=n(((e,t)=>{function n(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=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=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:`R`,keywords:{$pattern:n,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:n},{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,r]},{scope:{1:`operator`,2:`number`},match:[/%[^%]*%/,r]},{scope:{1:`punctuation`,2:`number`},match:[a,r]},{scope:{2:`number`},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:`operator`},match:[n,/\s+/,/<-/,/\s+/]},{scope:`operator`,relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:`punctuation`,relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}t.exports=n})),mo=n(((e,t)=>{function n(e){return{name:`ReasonML`,aliases:[`re`],keywords:{$pattern:/[a-z_]\w*!?/,keyword:`and.as.asr.assert.begin.class.constraint.do.done.downto.else.end.esfun.exception.external.for.fun.function.functor.if.in.include.inherit.initializer.land.lazy.let.lor.lsl.lsr.lxor.mod.module.mutable.new.nonrec.object.of.open.or.pri.pub.rec.sig.struct.switch.then.to.try.type.val.virtual.when.while.with`.split(`.`),built_in:[`array`,`bool`,`bytes`,`char`,`exn|5`,`float`,`int`,`int32`,`int64`,`list`,`lazy_t|5`,`nativeint|5`,`ref`,`string`,`unit`],literal:[`true`,`false`]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:`literal`,match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:`symbol`,match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:`type`,match:/`[A-Z][\w\']*/},{scope:`type`,match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:`operator`,match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:`number`,variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}t.exports=n})),ho=n(((e,t)=>{function n(e){return{name:`RenderMan RIB`,keywords:`ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd`,illegal:`{function n(e){let t=`[a-zA-Z-_][^\\n{]+\\{`,n={className:`attribute`,begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:`;`,relevance:0,contains:[{className:`variable`,begin:/\.[a-zA-Z-_]+/},{className:`keyword`,begin:/\(optional\)/}]}};return{name:`Roboconf`,aliases:[`graph`,`instances`],case_insensitive:!0,keywords:`import`,contains:[{begin:`^facet `+t,end:/\}/,keywords:`facet`,contains:[n,e.HASH_COMMENT_MODE]},{begin:`^\\s*instance of `+t,end:/\}/,keywords:`name count channels instance-data instance-state instance of`,illegal:/\S/,contains:[`self`,n,e.HASH_COMMENT_MODE]},{begin:`^`+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}t.exports=n})),_o=n(((e,t)=>{function n(e){let t=`foreach do while for if from to step else on-error and or not in`,n=`true false yes no nothing nil null`,r={className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,{className:`variable`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},a={className:`string`,begin:/'/,end:/'/};return{name:`MikroTik RouterOS script`,aliases:[`mikrotik`],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:n,keyword:t+` :`+t.split(` `).join(` :`)+` :`+`global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime`.split(` `).join(` :`)},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT(`^#`,`$`),i,a,r,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:`attribute`,begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[i,a,r,{className:`literal`,begin:`\\b(`+n.split(` `).join(`|`)+`)\\b`},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:`number`,begin:/\*[0-9a-fA-F]+/},{begin:`\\b(`+`add remove enable disable set get print export edit find run debug error info warning`.split(` `).join(`|`)+`)([\\s[(\\]|])`,returnBegin:!0,contains:[{className:`built_in`,begin:/\w+/}]},{className:`built_in`,variants:[{begin:`(\\.\\./|/|\\s)((`+`traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw`.split(` `).join(`|`)+`);?\\s)+`},{begin:/\.\./,relevance:0}]}]}}t.exports=n})),vo=n(((e,t)=>{function n(e){let t=`abs.acos.ambient.area.asin.atan.atmosphere.attribute.calculatenormal.ceil.cellnoise.clamp.comp.concat.cos.degrees.depth.Deriv.diffuse.distance.Du.Dv.environment.exp.faceforward.filterstep.floor.format.fresnel.incident.length.lightsource.log.match.max.min.mod.noise.normalize.ntransform.opposite.option.phong.pnoise.pow.printf.ptlined.radians.random.reflect.refract.renderinfo.round.setcomp.setxcomp.setycomp.setzcomp.shadow.sign.sin.smoothstep.specular.specularbrdf.spline.sqrt.step.tan.texture.textureinfo.trace.transform.vtransform.xcomp.ycomp.zcomp`.split(`.`),n=[`matrix`,`float`,`color`,`point`,`normal`,`vector`],r=[`while`,`for`,`if`,`do`,`return`,`else`,`break`,`extern`,`continue`],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:`keyword`,3:`title.class`}};return{name:`RenderMan RSL`,keywords:{keyword:r,built_in:t,type:n},illegal:`{function n(e){return{name:`Oracle Rules Language`,keywords:{keyword:`BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING`,built_in:`IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`literal`,variants:[{begin:`#\\s+`,relevance:0},{begin:`#[a-zA-Z .]+`}]}]}}t.exports=n})),bo=n(((e,t)=>{function n(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={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))?`,s=`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`.split(`.`),c=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],l=`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!`.split(`.`),u=[`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:u,keyword:s,literal:c,built_in:l},illegal:``},a]}}t.exports=n})),xo=n(((e,t)=>{function n(e){let t=e.regex,n=`do.if.then.else.end.until.while.abort.array.attrib.by.call.cards.cards4.catname.continue.datalines.datalines4.delete.delim.delimiter.display.dm.drop.endsas.error.file.filename.footnote.format.goto.in.infile.informat.input.keep.label.leave.length.libname.link.list.lostcard.merge.missing.modify.options.output.out.page.put.redirect.remove.rename.replace.retain.return.select.set.skip.startsas.stop.title.update.waitsas.where.window.x|0.systask.add.and.alter.as.cascade.check.create.delete.describe.distinct.drop.foreign.from.group.having.index.insert.into.in.key.like.message.modify.msgtype.not.null.on.or.order.primary.references.reset.restrict.select.set.table.unique.update.validate.view.where`.split(`.`),r=`abs.addr.airy.arcos.arsin.atan.attrc.attrn.band.betainv.blshift.bnot.bor.brshift.bxor.byte.cdf.ceil.cexist.cinv.close.cnonct.collate.compbl.compound.compress.cos.cosh.css.curobs.cv.daccdb.daccdbsl.daccsl.daccsyd.dacctab.dairy.date.datejul.datepart.datetime.day.dclose.depdb.depdbsl.depdbsl.depsl.depsl.depsyd.depsyd.deptab.deptab.dequote.dhms.dif.digamma.dim.dinfo.dnum.dopen.doptname.doptnum.dread.dropnote.dsname.erf.erfc.exist.exp.fappend.fclose.fcol.fdelete.fetch.fetchobs.fexist.fget.fileexist.filename.fileref.finfo.finv.fipname.fipnamel.fipstate.floor.fnonct.fnote.fopen.foptname.foptnum.fpoint.fpos.fput.fread.frewind.frlen.fsep.fuzz.fwrite.gaminv.gamma.getoption.getvarc.getvarn.hbound.hms.hosthelp.hour.ibessel.index.indexc.indexw.input.inputc.inputn.int.intck.intnx.intrr.irr.jbessel.juldate.kurtosis.lag.lbound.left.length.lgamma.libname.libref.log.log10.log2.logpdf.logpmf.logsdf.lowcase.max.mdy.mean.min.minute.mod.month.mopen.mort.n.netpv.nmiss.normal.note.npv.open.ordinal.pathname.pdf.peek.peekc.pmf.point.poisson.poke.probbeta.probbnml.probchi.probf.probgam.probhypr.probit.probnegb.probnorm.probt.put.putc.putn.qtr.quote.ranbin.rancau.ranexp.rangam.range.rank.rannor.ranpoi.rantbl.rantri.ranuni.repeat.resolve.reverse.rewind.right.round.saving.scan.sdf.second.sign.sin.sinh.skewness.soundex.spedis.sqrt.std.stderr.stfips.stname.stnamel.substr.sum.symget.sysget.sysmsg.sysprod.sysrc.system.tan.tanh.time.timepart.tinv.tnonct.today.translate.tranwrd.trigamma.trim.trimn.trunc.uniform.upcase.uss.var.varfmt.varinfmt.varlabel.varlen.varname.varnum.varray.varrayx.vartype.verify.vformat.vformatd.vformatdx.vformatn.vformatnx.vformatw.vformatwx.vformatx.vinarray.vinarrayx.vinformat.vinformatd.vinformatdx.vinformatn.vinformatnx.vinformatw.vinformatwx.vinformatx.vlabel.vlabelx.vlength.vlengthx.vname.vnamex.vtype.vtypex.weekday.year.yyq.zipfips.zipname.zipnamel.zipstate`.split(`.`);return{name:`SAS`,case_insensitive:!0,keywords:{literal:[`null`,`missing`,`_all_`,`_automatic_`,`_character_`,`_infile_`,`_n_`,`_name_`,`_null_`,`_numeric_`,`_user_`,`_webout_`],keyword:n},contains:[{className:`keyword`,begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:`variable`,begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:`keyword`,3:`string`}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:`built_in`,3:`title.function`}},{className:`built_in`,begin:`%`+t.either(...`bquote.nrbquote.cmpres.qcmpres.compstor.datatyp.display.do.else.end.eval.global.goto.if.index.input.keydef.label.left.length.let.local.lowcase.macro.mend.nrbquote.nrquote.nrstr.put.qcmpres.qleft.qlowcase.qscan.qsubstr.qsysfunc.qtrim.quote.qupcase.scan.str.substr.superq.syscall.sysevalf.sysexec.sysfunc.sysget.syslput.sysprod.sysrc.sysrput.then.to.trim.unquote.until.upcase.verify.while.window`.split(`.`))},{className:`title.function`,begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:`meta`,begin:t.either(...r)+`(?=\\()`},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT(`\\*`,`;`),e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),So=n(((e,t)=>{function n(e){let t=e.regex,n={className:`meta`,begin:`@[A-Za-z]+`},r={className:`subst`,variants:[{begin:`\\$[A-Za-z0-9_]+`},{begin:/\$\{/,end:/\}/}]},i={className:`string`,variants:[{begin:`"""`,end:`"""`},{begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`[a-z]+"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,r]},{className:`string`,begin:`[a-z]+"""`,end:`"""`,contains:[r],relevance:10}]},a={className:`type`,begin:`\\b[A-Z][A-Za-z0-9_]*`,relevance:0},o={className:`title`,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:`class`,beginKeywords:`class object trait type`,end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:`extends with`,relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},c={className:`function`,beginKeywords:`def`,end:t.lookahead(/[:={\[(\n;]/),contains:[o]},l={begin:[/^\s*/,`extension`,/\s+(?=[[(])/],beginScope:{2:`keyword`}},u={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:`keyword`,4:`keyword`}},d=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:`inline`}],f={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:`keyword`}};return{name:`Scala`,keywords:{literal:`true false null`,keyword:`type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent`},contains:[{begin:[`//>`,/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:`comment`,3:`keyword`,5:`type`},end:/$/,contains:[{className:`string`,begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,c,s,e.C_NUMBER_MODE,l,u,...d,f,n]}}t.exports=n})),Co=n(((e,t)=>{function n(e){let t=`[^\\(\\)\\[\\]\\{\\}",'\`;#|\\\\\\s]+`,n=`(-|\\+)?\\d+([./]\\d+)?`;n+``;let r={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},i={className:`literal`,begin:`(#t|#f|#\\\\`+t+`|#\\\\.)`},a={className:`number`,variants:[{begin:n,relevance:0},{begin:`(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i`,relevance:0},{begin:`#b[0-1]+(/[0-1]+)?`},{begin:`#o[0-7]+(/[0-7]+)?`},{begin:`#x[0-9a-f]+(/[0-9a-f]+)?`}]},o=e.QUOTE_STRING_MODE,s=[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#\\|`,`\\|#`)],c={begin:t,relevance:0},l={className:`symbol`,begin:`'`+t},u={endsWithParent:!0,relevance:0},d={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:`\\(`,end:`\\)`,contains:[`self`,i,o,a,c,l]}]},f={className:`name`,relevance:0,begin:t,keywords:r},p={variants:[{begin:`\\(`,end:`\\)`},{begin:`\\[`,end:`\\]`}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[c]}]},f,u]};return u.contains=[i,a,o,c,l,d,p].concat(s),{name:`Scheme`,aliases:[`scm`],illegal:/\S/,contains:[e.SHEBANG(),a,o,l,d,p].concat(s)}}t.exports=n})),wo=n(((e,t)=>{function n(e){let t=[e.C_NUMBER_MODE,{className:`string`,begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:`''`}]}];return{name:`Scilab`,aliases:[`sci`],keywords:{$pattern:/%?\w+/,keyword:`abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while`,literal:`%f %F %t %T %pi %eps %inf %nan %e %i %z %s`,built_in:`abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix`},illegal:`("|#|/\\*|\\s+/\\w+)`,contains:[{className:`function`,beginKeywords:`function`,end:`$`,contains:[e.UNDERSCORE_TITLE_MODE,{className:`params`,begin:`\\(`,end:`\\)`}]},{begin:`[a-zA-Z_][a-zA-Z_0-9]*[\\.']+`,relevance:0},{begin:`\\[`,end:`\\][\\.']*`,relevance:0,contains:t},e.COMMENT(`//`,`$`)].concat(t)}}t.exports=n})),To=n(((e,t)=>{var n=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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`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`.split(`.`).sort().reverse();function u(e){let t=n(e),r=c,i=s,u=`@[a-z-]+`,d={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(`+a.join(`|`)+`)\\b`,relevance:0},{className:`selector-pseudo`,begin:`:(`+i.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+r.join(`|`)+`)`},d,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.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,d,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:u,keyword:`@page @font-face`}},{begin:`@`,end:`[{;]`,returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:u,className:`keyword`},{begin:/[a-z-]+(?=:)/,className:`attribute`},d,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}t.exports=u})),Eo=n(((e,t)=>{function n(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}t.exports=n})),Do=n(((e,t)=>{function n(e){let t=`add.and.cmp.cmpg.cmpl.const.div.double.float.goto.if.int.long.move.mul.neg.new.nop.not.or.rem.return.shl.shr.sput.sub.throw.ushr.xor`.split(`.`);return{name:`Smali`,contains:[{className:`string`,begin:`"`,end:`"`,relevance:0},e.COMMENT(`#`,`$`,{relevance:0}),{className:`keyword`,variants:[{begin:`\\s*\\.end\\s[a-zA-Z0-9]*`},{begin:`^[ ]*\\.[a-zA-Z]*`,relevance:0},{begin:`\\s:[a-zA-Z_0-9]*`,relevance:0},{begin:`\\s(`+[`transient`,`constructor`,`abstract`,`final`,`synthetic`,`public`,`private`,`protected`,`static`,`bridge`,`system`].join(`|`)+`)`}]},{className:`built_in`,variants:[{begin:`\\s(`+t.join(`|`)+`)\\s`},{begin:`\\s(`+t.join(`|`)+`)((-|/)[a-zA-Z0-9]+)+\\s`,relevance:10},{begin:`\\s(`+[`aget`,`aput`,`array`,`check`,`execute`,`fill`,`filled`,`goto/16`,`goto/32`,`iget`,`instance`,`invoke`,`iput`,`monitor`,`packed`,`sget`,`sparse`].join(`|`)+`)((-|/)[a-zA-Z0-9]+)*\\s`,relevance:10}]},{className:`class`,begin:`L[^(;: +]*;`,relevance:0},{begin:`[vp][0-9]+`}]}}t.exports=n})),Oo=n(((e,t)=>{function n(e){let t=`[a-z][a-zA-Z0-9_]*`,n={className:`string`,begin:`\\$.{1}`},r={className:`symbol`,begin:`#`+e.UNDERSCORE_IDENT_RE};return{name:`Smalltalk`,aliases:[`st`],keywords:[`self`,`super`,`nil`,`true`,`false`,`thisContext`],contains:[e.COMMENT(`"`,`"`),e.APOS_STRING_MODE,{className:`type`,begin:`\\b[A-Z][A-Za-z0-9_]*`,relevance:0},{begin:t+`:`,relevance:0},e.C_NUMBER_MODE,r,n,{begin:`\\|[ ]*`+t+`([ ]+[a-z][a-zA-Z0-9_]*)*[ ]*\\|`,returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:`(\\|[ ]*)?`+t}]},{begin:`#\\(`,end:`\\)`,contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}t.exports=n})),ko=n(((e,t)=>{function n(e){return{name:`SML (Standard ML)`,aliases:[`ml`],keywords:{$pattern:`[a-z_]\\w*!?`,keyword:`abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while`,built_in:`array bool char exn int list option order real ref string substring vector unit word`,literal:`true false NONE SOME LESS EQUAL GREATER nil`},illegal:/\/\/|>>/,contains:[{className:`literal`,begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT(`\\(\\*`,`\\*\\)`,{contains:[`self`]}),{className:`symbol`,begin:`'[A-Za-z_](?!')[\\w']*`},{className:`type`,begin:"`[A-Z][\\w']*"},{className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},{begin:`[a-z_]\\w*'[\\w']*`},e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`number`,begin:`\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)`,relevance:0},{begin:/[-=]>/}]}}t.exports=n})),Ao=n(((e,t)=>{function n(e){let t={className:`variable`,begin:/\b_+[a-zA-Z]\w*/},n={className:`title`,begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:`string`,variants:[{begin:`"`,end:`"`,contains:[{begin:`""`,relevance:0}]},{begin:`'`,end:`'`,contains:[{begin:`''`,relevance:0}]}]},i=`break.breakWith.breakOut.breakTo.case.catch.continue.continueWith.default.do.else.exit.exitWith.for.forEach.from.if.local.private.switch.step.then.throw.to.try.waitUntil.while.with`.split(`.`),a=`blufor.civilian.configNull.controlNull.displayNull.diaryRecordNull.east.endl.false.grpNull.independent.lineBreak.locationNull.nil.objNull.opfor.pi.resistance.scriptNull.sideAmbientLife.sideEmpty.sideEnemy.sideFriendly.sideLogic.sideUnknown.taskNull.teamMemberNull.true.west`.split(`.`),o=`abs.accTime.acos.action.actionIDs.actionKeys.actionKeysEx.actionKeysImages.actionKeysNames.actionKeysNamesArray.actionName.actionParams.activateAddons.activatedAddons.activateKey.activeTitleEffectParams.add3DENConnection.add3DENEventHandler.add3DENLayer.addAction.addBackpack.addBackpackCargo.addBackpackCargoGlobal.addBackpackGlobal.addBinocularItem.addCamShake.addCuratorAddons.addCuratorCameraArea.addCuratorEditableObjects.addCuratorEditingArea.addCuratorPoints.addEditorObject.addEventHandler.addForce.addForceGeneratorRTD.addGoggles.addGroupIcon.addHandgunItem.addHeadgear.addItem.addItemCargo.addItemCargoGlobal.addItemPool.addItemToBackpack.addItemToUniform.addItemToVest.addLiveStats.addMagazine.addMagazineAmmoCargo.addMagazineCargo.addMagazineCargoGlobal.addMagazineGlobal.addMagazinePool.addMagazines.addMagazineTurret.addMenu.addMenuItem.addMissionEventHandler.addMPEventHandler.addMusicEventHandler.addonFiles.addOwnedMine.addPlayerScores.addPrimaryWeaponItem.addPublicVariableEventHandler.addRating.addResources.addScore.addScoreSide.addSecondaryWeaponItem.addSwitchableUnit.addTeamMember.addToRemainsCollector.addTorque.addUniform.addUserActionEventHandler.addVehicle.addVest.addWaypoint.addWeapon.addWeaponCargo.addWeaponCargoGlobal.addWeaponGlobal.addWeaponItem.addWeaponPool.addWeaponTurret.addWeaponWithAttachmentsCargo.addWeaponWithAttachmentsCargoGlobal.admin.agent.agents.AGLToASL.aimedAtTarget.aimPos.airDensityCurveRTD.airDensityRTD.airplaneThrottle.airportSide.AISFinishHeal.alive.all3DENEntities.allActiveTitleEffects.allAddonsInfo.allAirports.allControls.allCurators.allCutLayers.allDead.allDeadMen.allDiaryRecords.allDiarySubjects.allDisplays.allEnv3DSoundSources.allGroups.allLODs.allMapMarkers.allMines.allMissionObjects.allObjects.allow3DMode.allowCrewInImmobile.allowCuratorLogicIgnoreAreas.allowDamage.allowDammage.allowedService.allowFileOperations.allowFleeing.allowGetIn.allowService.allowSprint.allPlayers.allSimpleObjects.allSites.allTurrets.allUnits.allUnitsUAV.allUsers.allVariables.ambientTemperature.ammo.ammoOnPylon.and.animate.animateBay.animateDoor.animatePylon.animateSource.animationNames.animationPhase.animationSourcePhase.animationState.apertureParams.append.apply.armoryPoints.arrayIntersect.asin.ASLToAGL.ASLToATL.assert.assignAsCargo.assignAsCargoIndex.assignAsCommander.assignAsDriver.assignAsGunner.assignAsTurret.assignCurator.assignedCargo.assignedCommander.assignedDriver.assignedGroup.assignedGunner.assignedItems.assignedTarget.assignedTeam.assignedVehicle.assignedVehicleRole.assignedVehicles.assignItem.assignTeam.assignToAirport.atan.atan2.atg.ATLToASL.attachedObject.attachedObjects.attachedTo.attachObject.attachTo.attackEnabled.awake.backpack.backpackCargo.backpackContainer.backpackItems.backpackMagazines.backpackSpaceFor.behaviour.benchmark.bezierInterpolation.binocular.binocularItems.binocularMagazine.boundingBox.boundingBoxReal.boundingCenter.brakesDisabled.briefingName.buildingExit.buildingPos.buldozer_EnableRoadDiag.buldozer_IsEnabledRoadDiag.buldozer_LoadNewRoads.buldozer_reloadOperMap.buttonAction.buttonSetAction.cadetMode.calculatePath.calculatePlayerVisibilityByFriendly.call.callExtension.camCommand.camCommit.camCommitPrepared.camCommitted.camConstuctionSetParams.camCreate.camDestroy.cameraEffect.cameraEffectEnableHUD.cameraInterest.cameraOn.cameraView.campaignConfigFile.camPreload.camPreloaded.camPrepareBank.camPrepareDir.camPrepareDive.camPrepareFocus.camPrepareFov.camPrepareFovRange.camPreparePos.camPrepareRelPos.camPrepareTarget.camSetBank.camSetDir.camSetDive.camSetFocus.camSetFov.camSetFovRange.camSetPos.camSetRelPos.camSetTarget.camTarget.camUseNVG.canAdd.canAddItemToBackpack.canAddItemToUniform.canAddItemToVest.cancelSimpleTaskDestination.canDeployWeapon.canFire.canMove.canSlingLoad.canStand.canSuspend.canTriggerDynamicSimulation.canUnloadInCombat.canVehicleCargo.captive.captiveNum.cbChecked.cbSetChecked.ceil.channelEnabled.cheatsEnabled.checkAIFeature.checkVisibility.className.clear3DENAttribute.clear3DENInventory.clearAllItemsFromBackpack.clearBackpackCargo.clearBackpackCargoGlobal.clearForcesRTD.clearGroupIcons.clearItemCargo.clearItemCargoGlobal.clearItemPool.clearMagazineCargo.clearMagazineCargoGlobal.clearMagazinePool.clearOverlay.clearRadio.clearWeaponCargo.clearWeaponCargoGlobal.clearWeaponPool.clientOwner.closeDialog.closeDisplay.closeOverlay.collapseObjectTree.collect3DENHistory.collectiveRTD.collisionDisabledWith.combatBehaviour.combatMode.commandArtilleryFire.commandChat.commander.commandFire.commandFollow.commandFSM.commandGetOut.commandingMenu.commandMove.commandRadio.commandStop.commandSuppressiveFire.commandTarget.commandWatch.comment.commitOverlay.compatibleItems.compatibleMagazines.compile.compileFinal.compileScript.completedFSM.composeText.configClasses.configFile.configHierarchy.configName.configOf.configProperties.configSourceAddonList.configSourceMod.configSourceModList.confirmSensorTarget.connectTerminalToUAV.connectToServer.controlsGroupCtrl.conversationDisabled.copyFromClipboard.copyToClipboard.copyWaypoints.cos.count.countEnemy.countFriendly.countSide.countType.countUnknown.create3DENComposition.create3DENEntity.createAgent.createCenter.createDialog.createDiaryLink.createDiaryRecord.createDiarySubject.createDisplay.createGearDialog.createGroup.createGuardedPoint.createHashMap.createHashMapFromArray.createLocation.createMarker.createMarkerLocal.createMenu.createMine.createMissionDisplay.createMPCampaignDisplay.createSimpleObject.createSimpleTask.createSite.createSoundSource.createTask.createTeam.createTrigger.createUnit.createVehicle.createVehicleCrew.createVehicleLocal.crew.ctAddHeader.ctAddRow.ctClear.ctCurSel.ctData.ctFindHeaderRows.ctFindRowHeader.ctHeaderControls.ctHeaderCount.ctRemoveHeaders.ctRemoveRows.ctrlActivate.ctrlAddEventHandler.ctrlAngle.ctrlAnimateModel.ctrlAnimationPhaseModel.ctrlAt.ctrlAutoScrollDelay.ctrlAutoScrollRewind.ctrlAutoScrollSpeed.ctrlBackgroundColor.ctrlChecked.ctrlClassName.ctrlCommit.ctrlCommitted.ctrlCreate.ctrlDelete.ctrlEnable.ctrlEnabled.ctrlFade.ctrlFontHeight.ctrlForegroundColor.ctrlHTMLLoaded.ctrlIDC.ctrlIDD.ctrlMapAnimAdd.ctrlMapAnimClear.ctrlMapAnimCommit.ctrlMapAnimDone.ctrlMapCursor.ctrlMapMouseOver.ctrlMapPosition.ctrlMapScale.ctrlMapScreenToWorld.ctrlMapSetPosition.ctrlMapWorldToScreen.ctrlModel.ctrlModelDirAndUp.ctrlModelScale.ctrlMousePosition.ctrlParent.ctrlParentControlsGroup.ctrlPosition.ctrlRemoveAllEventHandlers.ctrlRemoveEventHandler.ctrlScale.ctrlScrollValues.ctrlSetActiveColor.ctrlSetAngle.ctrlSetAutoScrollDelay.ctrlSetAutoScrollRewind.ctrlSetAutoScrollSpeed.ctrlSetBackgroundColor.ctrlSetChecked.ctrlSetDisabledColor.ctrlSetEventHandler.ctrlSetFade.ctrlSetFocus.ctrlSetFont.ctrlSetFontH1.ctrlSetFontH1B.ctrlSetFontH2.ctrlSetFontH2B.ctrlSetFontH3.ctrlSetFontH3B.ctrlSetFontH4.ctrlSetFontH4B.ctrlSetFontH5.ctrlSetFontH5B.ctrlSetFontH6.ctrlSetFontH6B.ctrlSetFontHeight.ctrlSetFontHeightH1.ctrlSetFontHeightH2.ctrlSetFontHeightH3.ctrlSetFontHeightH4.ctrlSetFontHeightH5.ctrlSetFontHeightH6.ctrlSetFontHeightSecondary.ctrlSetFontP.ctrlSetFontPB.ctrlSetFontSecondary.ctrlSetForegroundColor.ctrlSetModel.ctrlSetModelDirAndUp.ctrlSetModelScale.ctrlSetMousePosition.ctrlSetPixelPrecision.ctrlSetPosition.ctrlSetPositionH.ctrlSetPositionW.ctrlSetPositionX.ctrlSetPositionY.ctrlSetScale.ctrlSetScrollValues.ctrlSetShadow.ctrlSetStructuredText.ctrlSetText.ctrlSetTextColor.ctrlSetTextColorSecondary.ctrlSetTextSecondary.ctrlSetTextSelection.ctrlSetTooltip.ctrlSetTooltipColorBox.ctrlSetTooltipColorShade.ctrlSetTooltipColorText.ctrlSetTooltipMaxWidth.ctrlSetURL.ctrlSetURLOverlayMode.ctrlShadow.ctrlShow.ctrlShown.ctrlStyle.ctrlText.ctrlTextColor.ctrlTextHeight.ctrlTextSecondary.ctrlTextSelection.ctrlTextWidth.ctrlTooltip.ctrlType.ctrlURL.ctrlURLOverlayMode.ctrlVisible.ctRowControls.ctRowCount.ctSetCurSel.ctSetData.ctSetHeaderTemplate.ctSetRowTemplate.ctSetValue.ctValue.curatorAddons.curatorCamera.curatorCameraArea.curatorCameraAreaCeiling.curatorCoef.curatorEditableObjects.curatorEditingArea.curatorEditingAreaType.curatorMouseOver.curatorPoints.curatorRegisteredObjects.curatorSelected.curatorWaypointCost.current3DENOperation.currentChannel.currentCommand.currentMagazine.currentMagazineDetail.currentMagazineDetailTurret.currentMagazineTurret.currentMuzzle.currentNamespace.currentPilot.currentTask.currentTasks.currentThrowable.currentVisionMode.currentWaypoint.currentWeapon.currentWeaponMode.currentWeaponTurret.currentZeroing.cursorObject.cursorTarget.customChat.customRadio.customWaypointPosition.cutFadeOut.cutObj.cutRsc.cutText.damage.date.dateToNumber.dayTime.deActivateKey.debriefingText.debugFSM.debugLog.decayGraphValues.deg.delete3DENEntities.deleteAt.deleteCenter.deleteCollection.deleteEditorObject.deleteGroup.deleteGroupWhenEmpty.deleteIdentity.deleteLocation.deleteMarker.deleteMarkerLocal.deleteRange.deleteResources.deleteSite.deleteStatus.deleteTeam.deleteVehicle.deleteVehicleCrew.deleteWaypoint.detach.detectedMines.diag_activeMissionFSMs.diag_activeScripts.diag_activeSQFScripts.diag_activeSQSScripts.diag_allMissionEventHandlers.diag_captureFrame.diag_captureFrameToFile.diag_captureSlowFrame.diag_codePerformance.diag_deltaTime.diag_drawmode.diag_dumpCalltraceToLog.diag_dumpScriptAssembly.diag_dumpTerrainSynth.diag_dynamicSimulationEnd.diag_enable.diag_enabled.diag_exportConfig.diag_exportTerrainSVG.diag_fps.diag_fpsmin.diag_frameno.diag_getTerrainSegmentOffset.diag_lightNewLoad.diag_list.diag_localized.diag_log.diag_logSlowFrame.diag_mergeConfigFile.diag_recordTurretLimits.diag_resetFSM.diag_resetshapes.diag_scope.diag_setLightNew.diag_stacktrace.diag_tickTime.diag_toggle.dialog.diarySubjectExists.didJIP.didJIPOwner.difficulty.difficultyEnabled.difficultyEnabledRTD.difficultyOption.direction.directionStabilizationEnabled.directSay.disableAI.disableBrakes.disableCollisionWith.disableConversation.disableDebriefingStats.disableMapIndicators.disableNVGEquipment.disableRemoteSensors.disableSerialization.disableTIEquipment.disableUAVConnectability.disableUserInput.displayAddEventHandler.displayChild.displayCtrl.displayParent.displayRemoveAllEventHandlers.displayRemoveEventHandler.displaySetEventHandler.displayUniqueName.displayUpdate.dissolveTeam.distance.distance2D.distanceSqr.distributionRegion.do3DENAction.doArtilleryFire.doFire.doFollow.doFSM.doGetOut.doMove.doorPhase.doStop.doSuppressiveFire.doTarget.doWatch.drawArrow.drawEllipse.drawIcon.drawIcon3D.drawLaser.drawLine.drawLine3D.drawLink.drawLocation.drawPolygon.drawRectangle.drawTriangle.driver.drop.dynamicSimulationDistance.dynamicSimulationDistanceCoef.dynamicSimulationEnabled.dynamicSimulationSystemEnabled.echo.edit3DENMissionAttributes.editObject.editorSetEventHandler.effectiveCommander.elevatePeriscope.emptyPositions.enableAI.enableAIFeature.enableAimPrecision.enableAttack.enableAudioFeature.enableAutoStartUpRTD.enableAutoTrimRTD.enableCamShake.enableCaustics.enableChannel.enableCollisionWith.enableCopilot.enableDebriefingStats.enableDiagLegend.enableDirectionStabilization.enableDynamicSimulation.enableDynamicSimulationSystem.enableEndDialog.enableEngineArtillery.enableEnvironment.enableFatigue.enableGunLights.enableInfoPanelComponent.enableIRLasers.enableMimics.enablePersonTurret.enableRadio.enableReload.enableRopeAttach.enableSatNormalOnDetail.enableSaving.enableSentences.enableSimulation.enableSimulationGlobal.enableStamina.enableStressDamage.enableTeamSwitch.enableTraffic.enableUAVConnectability.enableUAVWaypoints.enableVehicleCargo.enableVehicleSensor.enableWeaponDisassembly.endLoadingScreen.endMission.engineOn.enginesIsOnRTD.enginesPowerRTD.enginesRpmRTD.enginesTorqueRTD.entities.environmentEnabled.environmentVolume.equipmentDisabled.estimatedEndServerTime.estimatedTimeLeft.evalObjectArgument.everyBackpack.everyContainer.exec.execEditorScript.execFSM.execVM.exp.expectedDestination.exportJIPMessages.eyeDirection.eyePos.face.faction.fadeEnvironment.fadeMusic.fadeRadio.fadeSound.fadeSpeech.failMission.fileExists.fillWeaponsFromPool.find.findAny.findCover.findDisplay.findEditorObject.findEmptyPosition.findEmptyPositionReady.findIf.findNearestEnemy.finishMissionInit.finite.fire.fireAtTarget.firstBackpack.flag.flagAnimationPhase.flagOwner.flagSide.flagTexture.flatten.fleeing.floor.flyInHeight.flyInHeightASL.focusedCtrl.fog.fogForecast.fogParams.forceAddUniform.forceAtPositionRTD.forceCadetDifficulty.forcedMap.forceEnd.forceFlagTexture.forceFollowRoad.forceGeneratorRTD.forceMap.forceRespawn.forceSpeed.forceUnicode.forceWalk.forceWeaponFire.forceWeatherChange.forEachMember.forEachMemberAgent.forEachMemberTeam.forgetTarget.format.formation.formationDirection.formationLeader.formationMembers.formationPosition.formationTask.formatText.formLeader.freeExtension.freeLook.fromEditor.fuel.fullCrew.gearIDCAmmoCount.gearSlotAmmoCount.gearSlotData.gestureState.get.get3DENActionState.get3DENAttribute.get3DENCamera.get3DENConnections.get3DENEntity.get3DENEntityID.get3DENGrid.get3DENIconsVisible.get3DENLayerEntities.get3DENLinesVisible.get3DENMissionAttribute.get3DENMouseOver.get3DENSelected.getAimingCoef.getAllEnv3DSoundControllers.getAllEnvSoundControllers.getAllHitPointsDamage.getAllOwnedMines.getAllPylonsInfo.getAllSoundControllers.getAllUnitTraits.getAmmoCargo.getAnimAimPrecision.getAnimSpeedCoef.getArray.getArtilleryAmmo.getArtilleryComputerSettings.getArtilleryETA.getAssetDLCInfo.getAssignedCuratorLogic.getAssignedCuratorUnit.getAttackTarget.getAudioOptionVolumes.getBackpackCargo.getBleedingRemaining.getBurningValue.getCalculatePlayerVisibilityByFriendly.getCameraViewDirection.getCargoIndex.getCenterOfMass.getClientState.getClientStateNumber.getCompatiblePylonMagazines.getConnectedUAV.getConnectedUAVUnit.getContainerMaxLoad.getCorpse.getCruiseControl.getCursorObjectParams.getCustomAimCoef.getCustomSoundController.getCustomSoundControllerCount.getDammage.getDebriefingText.getDescription.getDir.getDirVisual.getDiverState.getDLCAssetsUsage.getDLCAssetsUsageByName.getDLCs.getDLCUsageTime.getEditorCamera.getEditorMode.getEditorObjectScope.getElevationOffset.getEngineTargetRPMRTD.getEnv3DSoundController.getEnvSoundController.getEventHandlerInfo.getFatigue.getFieldManualStartPage.getForcedFlagTexture.getForcedSpeed.getFriend.getFSMVariable.getFuelCargo.getGraphValues.getGroupIcon.getGroupIconParams.getGroupIcons.getHideFrom.getHit.getHitIndex.getHitPointDamage.getItemCargo.getLighting.getLightingAt.getLoadedModsInfo.getMagazineCargo.getMarkerColor.getMarkerPos.getMarkerSize.getMarkerType.getMass.getMissionConfig.getMissionConfigValue.getMissionDLCs.getMissionLayerEntities.getMissionLayers.getMissionPath.getModelInfo.getMousePosition.getMusicPlayedTime.getNumber.getObjectArgument.getObjectChildren.getObjectDLC.getObjectFOV.getObjectID.getObjectMaterials.getObjectProxy.getObjectScale.getObjectTextures.getObjectType.getObjectViewDistance.getOpticsMode.getOrDefault.getOrDefaultCall.getOxygenRemaining.getPersonUsedDLCs.getPilotCameraDirection.getPilotCameraPosition.getPilotCameraRotation.getPilotCameraTarget.getPiPViewDistance.getPlateNumber.getPlayerChannel.getPlayerID.getPlayerScores.getPlayerUID.getPlayerVoNVolume.getPos.getPosASL.getPosASLVisual.getPosASLW.getPosATL.getPosATLVisual.getPosVisual.getPosWorld.getPosWorldVisual.getPylonMagazines.getRelDir.getRelPos.getRemoteSensorsDisabled.getRepairCargo.getResolution.getRoadInfo.getRotorBrakeRTD.getSensorTargets.getSensorThreats.getShadowDistance.getShotParents.getSlingLoad.getSoundController.getSoundControllerResult.getSpeed.getStamina.getStatValue.getSteamFriendsServers.getSubtitleOptions.getSuppression.getTerrainGrid.getTerrainHeight.getTerrainHeightASL.getTerrainInfo.getText.getTextRaw.getTextureInfo.getTextWidth.getTiParameters.getTotalDLCUsageTime.getTrimOffsetRTD.getTurretLimits.getTurretOpticsMode.getUnitFreefallInfo.getUnitLoadout.getUnitTrait.getUnloadInCombat.getUserInfo.getUserMFDText.getUserMFDValue.getVariable.getVehicleCargo.getVehicleTiPars.getWeaponCargo.getWeaponSway.getWingsOrientationRTD.getWingsPositionRTD.getWPPos.glanceAt.globalChat.globalRadio.goggles.goto.group.groupChat.groupFromNetId.groupIconSelectable.groupIconsVisible.groupID.groupOwner.groupRadio.groups.groupSelectedUnits.groupSelectUnit.gunner.gusts.halt.handgunItems.handgunMagazine.handgunWeapon.handsHit.hashValue.hasInterface.hasPilotCamera.hasWeapon.hcAllGroups.hcGroupParams.hcLeader.hcRemoveAllGroups.hcRemoveGroup.hcSelected.hcSelectGroup.hcSetGroup.hcShowBar.hcShownBar.headgear.hideBody.hideObject.hideObjectGlobal.hideSelection.hint.hintC.hintCadet.hintSilent.hmd.hostMission.htmlLoad.HUDMovementLevels.humidity.image.importAllGroups.importance.in.inArea.inAreaArray.incapacitatedState.inflame.inflamed.infoPanel.infoPanelComponentEnabled.infoPanelComponents.infoPanels.inGameUISetEventHandler.inheritsFrom.initAmbientLife.inPolygon.inputAction.inputController.inputMouse.inRangeOfArtillery.insert.insertEditorObject.intersect.is3DEN.is3DENMultiplayer.is3DENPreview.isAbleToBreathe.isActionMenuVisible.isAgent.isAimPrecisionEnabled.isAllowedCrewInImmobile.isArray.isAutoHoverOn.isAutonomous.isAutoStartUpEnabledRTD.isAutotest.isAutoTrimOnRTD.isAwake.isBleeding.isBurning.isClass.isCollisionLightOn.isCopilotEnabled.isDamageAllowed.isDedicated.isDLCAvailable.isEngineOn.isEqualRef.isEqualTo.isEqualType.isEqualTypeAll.isEqualTypeAny.isEqualTypeArray.isEqualTypeParams.isFilePatchingEnabled.isFinal.isFlashlightOn.isFlatEmpty.isForcedWalk.isFormationLeader.isGameFocused.isGamePaused.isGroupDeletedWhenEmpty.isHidden.isInRemainsCollector.isInstructorFigureEnabled.isIRLaserOn.isKeyActive.isKindOf.isLaserOn.isLightOn.isLocalized.isManualFire.isMarkedForCollection.isMissionProfileNamespaceLoaded.isMultiplayer.isMultiplayerSolo.isNil.isNotEqualRef.isNotEqualTo.isNull.isNumber.isObjectHidden.isObjectRTD.isOnRoad.isPiPEnabled.isPlayer.isRealTime.isRemoteExecuted.isRemoteExecutedJIP.isSaving.isSensorTargetConfirmed.isServer.isShowing3DIcons.isSimpleObject.isSprintAllowed.isStaminaEnabled.isSteamMission.isSteamOverlayEnabled.isStreamFriendlyUIEnabled.isStressDamageEnabled.isText.isTouchingGround.isTurnedOut.isTutHintsEnabled.isUAVConnectable.isUAVConnected.isUIContext.isUniformAllowed.isVehicleCargo.isVehicleRadarOn.isVehicleSensorEnabled.isWalking.isWeaponDeployed.isWeaponRested.itemCargo.items.itemsWithMagazines.join.joinAs.joinAsSilent.joinSilent.joinString.kbAddDatabase.kbAddDatabaseTargets.kbAddTopic.kbHasTopic.kbReact.kbRemoveTopic.kbTell.kbWasSaid.keyImage.keyName.keys.knowsAbout.land.landAt.landResult.language.laserTarget.lbAdd.lbClear.lbColor.lbColorRight.lbCurSel.lbData.lbDelete.lbIsSelected.lbPicture.lbPictureRight.lbSelection.lbSetColor.lbSetColorRight.lbSetCurSel.lbSetData.lbSetPicture.lbSetPictureColor.lbSetPictureColorDisabled.lbSetPictureColorSelected.lbSetPictureRight.lbSetPictureRightColor.lbSetPictureRightColorDisabled.lbSetPictureRightColorSelected.lbSetSelectColor.lbSetSelectColorRight.lbSetSelected.lbSetText.lbSetTextRight.lbSetTooltip.lbSetValue.lbSize.lbSort.lbSortBy.lbSortByValue.lbText.lbTextRight.lbTooltip.lbValue.leader.leaderboardDeInit.leaderboardGetRows.leaderboardInit.leaderboardRequestRowsFriends.leaderboardRequestRowsGlobal.leaderboardRequestRowsGlobalAroundUser.leaderboardsRequestUploadScore.leaderboardsRequestUploadScoreKeepBest.leaderboardState.leaveVehicle.libraryCredits.libraryDisclaimers.lifeState.lightAttachObject.lightDetachObject.lightIsOn.lightnings.limitSpeed.linearConversion.lineIntersects.lineIntersectsObjs.lineIntersectsSurfaces.lineIntersectsWith.linkItem.list.listObjects.listRemoteTargets.listVehicleSensors.ln.lnbAddArray.lnbAddColumn.lnbAddRow.lnbClear.lnbColor.lnbColorRight.lnbCurSelRow.lnbData.lnbDeleteColumn.lnbDeleteRow.lnbGetColumnsPosition.lnbPicture.lnbPictureRight.lnbSetColor.lnbSetColorRight.lnbSetColumnsPos.lnbSetCurSelRow.lnbSetData.lnbSetPicture.lnbSetPictureColor.lnbSetPictureColorRight.lnbSetPictureColorSelected.lnbSetPictureColorSelectedRight.lnbSetPictureRight.lnbSetText.lnbSetTextRight.lnbSetTooltip.lnbSetValue.lnbSize.lnbSort.lnbSortBy.lnbSortByValue.lnbText.lnbTextRight.lnbValue.load.loadAbs.loadBackpack.loadConfig.loadFile.loadGame.loadIdentity.loadMagazine.loadOverlay.loadStatus.loadUniform.loadVest.localize.localNamespace.locationPosition.lock.lockCameraTo.lockCargo.lockDriver.locked.lockedCameraTo.lockedCargo.lockedDriver.lockedInventory.lockedTurret.lockIdentity.lockInventory.lockTurret.lockWp.log.logEntities.logNetwork.logNetworkTerminate.lookAt.lookAtPos.magazineCargo.magazines.magazinesAllTurrets.magazinesAmmo.magazinesAmmoCargo.magazinesAmmoFull.magazinesDetail.magazinesDetailBackpack.magazinesDetailUniform.magazinesDetailVest.magazinesTurret.magazineTurretAmmo.mapAnimAdd.mapAnimClear.mapAnimCommit.mapAnimDone.mapCenterOnCamera.mapGridPosition.markAsFinishedOnSteam.markerAlpha.markerBrush.markerChannel.markerColor.markerDir.markerPolyline.markerPos.markerShadow.markerShape.markerSize.markerText.markerType.matrixMultiply.matrixTranspose.max.maxLoad.members.menuAction.menuAdd.menuChecked.menuClear.menuCollapse.menuData.menuDelete.menuEnable.menuEnabled.menuExpand.menuHover.menuPicture.menuSetAction.menuSetCheck.menuSetData.menuSetPicture.menuSetShortcut.menuSetText.menuSetURL.menuSetValue.menuShortcut.menuShortcutText.menuSize.menuSort.menuText.menuURL.menuValue.merge.min.mineActive.mineDetectedBy.missileTarget.missileTargetPos.missionConfigFile.missionDifficulty.missionEnd.missionName.missionNameSource.missionNamespace.missionProfileNamespace.missionStart.missionVersion.mod.modelToWorld.modelToWorldVisual.modelToWorldVisualWorld.modelToWorldWorld.modParams.moonIntensity.moonPhase.morale.move.move3DENCamera.moveInAny.moveInCargo.moveInCommander.moveInDriver.moveInGunner.moveInTurret.moveObjectToEnd.moveOut.moveTime.moveTo.moveToCompleted.moveToFailed.musicVolume.name.namedProperties.nameSound.nearEntities.nearestBuilding.nearestLocation.nearestLocations.nearestLocationWithDubbing.nearestMines.nearestObject.nearestObjects.nearestTerrainObjects.nearObjects.nearObjectsReady.nearRoads.nearSupplies.nearTargets.needReload.needService.netId.netObjNull.newOverlay.nextMenuItemIndex.nextWeatherChange.nMenuItems.not.numberOfEnginesRTD.numberToDate.objectCurators.objectFromNetId.objectParent.objStatus.onBriefingGroup.onBriefingNotes.onBriefingPlan.onBriefingTeamSwitch.onCommandModeChanged.onDoubleClick.onEachFrame.onGroupIconClick.onGroupIconOverEnter.onGroupIconOverLeave.onHCGroupSelectionChanged.onMapSingleClick.onPlayerConnected.onPlayerDisconnected.onPreloadFinished.onPreloadStarted.onShowNewObject.onTeamSwitch.openCuratorInterface.openDLCPage.openGPS.openMap.openSteamApp.openYoutubeVideo.or.orderGetIn.overcast.overcastForecast.owner.param.params.parseNumber.parseSimpleArray.parseText.parsingNamespace.particlesQuality.periscopeElevation.pickWeaponPool.pitch.pixelGrid.pixelGridBase.pixelGridNoUIScale.pixelH.pixelW.playableSlotsNumber.playableUnits.playAction.playActionNow.player.playerRespawnTime.playerSide.playersNumber.playGesture.playMission.playMove.playMoveNow.playMusic.playScriptedMission.playSound.playSound3D.playSoundUI.pose.position.positionCameraToWorld.posScreenToWorld.posWorldToScreen.ppEffectAdjust.ppEffectCommit.ppEffectCommitted.ppEffectCreate.ppEffectDestroy.ppEffectEnable.ppEffectEnabled.ppEffectForceInNVG.precision.preloadCamera.preloadObject.preloadSound.preloadTitleObj.preloadTitleRsc.preprocessFile.preprocessFileLineNumbers.primaryWeapon.primaryWeaponItems.primaryWeaponMagazine.priority.processDiaryLink.productVersion.profileName.profileNamespace.profileNameSteam.progressLoadingScreen.progressPosition.progressSetPosition.publicVariable.publicVariableClient.publicVariableServer.pushBack.pushBackUnique.putWeaponPool.queryItemsPool.queryMagazinePool.queryWeaponPool.rad.radioChannelAdd.radioChannelCreate.radioChannelInfo.radioChannelRemove.radioChannelSetCallSign.radioChannelSetLabel.radioEnabled.radioVolume.rain.rainbow.rainParams.random.rank.rankId.rating.rectangular.regexFind.regexMatch.regexReplace.registeredTasks.registerTask.reload.reloadEnabled.remoteControl.remoteExec.remoteExecCall.remoteExecutedOwner.remove3DENConnection.remove3DENEventHandler.remove3DENLayer.removeAction.removeAll3DENEventHandlers.removeAllActions.removeAllAssignedItems.removeAllBinocularItems.removeAllContainers.removeAllCuratorAddons.removeAllCuratorCameraAreas.removeAllCuratorEditingAreas.removeAllEventHandlers.removeAllHandgunItems.removeAllItems.removeAllItemsWithMagazines.removeAllMissionEventHandlers.removeAllMPEventHandlers.removeAllMusicEventHandlers.removeAllOwnedMines.removeAllPrimaryWeaponItems.removeAllSecondaryWeaponItems.removeAllUserActionEventHandlers.removeAllWeapons.removeBackpack.removeBackpackGlobal.removeBinocularItem.removeCuratorAddons.removeCuratorCameraArea.removeCuratorEditableObjects.removeCuratorEditingArea.removeDiaryRecord.removeDiarySubject.removeDrawIcon.removeDrawLinks.removeEventHandler.removeFromRemainsCollector.removeGoggles.removeGroupIcon.removeHandgunItem.removeHeadgear.removeItem.removeItemFromBackpack.removeItemFromUniform.removeItemFromVest.removeItems.removeMagazine.removeMagazineGlobal.removeMagazines.removeMagazinesTurret.removeMagazineTurret.removeMenuItem.removeMissionEventHandler.removeMPEventHandler.removeMusicEventHandler.removeOwnedMine.removePrimaryWeaponItem.removeSecondaryWeaponItem.removeSimpleTask.removeSwitchableUnit.removeTeamMember.removeUniform.removeUserActionEventHandler.removeVest.removeWeapon.removeWeaponAttachmentCargo.removeWeaponCargo.removeWeaponGlobal.removeWeaponTurret.reportRemoteTarget.requiredVersion.resetCamShake.resetSubgroupDirection.resize.resources.respawnVehicle.restartEditorCamera.reveal.revealMine.reverse.reversedMouseY.roadAt.roadsConnectedTo.roleDescription.ropeAttachedObjects.ropeAttachedTo.ropeAttachEnabled.ropeAttachTo.ropeCreate.ropeCut.ropeDestroy.ropeDetach.ropeEndPosition.ropeLength.ropes.ropesAttachedTo.ropeSegments.ropeUnwind.ropeUnwound.rotorsForcesRTD.rotorsRpmRTD.round.runInitScript.safeZoneH.safeZoneW.safeZoneWAbs.safeZoneX.safeZoneXAbs.safeZoneY.save3DENInventory.saveGame.saveIdentity.saveJoysticks.saveMissionProfileNamespace.saveOverlay.saveProfileNamespace.saveStatus.saveVar.savingEnabled.say.say2D.say3D.scopeName.score.scoreSide.screenshot.screenToWorld.scriptDone.scriptName.scudState.secondaryWeapon.secondaryWeaponItems.secondaryWeaponMagazine.select.selectBestPlaces.selectDiarySubject.selectedEditorObjects.selectEditorObject.selectionNames.selectionPosition.selectionVectorDirAndUp.selectLeader.selectMax.selectMin.selectNoPlayer.selectPlayer.selectRandom.selectRandomWeighted.selectWeapon.selectWeaponTurret.sendAUMessage.sendSimpleCommand.sendTask.sendTaskResult.sendUDPMessage.sentencesEnabled.serverCommand.serverCommandAvailable.serverCommandExecutable.serverName.serverNamespace.serverTime.set.set3DENAttribute.set3DENAttributes.set3DENGrid.set3DENIconsVisible.set3DENLayer.set3DENLinesVisible.set3DENLogicType.set3DENMissionAttribute.set3DENMissionAttributes.set3DENModelsVisible.set3DENObjectType.set3DENSelected.setAccTime.setActualCollectiveRTD.setAirplaneThrottle.setAirportSide.setAmmo.setAmmoCargo.setAmmoOnPylon.setAnimSpeedCoef.setAperture.setApertureNew.setArmoryPoints.setAttributes.setAutonomous.setBehaviour.setBehaviourStrong.setBleedingRemaining.setBrakesRTD.setCameraInterest.setCamShakeDefParams.setCamShakeParams.setCamUseTi.setCaptive.setCenterOfMass.setCollisionLight.setCombatBehaviour.setCombatMode.setCompassOscillation.setConvoySeparation.setCruiseControl.setCuratorCameraAreaCeiling.setCuratorCoef.setCuratorEditingAreaType.setCuratorWaypointCost.setCurrentChannel.setCurrentTask.setCurrentWaypoint.setCustomAimCoef.SetCustomMissionData.setCustomSoundController.setCustomWeightRTD.setDamage.setDammage.setDate.setDebriefingText.setDefaultCamera.setDestination.setDetailMapBlendPars.setDiaryRecordText.setDiarySubjectPicture.setDir.setDirection.setDrawIcon.setDriveOnPath.setDropInterval.setDynamicSimulationDistance.setDynamicSimulationDistanceCoef.setEditorMode.setEditorObjectScope.setEffectCondition.setEffectiveCommander.setEngineRpmRTD.setFace.setFaceanimation.setFatigue.setFeatureType.setFlagAnimationPhase.setFlagOwner.setFlagSide.setFlagTexture.setFog.setForceGeneratorRTD.setFormation.setFormationTask.setFormDir.setFriend.setFromEditor.setFSMVariable.setFuel.setFuelCargo.setGroupIcon.setGroupIconParams.setGroupIconsSelectable.setGroupIconsVisible.setGroupid.setGroupIdGlobal.setGroupOwner.setGusts.setHideBehind.setHit.setHitIndex.setHitPointDamage.setHorizonParallaxCoef.setHUDMovementLevels.setHumidity.setIdentity.setImportance.setInfoPanel.setLeader.setLightAmbient.setLightAttenuation.setLightBrightness.setLightColor.setLightConePars.setLightDayLight.setLightFlareMaxDistance.setLightFlareSize.setLightIntensity.setLightIR.setLightnings.setLightUseFlare.setLightVolumeShape.setLocalWindParams.setMagazineTurretAmmo.setMarkerAlpha.setMarkerAlphaLocal.setMarkerBrush.setMarkerBrushLocal.setMarkerColor.setMarkerColorLocal.setMarkerDir.setMarkerDirLocal.setMarkerPolyline.setMarkerPolylineLocal.setMarkerPos.setMarkerPosLocal.setMarkerShadow.setMarkerShadowLocal.setMarkerShape.setMarkerShapeLocal.setMarkerSize.setMarkerSizeLocal.setMarkerText.setMarkerTextLocal.setMarkerType.setMarkerTypeLocal.setMass.setMaxLoad.setMimic.setMissileTarget.setMissileTargetPos.setMousePosition.setMusicEffect.setMusicEventHandler.setName.setNameSound.setObjectArguments.setObjectMaterial.setObjectMaterialGlobal.setObjectProxy.setObjectScale.setObjectTexture.setObjectTextureGlobal.setObjectViewDistance.setOpticsMode.setOvercast.setOwner.setOxygenRemaining.setParticleCircle.setParticleClass.setParticleFire.setParticleParams.setParticleRandom.setPilotCameraDirection.setPilotCameraRotation.setPilotCameraTarget.setPilotLight.setPiPEffect.setPiPViewDistance.setPitch.setPlateNumber.setPlayable.setPlayerRespawnTime.setPlayerVoNVolume.setPos.setPosASL.setPosASL2.setPosASLW.setPosATL.setPosition.setPosWorld.setPylonLoadout.setPylonsPriority.setRadioMsg.setRain.setRainbow.setRandomLip.setRank.setRectangular.setRepairCargo.setRotorBrakeRTD.setShadowDistance.setShotParents.setSide.setSimpleTaskAlwaysVisible.setSimpleTaskCustomData.setSimpleTaskDescription.setSimpleTaskDestination.setSimpleTaskTarget.setSimpleTaskType.setSimulWeatherLayers.setSize.setSkill.setSlingLoad.setSoundEffect.setSpeaker.setSpeech.setSpeedMode.setStamina.setStaminaScheme.setStatValue.setSuppression.setSystemOfUnits.setTargetAge.setTaskMarkerOffset.setTaskResult.setTaskState.setTerrainGrid.setTerrainHeight.setText.setTimeMultiplier.setTiParameter.setTitleEffect.setTowParent.setTrafficDensity.setTrafficDistance.setTrafficGap.setTrafficSpeed.setTriggerActivation.setTriggerArea.setTriggerInterval.setTriggerStatements.setTriggerText.setTriggerTimeout.setTriggerType.setTurretLimits.setTurretOpticsMode.setType.setUnconscious.setUnitAbility.setUnitCombatMode.setUnitFreefallHeight.setUnitLoadout.setUnitPos.setUnitPosWeak.setUnitRank.setUnitRecoilCoefficient.setUnitTrait.setUnloadInCombat.setUserActionText.setUserMFDText.setUserMFDValue.setVariable.setVectorDir.setVectorDirAndUp.setVectorUp.setVehicleAmmo.setVehicleAmmoDef.setVehicleArmor.setVehicleCargo.setVehicleId.setVehicleLock.setVehiclePosition.setVehicleRadar.setVehicleReceiveRemoteTargets.setVehicleReportOwnPosition.setVehicleReportRemoteTargets.setVehicleTiPars.setVehicleVarName.setVelocity.setVelocityModelSpace.setVelocityTransformation.setViewDistance.setVisibleIfTreeCollapsed.setWantedRPMRTD.setWaves.setWaypointBehaviour.setWaypointCombatMode.setWaypointCompletionRadius.setWaypointDescription.setWaypointForceBehaviour.setWaypointFormation.setWaypointHousePosition.setWaypointLoiterAltitude.setWaypointLoiterRadius.setWaypointLoiterType.setWaypointName.setWaypointPosition.setWaypointScript.setWaypointSpeed.setWaypointStatements.setWaypointTimeout.setWaypointType.setWaypointVisible.setWeaponReloadingTime.setWeaponZeroing.setWind.setWindDir.setWindForce.setWindStr.setWingForceScaleRTD.setWPPos.show3DIcons.showChat.showCinemaBorder.showCommandingMenu.showCompass.showCuratorCompass.showGps.showHUD.showLegend.showMap.shownArtilleryComputer.shownChat.shownCompass.shownCuratorCompass.showNewEditorObject.shownGps.shownHUD.shownMap.shownPad.shownRadio.shownScoretable.shownSubtitles.shownUAVFeed.shownWarrant.shownWatch.showPad.showRadio.showScoretable.showSubtitles.showUAVFeed.showWarrant.showWatch.showWaypoint.showWaypoints.side.sideChat.sideRadio.simpleTasks.simulationEnabled.simulCloudDensity.simulCloudOcclusion.simulInClouds.simulWeatherSync.sin.size.sizeOf.skill.skillFinal.skipTime.sleep.sliderPosition.sliderRange.sliderSetPosition.sliderSetRange.sliderSetSpeed.sliderSpeed.slingLoadAssistantShown.soldierMagazines.someAmmo.sort.soundVolume.spawn.speaker.speechVolume.speed.speedMode.splitString.sqrt.squadParams.stance.startLoadingScreen.stop.stopEngineRTD.stopped.str.sunOrMoon.supportInfo.suppressFor.surfaceIsWater.surfaceNormal.surfaceTexture.surfaceType.swimInDepth.switchableUnits.switchAction.switchCamera.switchGesture.switchLight.switchMove.synchronizedObjects.synchronizedTriggers.synchronizedWaypoints.synchronizeObjectsAdd.synchronizeObjectsRemove.synchronizeTrigger.synchronizeWaypoint.systemChat.systemOfUnits.systemTime.systemTimeUTC.tan.targetKnowledge.targets.targetsAggregate.targetsQuery.taskAlwaysVisible.taskChildren.taskCompleted.taskCustomData.taskDescription.taskDestination.taskHint.taskMarkerOffset.taskName.taskParent.taskResult.taskState.taskType.teamMember.teamName.teams.teamSwitch.teamSwitchEnabled.teamType.terminate.terrainIntersect.terrainIntersectASL.terrainIntersectAtASL.text.textLog.textLogFormat.tg.time.timeMultiplier.titleCut.titleFadeOut.titleObj.titleRsc.titleText.toArray.toFixed.toLower.toLowerANSI.toString.toUpper.toUpperANSI.triggerActivated.triggerActivation.triggerAmmo.triggerArea.triggerAttachedVehicle.triggerAttachObject.triggerAttachVehicle.triggerDynamicSimulation.triggerInterval.triggerStatements.triggerText.triggerTimeout.triggerTimeoutCurrent.triggerType.trim.turretLocal.turretOwner.turretUnit.tvAdd.tvClear.tvCollapse.tvCollapseAll.tvCount.tvCurSel.tvData.tvDelete.tvExpand.tvExpandAll.tvIsSelected.tvPicture.tvPictureRight.tvSelection.tvSetColor.tvSetCurSel.tvSetData.tvSetPicture.tvSetPictureColor.tvSetPictureColorDisabled.tvSetPictureColorSelected.tvSetPictureRight.tvSetPictureRightColor.tvSetPictureRightColorDisabled.tvSetPictureRightColorSelected.tvSetSelectColor.tvSetSelected.tvSetText.tvSetTooltip.tvSetValue.tvSort.tvSortAll.tvSortByValue.tvSortByValueAll.tvText.tvTooltip.tvValue.type.typeName.typeOf.UAVControl.uiNamespace.uiSleep.unassignCurator.unassignItem.unassignTeam.unassignVehicle.underwater.uniform.uniformContainer.uniformItems.uniformMagazines.uniqueUnitItems.unitAddons.unitAimPosition.unitAimPositionVisual.unitBackpack.unitCombatMode.unitIsUAV.unitPos.unitReady.unitRecoilCoefficient.units.unitsBelowHeight.unitTurret.unlinkItem.unlockAchievement.unregisterTask.updateDrawIcon.updateMenuItem.updateObjectTree.useAIOperMapObstructionTest.useAISteeringComponent.useAudioTimeForMoves.userInputDisabled.values.vectorAdd.vectorCos.vectorCrossProduct.vectorDiff.vectorDir.vectorDirVisual.vectorDistance.vectorDistanceSqr.vectorDotProduct.vectorFromTo.vectorLinearConversion.vectorMagnitude.vectorMagnitudeSqr.vectorModelToWorld.vectorModelToWorldVisual.vectorMultiply.vectorNormalized.vectorUp.vectorUpVisual.vectorWorldToModel.vectorWorldToModelVisual.vehicle.vehicleCargoEnabled.vehicleChat.vehicleMoveInfo.vehicleRadio.vehicleReceiveRemoteTargets.vehicleReportOwnPosition.vehicleReportRemoteTargets.vehicles.vehicleVarName.velocity.velocityModelSpace.verifySignature.vest.vestContainer.vestItems.vestMagazines.viewDistance.visibleCompass.visibleGps.visibleMap.visiblePosition.visiblePositionASL.visibleScoretable.visibleWatch.waves.waypointAttachedObject.waypointAttachedVehicle.waypointAttachObject.waypointAttachVehicle.waypointBehaviour.waypointCombatMode.waypointCompletionRadius.waypointDescription.waypointForceBehaviour.waypointFormation.waypointHousePosition.waypointLoiterAltitude.waypointLoiterRadius.waypointLoiterType.waypointName.waypointPosition.waypoints.waypointScript.waypointsEnabledUAV.waypointShow.waypointSpeed.waypointStatements.waypointTimeout.waypointTimeoutCurrent.waypointType.waypointVisible.weaponAccessories.weaponAccessoriesCargo.weaponCargo.weaponDirection.weaponInertia.weaponLowered.weaponReloadingTime.weapons.weaponsInfo.weaponsItems.weaponsItemsCargo.weaponState.weaponsTurret.weightRTD.WFSideText.wind.windDir.windRTD.windStr.wingsForcesRTD.worldName.worldSize.worldToModel.worldToModelVisual.worldToScreen`.split(`.`),s={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:`define undef ifdef ifndef else endif include if`,contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:`string`}),{begin:/<[^\n>]*>/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:`SQF`,case_insensitive:!0,keywords:{keyword:i,built_in:o,literal:a},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}t.exports=n})),jo=n(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`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`.split(`.`),c=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],l=`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`.split(`.`),u=`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`.split(`.`),d=[`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=u,m=[...l,...c].filter(e=>!u.includes(e)),h={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},g={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let y={scope:`keyword`,match:v(f),relevance:0};function b(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(m,{when:e=>e.length<3}),literal:a,type:s,built_in:d},contains:[{scope:`type`,match:v(o)},y,_,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}t.exports=n})),Mo=n(((e,t)=>{function n(e){let t=e.regex,n=[`functions`,`model`,`data`,`parameters`,`quantities`,`transformed`,`generated`],r=[`for`,`in`,`if`,`else`,`while`,`break`,`continue`,`return`],i=[`array`,`tuple`,`complex`,`int`,`real`,`vector`,`complex_vector`,`ordered`,`positive_ordered`,`simplex`,`unit_vector`,`row_vector`,`complex_row_vector`,`matrix`,`complex_matrix`,`cholesky_factor_corr|10`,`cholesky_factor_cov|10`,`corr_matrix|10`,`cov_matrix|10`,`void`],a=`abs.acos.acosh.add_diag.algebra_solver.algebra_solver_newton.append_array.append_col.append_row.asin.asinh.atan.atan2.atanh.bessel_first_kind.bessel_second_kind.binary_log_loss.block.cbrt.ceil.chol2inv.cholesky_decompose.choose.col.cols.columns_dot_product.columns_dot_self.complex_schur_decompose.complex_schur_decompose_t.complex_schur_decompose_u.conj.cos.cosh.cov_exp_quad.crossprod.csr_extract.csr_extract_u.csr_extract_v.csr_extract_w.csr_matrix_times_vector.csr_to_dense_matrix.cumulative_sum.dae.dae_tol.determinant.diag_matrix.diagonal.diag_post_multiply.diag_pre_multiply.digamma.dims.distance.dot_product.dot_self.eigendecompose.eigendecompose_sym.eigenvalues.eigenvalues_sym.eigenvectors.eigenvectors_sym.erf.erfc.exp.exp2.expm1.falling_factorial.fdim.fft.fft2.floor.fma.fmax.fmin.fmod.gamma_p.gamma_q.generalized_inverse.get_imag.get_real.head.hmm_hidden_state_prob.hmm_marginal.hypot.identity_matrix.inc_beta.integrate_1d.integrate_ode.integrate_ode_adams.integrate_ode_bdf.integrate_ode_rk45.int_step.inv.inv_cloglog.inv_erfc.inverse.inverse_spd.inv_fft.inv_fft2.inv_inc_beta.inv_logit.inv_Phi.inv_sqrt.inv_square.is_inf.is_nan.lambert_w0.lambert_wm1.lbeta.lchoose.ldexp.lgamma.linspaced_array.linspaced_int_array.linspaced_row_vector.linspaced_vector.lmgamma.lmultiply.log.log1m.log1m_exp.log1m_inv_logit.log1p.log1p_exp.log_determinant.log_diff_exp.log_falling_factorial.log_inv_logit.log_inv_logit_diff.logit.log_mix.log_modified_bessel_first_kind.log_rising_factorial.log_softmax.log_sum_exp.machine_precision.map_rect.matrix_exp.matrix_exp_multiply.matrix_power.max.mdivide_left_spd.mdivide_left_tri_low.mdivide_right_spd.mdivide_right_tri_low.mean.min.modified_bessel_first_kind.modified_bessel_second_kind.multiply_lower_tri_self_transpose.negative_infinity.norm.norm1.norm2.not_a_number.num_elements.ode_adams.ode_adams_tol.ode_adjoint_tol_ctl.ode_bdf.ode_bdf_tol.ode_ckrk.ode_ckrk_tol.ode_rk45.ode_rk45_tol.one_hot_array.one_hot_int_array.one_hot_row_vector.one_hot_vector.ones_array.ones_int_array.ones_row_vector.ones_vector.owens_t.Phi.Phi_approx.polar.positive_infinity.pow.print.prod.proj.qr.qr_Q.qr_R.qr_thin.qr_thin_Q.qr_thin_R.quad_form.quad_form_diag.quad_form_sym.quantile.rank.reduce_sum.reject.rep_array.rep_matrix.rep_row_vector.rep_vector.reverse.rising_factorial.round.row.rows.rows_dot_product.rows_dot_self.scale_matrix_exp_multiply.sd.segment.sin.singular_values.sinh.size.softmax.sort_asc.sort_desc.sort_indices_asc.sort_indices_desc.sqrt.square.squared_distance.step.sub_col.sub_row.sum.svd.svd_U.svd_V.symmetrize_from_lower_tri.tail.tan.tanh.target.tcrossprod.tgamma.to_array_1d.to_array_2d.to_complex.to_int.to_matrix.to_row_vector.to_vector.trace.trace_gen_quad_form.trace_quad_form.trigamma.trunc.uniform_simplex.variance.zeros_array.zeros_int_array.zeros_row_vector`.split(`.`),o=`bernoulli.bernoulli_logit.bernoulli_logit_glm.beta.beta_binomial.beta_proportion.binomial.binomial_logit.categorical.categorical_logit.categorical_logit_glm.cauchy.chi_square.dirichlet.discrete_range.double_exponential.exp_mod_normal.exponential.frechet.gamma.gaussian_dlm_obs.gumbel.hmm_latent.hypergeometric.inv_chi_square.inv_gamma.inv_wishart.inv_wishart_cholesky.lkj_corr.lkj_corr_cholesky.logistic.loglogistic.lognormal.multi_gp.multi_gp_cholesky.multinomial.multinomial_logit.multi_normal.multi_normal_cholesky.multi_normal_prec.multi_student_cholesky_t.multi_student_t.multi_student_t_cholesky.neg_binomial.neg_binomial_2.neg_binomial_2_log.neg_binomial_2_log_glm.normal.normal_id_glm.ordered_logistic.ordered_logistic_glm.ordered_probit.pareto.pareto_type_2.poisson.poisson_log.poisson_log_glm.rayleigh.scaled_inv_chi_square.skew_double_exponential.skew_normal.std_normal.std_normal_log.student_t.uniform.von_mises.weibull.wiener.wishart.wishart_cholesky`.split(`.`),s=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:`doctag`,match:/@(return|param)/}]}),c={scope:`meta`,begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:`string`},e.C_LINE_COMMENT_MODE]},l=[`lower`,`upper`,`offset`,`multiplier`];return{name:`Stan`,aliases:[`stanfuncs`],keywords:{$pattern:e.IDENT_RE,title:n,type:i,keyword:r,built_in:a},contains:[e.C_LINE_COMMENT_MODE,c,e.HASH_COMMENT_MODE,s,{scope:`built_in`,match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...l),/\s*=/),keywords:l},{scope:`keyword`,match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:`built_in`,4:`keyword`}},{scope:`built_in`,keywords:o,begin:t.concat(/\w*/,t.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:`built_in`}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,`(?!.*/\b(`+t.either(...o)+`)\b)`],scope:{2:`title.function`}},{scope:`title.function`,begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:`number`,match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:`string`,begin:/"/,end:/"/}]}}t.exports=n})),No=n(((e,t)=>{function n(e){return{name:`Stata`,aliases:[`do`,`ado`],case_insensitive:!0,keywords:`if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5`,contains:[{className:`symbol`,begin:/`[a-zA-Z0-9_]+'/},{className:`variable`,begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:`string`,variants:[{begin:`\`"[^\r +]*?"'`},{begin:`"[^\r +"]*"`}]},{className:`built_in`,variants:[{begin:`\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()`}]},e.COMMENT(`^[ ]*\\*.*$`,!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),Po=n(((e,t)=>{function n(e){return{name:`STEP Part 21`,aliases:[`p21`,`step`,`stp`],case_insensitive:!0,keywords:{$pattern:`[A-Z_][A-Z0-9_.]*`,keyword:[`HEADER`,`ENDSEC`,`DATA`]},contains:[{className:`meta`,begin:`ISO-10303-21;`,relevance:10},{className:`meta`,begin:`END-ISO-10303-21;`,relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`/\\*\\*!`,`\\*/`),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`string`,begin:`'`,end:`'`},{className:`symbol`,variants:[{begin:`#`,end:`\\d+`,illegal:`\\W`}]}]}}t.exports=n})),Fo=n(((e,t)=>{var n=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_-]*/}}),r=`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`.split(`.`),i=`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`.split(`.`),a=[...r,...i],o=`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`.split(`.`).sort().reverse(),s=`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`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`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`.split(`.`).sort().reverse();function u(e){let t=n(e),r={className:`variable`,begin:`\\$`+e.IDENT_RE},i=[`charset`,`css`,`debug`,`extend`,`font-face`,`for`,`import`,`include`,`keyframes`,`media`,`mixin`,`page`,`warn`,`while`],u=`(?=[.\\s\\n[:,(])`;return{name:`Stylus`,aliases:[`styl`],case_insensitive:!1,keywords:`if else for in`,illegal:`(`+[`\\?`,`(\\bReturn\\b)`,`(\\bEnd\\b)`,`(\\bend\\b)`,`(\\bdef\\b)`,`;`,`#\\s`,`\\*\\s`,`===\\s`,`\\|`,`%`].join(`|`)+`)`,contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.HEXCOLOR,{begin:`\\.[a-zA-Z][a-zA-Z0-9_-]*`+u,className:`selector-class`},{begin:`#[a-zA-Z][a-zA-Z0-9_-]*`+u,className:`selector-id`},{begin:`\\b(`+a.join(`|`)+`)(?=[.\\s\\n[:,(])`,className:`selector-tag`},{className:`selector-pseudo`,begin:`&?:(`+s.join(`|`)+`)(?=[.\\s\\n[:,(])`},{className:`selector-pseudo`,begin:`&?:(:)?(`+c.join(`|`)+`)(?=[.\\s\\n[:,(])`},t.ATTRIBUTE_SELECTOR_MODE,{className:`keyword`,begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[t.CSS_NUMBER_MODE]}},{className:`keyword`,begin:`@((-(o|moz|ms|webkit)-)?(`+i.join(`|`)+`))\\b`},r,t.CSS_NUMBER_MODE,{className:`function`,begin:`^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)`,illegal:`[\\n]`,returnBegin:!0,contains:[{className:`title`,begin:`\\b[a-zA-Z][a-zA-Z0-9_-]*`},{className:`params`,begin:/\(/,end:/\)/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE]}]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`,starts:{end:/;|$/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t.CSS_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},t.FUNCTION_DISPATCH]}}t.exports=u})),Io=n(((e,t)=>{function n(e){return{name:`SubUnit`,case_insensitive:!0,contains:[{className:`string`,begin:`\\[ +(multipart)?`,end:`\\] +`},{className:`string`,begin:`\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z`},{className:`string`,begin:`(\\+|-)\\d+`},{className:`keyword`,relevance:10,variants:[{begin:`^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?`},{begin:`^progress(:?)(\\s+)?(pop|push)?`},{begin:`^tags:`},{begin:`^time:`}]}]}}t.exports=n})),Lo=n(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return i(`(?=`,e,`)`)}function i(...e){return e.map(e=>n(e)).join(``)}function a(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){return`(`+(a(e).capture?``:`?:`)+e.map(e=>n(e)).join(`|`)+`)`}var s=e=>i(/\b/,e,/\w$/.test(e)?/\b/:/\B/),c=[`Protocol`,`Type`].map(s),l=[`init`,`self`].map(s),u=[`Any`,`Self`],d=[`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`],f=[`false`,`nil`,`true`],p=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],m=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],h=`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`.split(`.`),g=o(/[/=\-+!*%<>&|^~?]/,/[\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]/),_=o(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=i(g,_,`*`),y=o(/[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]/),b=o(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),x=i(y,b,`*`),S=i(/[A-Z]/,b,`*`),C=[`attached`,`autoclosure`,i(/convention\(/,o(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,i(/objc\(/,x,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],w=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function T(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),a=[e.C_LINE_COMMENT_MODE,n],g={match:[/\./,o(...c,...l)],className:{2:`keyword`}},y={match:i(/\./,o(...d)),relevance:0},T=d.filter(e=>typeof e==`string`).concat([`_|0`]),E={variants:[{className:`keyword`,match:o(...d.filter(e=>typeof e!=`string`).concat(u).map(s),...l)}]},D={$pattern:o(/\b\w+/,/#\w+/),keyword:T.concat(m),literal:f},O=[g,y,E],k=[{match:i(/\./,o(...h)),relevance:0},{className:`built_in`,match:i(/\b/,o(...h),/(?=\()/)}],A={match:/->/,relevance:0},j=[A,{className:`operator`,relevance:0,variants:[{match:v},{match:`\\.(\\.|${_})+`}]}],M=`([0-9]_*)+`,N=`([0-9a-fA-F]_*)+`,P={className:`number`,relevance:0,variants:[{match:`\\b(${M})(\\.(${M}))?([eE][+-]?(${M}))?\\b`},{match:`\\b0x(${N})(\\.(${N}))?([pP][+-]?(${M}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},F=(e=``)=>({className:`subst`,variants:[{match:i(/\\/,e,/[0\\tnr"']/)},{match:i(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),I=(e=``)=>({className:`subst`,match:i(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),L=(e=``)=>({className:`subst`,label:`interpol`,begin:i(/\\/,e,/\(/),end:/\)/}),R=(e=``)=>({begin:i(e,/"""/),end:i(/"""/,e),contains:[F(e),I(e),L(e)]}),z=(e=``)=>({begin:i(e,/"/),end:i(/"/,e),contains:[F(e),L(e)]}),B={className:`string`,variants:[R(),R(`#`),R(`##`),R(`###`),z(),z(`#`),z(`##`),z(`###`)]},ee=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],te={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:ee},ne=e=>{let t=i(e,/\//),n=i(/\//,e);return{begin:t,end:n,contains:[...ee,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},re={scope:`regexp`,variants:[ne(`###`),ne(`##`),ne(`#`),te]},ie={match:i(/`/,x,/`/)},ae=[ie,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${b}+`}],oe=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:w,contains:[...j,P,B]}]}},{scope:`keyword`,match:i(/@/,o(...C),r(o(/\(/,/\s+/)))},{scope:`meta`,match:i(/@/,x)}],se={match:r(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,`+`)},{className:`type`,match:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,r(S)),relevance:0}]},ce={begin://,keywords:D,contains:[...a,...O,...oe,A,se]};se.contains.push(ce);let le={begin:/\(/,end:/\)/,relevance:0,keywords:D,contains:[`self`,{match:i(x,/\s*:/),keywords:`_|0`,relevance:0},...a,re,...O,...k,...j,P,B,...ae,...oe,se]},V={begin://,keywords:`repeat each`,contains:[...a,se]},ue={begin:/\(/,end:/\)/,keywords:D,contains:[{begin:o(r(i(x,/\s*:/)),r(i(x,/\s+/,x,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:x}]},...a,...O,...j,P,B,...oe,se,le],endsParent:!0,illegal:/["']/},de={match:[/(func|macro)/,/\s+/,o(ie.match,x,v)],className:{1:`keyword`,3:`title.function`},contains:[V,ue,t],illegal:[/\[/,/%/]},fe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[V,ue,t],illegal:/\[|%/},pe={match:[/operator/,/\s+/,v],className:{1:`keyword`,3:`title`}},me={begin:[/precedencegroup/,/\s+/,S],className:{1:`keyword`,3:`title`},contains:[se],keywords:[...p,...f],end:/}/},he={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:`keyword`,3:`keyword`,5:`title.function`}},H={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},U={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,x,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:D,contains:[V,...O,{begin:/:/,end:/\{/,keywords:D,contains:[{scope:`title.class.inherited`,match:S},...O],relevance:0}]};for(let e of B.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=D;let n=[...O,...k,...j,P,B,...ae];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:D,contains:[...a,de,fe,he,H,U,pe,me,{beginKeywords:`import`,end:/$/,contains:[...a],relevance:0},re,...O,...k,...j,P,B,...ae,...oe,se,le]}}t.exports=T})),Ro=n(((e,t)=>{function n(e){return{name:`Tagger Script`,contains:[{className:`comment`,begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},`self`]}],relevance:10},{className:`keyword`,begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:`variable`,begin:/%[_a-zA-Z0-9:]+%/},{className:`symbol`,begin:/\\[\\nt$%,()]/},{className:`symbol`,begin:/\\u[a-fA-F0-9]{4}/}]}}t.exports=n})),zo=n(((e,t)=>{function n(e){let t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={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]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c={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`},l={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},u={begin:/\{/,end:/\}/,contains:[l],illegal:`\\n`,relevance:0},d={begin:`\\[`,end:`\\]`,contains:[l],illegal:`\\n`,relevance:0},f=[r,{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+!`+n},{className:`type`,begin:`!<`+n+`>`},{className:`type`,begin:`!`+n},{className:`type`,begin:`!!`+n},{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}},c,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},u,d,a,o],p=[...f];return p.pop(),p.push(s),l.contains=p,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:f}}t.exports=n})),Bo=n(((e,t)=>{function n(e){return{name:`Test Anything Protocol`,case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:`meta`,variants:[{begin:`^TAP version (\\d+)$`},{begin:`^1\\.\\.(\\d+)$`}]},{begin:/---$/,end:`\\.\\.\\.$`,subLanguage:`yaml`,relevance:0},{className:`number`,begin:` (\\d+) `},{className:`symbol`,variants:[{begin:`^ok`},{begin:`^not ok`}]}]}}t.exports=n})),Vo=n(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:`number`,variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:`Tcl`,aliases:[`tk`],keywords:`after.append.apply.array.auto_execok.auto_import.auto_load.auto_mkindex.auto_mkindex_old.auto_qualify.auto_reset.bgerror.binary.break.catch.cd.chan.clock.close.concat.continue.dde.dict.encoding.eof.error.eval.exec.exit.expr.fblocked.fconfigure.fcopy.file.fileevent.filename.flush.for.foreach.format.gets.glob.global.history.http.if.incr.info.interp.join.lappend|10.lassign|10.lindex|10.linsert|10.list.llength|10.load.lrange|10.lrepeat|10.lreplace|10.lreverse|10.lsearch|10.lset|10.lsort|10.mathfunc.mathop.memory.msgcat.namespace.open.package.parray.pid.pkg::create.pkg_mkIndex.platform.platform::shell.proc.puts.pwd.read.refchan.regexp.registry.regsub|10.rename.return.safe.scan.seek.set.socket.source.split.string.subst.switch.tcl_endOfWord.tcl_findLibrary.tcl_startOfNextWord.tcl_startOfPreviousWord.tcl_wordBreakAfter.tcl_wordBreakBefore.tcltest.tclvars.tell.time.tm.trace.unknown.unload.unset.update.uplevel.upvar.variable.vwait.while`.split(`.`),contains:[e.COMMENT(`;[ \\t]*#`,`$`),e.COMMENT(`^[ \\t]*#`,`$`),{beginKeywords:`proc`,end:`[\\{]`,excludeEnd:!0,contains:[{className:`title`,begin:`[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*`,end:`[ \\t\\n\\r]`,endsWithParent:!0,excludeEnd:!0}]},{className:`variable`,variants:[{begin:t.concat(/\$/,t.optional(/::/),n,`(::`,n,`)*`)},{begin:`\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*`,end:`\\}`,contains:[r]}]},{className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}t.exports=n})),Ho=n(((e,t)=>{function n(e){let t=[`bool`,`byte`,`i16`,`i32`,`i64`,`double`,`string`,`binary`];return{name:`Thrift`,keywords:{keyword:[`namespace`,`const`,`typedef`,`struct`,`enum`,`service`,`exception`,`void`,`oneway`,`set`,`list`,`map`,`required`,`optional`],type:t,literal:`true false`},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`class`,beginKeywords:`struct enum service exception`,end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:`\\b(set|list|map)\\s*<`,keywords:{type:[...t,`set`,`list`,`map`]},end:`>`,contains:[`self`]}]}}t.exports=n})),Uo=n(((e,t)=>{function n(e){let t={className:`number`,begin:`[1-9][0-9]*`,relevance:0},n={className:`symbol`,begin:`:[^\\]]+`};return{name:`TP`,keywords:{keyword:`ABORT.ACC.ADJUST.AND.AP_LD.BREAK.CALL.CNT.COL.CONDITION.CONFIG.DA.DB.DIV.DETECT.ELSE.END.ENDFOR.ERR_NUM.ERROR_PROG.FINE.FOR.GP.GUARD.INC.IF.JMP.LINEAR_MAX_SPEED.LOCK.MOD.MONITOR.OFFSET.Offset.OR.OVERRIDE.PAUSE.PREG.PTH.RT_LD.RUN.SELECT.SKIP.Skip.TA.TB.TO.TOOL_OFFSET.Tool_Offset.UF.UT.UFRAME_NUM.UTOOL_NUM.UNLOCK.WAIT.X.Y.Z.W.P.R.STRLEN.SUBSTR.FINDSTR.VOFFSET.PROG.ATTR.MN.POS`.split(`.`),literal:[`ON`,`OFF`,`max_speed`,`LPOS`,`JPOS`,`ENABLE`,`DISABLE`,`START`,`STOP`,`RESET`]},contains:[{className:`built_in`,begin:`(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[`,end:`\\]`,contains:[`self`,t,n]},{className:`built_in`,begin:`(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[`,end:`\\]`,contains:[`self`,t,e.QUOTE_STRING_MODE,n]},{className:`keyword`,begin:`/(PROG|ATTR|MN|POS|END)\\b`},{className:`keyword`,begin:`(CALL|RUN|POINT_LOGIC|LBL)\\b`},{className:`keyword`,begin:`\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)`},{className:`number`,begin:`\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b`,relevance:0},e.COMMENT(`//`,`[;$]`),e.COMMENT(`!`,`[;$]`),e.COMMENT(`--eg:`,`$`),e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`'`},e.C_NUMBER_MODE,{className:`variable`,begin:`\\$[A-Za-z0-9_]+`}]}}t.exports=n})),Wo=n(((e,t)=>{function n(e){let t=e.regex,n=`absolute_url.asset|0.asset_version.attribute.block.constant.controller|0.country_timezones.csrf_token.cycle.date.dump.expression.form|0.form_end.form_errors.form_help.form_label.form_rest.form_row.form_start.form_widget.html_classes.include.is_granted.logout_path.logout_url.max.min.parent.path|0.random.range.relative_path.render.render_esi.source.template_from_string.url|0`.split(`.`),r=`abs.abbr_class.abbr_method.batch.capitalize.column.convert_encoding.country_name.currency_name.currency_symbol.data_uri.date.date_modify.default.escape.file_excerpt.file_link.file_relative.filter.first.format.format_args.format_args_as_text.format_currency.format_date.format_datetime.format_file.format_file_from_text.format_number.format_time.html_to_markdown.humanize.inky_to_html.inline_css.join.json_encode.keys.language_name.last.length.locale_name.lower.map.markdown.markdown_to_html.merge.nl2br.number_format.raw.reduce.replace.reverse.round.slice.slug.sort.spaceless.split.striptags.timezone_name.title.trans.transchoice.trim.u|0.upper.url_encode.yaml_dump.yaml_encode`.split(`.`),i=`apply.autoescape.block.cache.deprecated.do.embed.extends.filter.flush.for.form_theme.from.if.import.include.macro.sandbox.set.stopwatch.trans.trans_default_domain.transchoice.use.verbatim.with`.split(`.`);i=i.concat(i.map(e=>`end${e}`));let a={scope:`string`,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:`number`,match:/\d+/},s={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[a,o]},c={beginKeywords:n.join(` `),keywords:{name:n},relevance:0,contains:[s]},l={match:/\|(?=[A-Za-z_]+:?)/,beginScope:`punctuation`,relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},u=(e,{relevance:n})=>({beginScope:{1:`template-tag`,3:`name`},relevance:n||2,endScope:`template-tag`,begin:[/\{%/,/\s*/,t.either(...e)],end:/%\}/,keywords:`in`,contains:[l,c,a,o]}),d=/[a-z_]+/,f=u(i,{relevance:2}),p=u([d],{relevance:1});return{name:`Twig`,aliases:[`craftcms`],case_insensitive:!0,subLanguage:`xml`,contains:[e.COMMENT(/\{#/,/#\}/),f,p,{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[`self`,l,c,a,o]}]}}t.exports=n})),Go=n(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`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`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`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`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],c=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],l=[].concat(s,a,o);function u(e){let t=e.regex,u=(e,{after:t})=>{let n=``,end:``},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(u(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},h={$pattern:n,keyword:r,literal:i,built_in:l,"variable.language":c},g=`[0-9](_?[0-9])*`,_=`\\.(${g})`,v=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,y={className:`number`,variants:[{begin:`(\\b(${v})((${_})|\\.)?|(${_}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${_})\\b|\\.)?|(${_})\\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},b={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:h,contains:[]},x={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`xml`}},S={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`css`}},C={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`graphql`}},w={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},T={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:d+`(?=\\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,x,S,C,w,{match:/\$\d+/},y];b.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:[`self`].concat(E)});let D=[].concat(T,b.contains),O=D.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:[`self`].concat(D)}]),k={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O},A={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,t.concat(d,`(`,t.concat(/\./,d),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,d],scope:{1:`keyword`,3:`title.class`}}]},j={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:{_:[...a,...o]}},M={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[k],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function F(e){return t.concat(`(?!`,e.join(`|`),`)`)}let I={match:t.concat(/\b/,F([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),d,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},L={begin:t.concat(/\./,t.lookahead(t.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},R={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},k]},z=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,B={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(z)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[k]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:h,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:j},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),M,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,T,{match:/\$\d+/},y,j,{scope:`attr`,match:d+t.lookahead(`:`),relevance:0},B,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[T,e.REGEXP_MODE,{className:`function`,begin:z,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:h,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:p},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:`xml`,contains:[{begin:m.begin,end:m.end,skip:!0,contains:[`self`]}]}]},N,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[k,e.inherit(e.TITLE_MODE,{begin:d,className:`title.function`})]},{match:/\.\.\./,relevance:0},L,{match:`\\$`+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[k]},I,P,A,R,{match:/\$[(.]/}]}}function d(e){let t=e.regex,a=u(e),o=n,s=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],d={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},f={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:s},contains:[a.exports.CLASS_REFERENCE]},p={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},m={$pattern:n,keyword:r.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:i,built_in:l.concat(s),"variable.language":c},h={className:`meta`,begin:`@`+o},g=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(a.keywords,m),a.exports.PARAMS_CONTAINS.push(h);let _=a.contains.find(e=>e.scope===`attr`),v=Object.assign({},_,{match:t.concat(o,t.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,_,v]),a.contains=a.contains.concat([h,d,f,v]),g(a,`shebang`,e.SHEBANG()),g(a,`use_strict`,p);let y=a.contains.find(e=>e.label===`func.def`);return y.relevance=0,Object.assign(a,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),a}t.exports=d})),Ko=n(((e,t)=>{function n(e){return{name:`Vala`,keywords:{keyword:`char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var`,built_in:`DBus GLib CCode Gee Object Gtk Posix`,literal:`false true null`},contains:[{className:`class`,beginKeywords:`class interface namespace`,end:/\{/,excludeEnd:!0,illegal:`[^,:\\n\\s\\.]`,contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:`"""`,end:`"""`,relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`^#`,end:`$`}]}}t.exports=n})),qo=n(((e,t)=>{function n(e){let t=e.regex,n={className:`string`,begin:/"(""|[^/n])"C\b/},r={className:`string`,begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,c={className:`literal`,variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},l={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])|[%&])?/}]},u={className:`label`,begin:/^\w+:/},d=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:[n,r,c,l,u,d,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]}]}}t.exports=n})),Jo=n(((e,t)=>{function n(e){let t=e.regex,n=`lcase.month.vartype.instrrev.ubound.setlocale.getobject.rgb.getref.string.weekdayname.rnd.dateadd.monthname.now.day.minute.isarray.cbool.round.formatcurrency.conversions.csng.timevalue.second.year.space.abs.clng.timeserial.fixs.len.asc.isempty.maths.dateserial.atn.timer.isobject.filter.weekday.datevalue.ccur.isdate.instr.datediff.formatdatetime.replace.isnull.right.sgn.array.snumeric.log.cdbl.hex.chr.lbound.msgbox.ucase.getlocale.cos.cdate.cbyte.rtrim.join.hour.oct.typename.trim.strcomp.int.createobject.loadpicture.tan.formatnumber.mid.split.cint.sin.datepart.ltrim.sqr.time.derived.eval.date.formatpercent.exp.inputbox.left.ascw.chrw.regexp.cstr.err`.split(`.`),r=[`server`,`response`,`request`,`scriptengine`,`scriptenginebuildversion`,`scriptengineminorversion`,`scriptenginemajorversion`],i={begin:t.concat(t.either(...n),`\\s*\\(`),relevance:0,keywords:{built_in:n}};return{name:`VBScript`,aliases:[`vbs`],case_insensitive:!0,keywords:{keyword:`call.class.const.dim.do.loop.erase.execute.executeglobal.exit.for.each.next.function.if.then.else.on.error.option.explicit.new.private.property.let.get.public.randomize.redim.rem.select.case.set.stop.sub.while.wend.with.end.to.elseif.is.or.xor.and.not.class_initialize.class_terminate.default.preserve.in.me.byval.byref.step.resume.goto`.split(`.`),built_in:r,literal:[`true`,`false`,`null`,`nothing`,`empty`]},illegal:`//`,contains:[i,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:`""`}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}t.exports=n})),Yo=n(((e,t)=>{function n(e){return{name:`VBScript in HTML`,subLanguage:`xml`,contains:[{begin:`<%`,end:`%>`,subLanguage:`vbscript`}]}}t.exports=n})),Xo=n(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:`accept_on.alias.always.always_comb.always_ff.always_latch.and.assert.assign.assume.automatic.before.begin.bind.bins.binsof.bit.break.buf|0.bufif0.bufif1.byte.case.casex.casez.cell.chandle.checker.class.clocking.cmos.config.const.constraint.context.continue.cover.covergroup.coverpoint.cross.deassign.default.defparam.design.disable.dist.do.edge.else.end.endcase.endchecker.endclass.endclocking.endconfig.endfunction.endgenerate.endgroup.endinterface.endmodule.endpackage.endprimitive.endprogram.endproperty.endspecify.endsequence.endtable.endtask.enum.event.eventually.expect.export.extends.extern.final.first_match.for.force.foreach.forever.fork.forkjoin.function.generate|5.genvar.global.highz0.highz1.if.iff.ifnone.ignore_bins.illegal_bins.implements.implies.import.incdir.include.initial.inout.input.inside.instance.int.integer.interconnect.interface.intersect.join.join_any.join_none.large.let.liblist.library.local.localparam.logic.longint.macromodule.matches.medium.modport.module.nand.negedge.nettype.new.nexttime.nmos.nor.noshowcancelled.not.notif0.notif1.or.output.package.packed.parameter.pmos.posedge.primitive.priority.program.property.protected.pull0.pull1.pulldown.pullup.pulsestyle_ondetect.pulsestyle_onevent.pure.rand.randc.randcase.randsequence.rcmos.real.realtime.ref.reg.reject_on.release.repeat.restrict.return.rnmos.rpmos.rtran.rtranif0.rtranif1.s_always.s_eventually.s_nexttime.s_until.s_until_with.scalared.sequence.shortint.shortreal.showcancelled.signed.small.soft.solve.specify.specparam.static.string.strong.strong0.strong1.struct.super.supply0.supply1.sync_accept_on.sync_reject_on.table.tagged.task.this.throughout.time.timeprecision.timeunit.tran.tranif0.tranif1.tri.tri0.tri1.triand.trior.trireg.type.typedef.union.unique.unique0.unsigned.until.until_with.untyped.use.uwire.var.vectored.virtual.void.wait.wait_order.wand.weak.weak0.weak1.while.wildcard.wire.with.within.wor.xnor.xor`.split(`.`),literal:[`null`],built_in:`$finish.$stop.$exit.$fatal.$error.$warning.$info.$realtime.$time.$printtimescale.$bitstoreal.$bitstoshortreal.$itor.$signed.$cast.$bits.$stime.$timeformat.$realtobits.$shortrealtobits.$rtoi.$unsigned.$asserton.$assertkill.$assertpasson.$assertfailon.$assertnonvacuouson.$assertoff.$assertcontrol.$assertpassoff.$assertfailoff.$assertvacuousoff.$isunbounded.$sampled.$fell.$changed.$past_gclk.$fell_gclk.$changed_gclk.$rising_gclk.$steady_gclk.$coverage_control.$coverage_get.$coverage_save.$set_coverage_db_name.$rose.$stable.$past.$rose_gclk.$stable_gclk.$future_gclk.$falling_gclk.$changing_gclk.$display.$coverage_get_max.$coverage_merge.$get_coverage.$load_coverage_db.$typename.$unpacked_dimensions.$left.$low.$increment.$clog2.$ln.$log10.$exp.$sqrt.$pow.$floor.$ceil.$sin.$cos.$tan.$countbits.$onehot.$isunknown.$fatal.$warning.$dimensions.$right.$high.$size.$asin.$acos.$atan.$atan2.$hypot.$sinh.$cosh.$tanh.$asinh.$acosh.$atanh.$countones.$onehot0.$error.$info.$random.$dist_chi_square.$dist_erlang.$dist_exponential.$dist_normal.$dist_poisson.$dist_t.$dist_uniform.$q_initialize.$q_remove.$q_exam.$async$and$array.$async$nand$array.$async$or$array.$async$nor$array.$sync$and$array.$sync$nand$array.$sync$or$array.$sync$nor$array.$q_add.$q_full.$psprintf.$async$and$plane.$async$nand$plane.$async$or$plane.$async$nor$plane.$sync$and$plane.$sync$nand$plane.$sync$or$plane.$sync$nor$plane.$system.$display.$displayb.$displayh.$displayo.$strobe.$strobeb.$strobeh.$strobeo.$write.$readmemb.$readmemh.$writememh.$value$plusargs.$dumpvars.$dumpon.$dumplimit.$dumpports.$dumpportson.$dumpportslimit.$writeb.$writeh.$writeo.$monitor.$monitorb.$monitorh.$monitoro.$writememb.$dumpfile.$dumpoff.$dumpall.$dumpflush.$dumpportsoff.$dumpportsall.$dumpportsflush.$fclose.$fdisplay.$fdisplayb.$fdisplayh.$fdisplayo.$fstrobe.$fstrobeb.$fstrobeh.$fstrobeo.$swrite.$swriteb.$swriteh.$swriteo.$fscanf.$fread.$fseek.$fflush.$feof.$fopen.$fwrite.$fwriteb.$fwriteh.$fwriteo.$fmonitor.$fmonitorb.$fmonitorh.$fmonitoro.$sformat.$sformatf.$fgetc.$ungetc.$fgets.$sscanf.$rewind.$ftell.$ferror`.split(`.`)},r=[`__FILE__`,`__LINE__`],i=`begin_keywords.celldefine.default_nettype.default_decay_time.default_trireg_strength.define.delay_mode_distributed.delay_mode_path.delay_mode_unit.delay_mode_zero.else.elsif.end_keywords.endcelldefine.endif.ifdef.ifndef.include.line.nounconnected_drive.pragma.resetall.timescale.unconnected_drive.undef.undefineall`.split(`.`);return{name:`Verilog`,aliases:[`v`,`sv`,`svh`],case_insensitive:!1,keywords:n,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:`number`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:`variable`,variants:[{begin:`#\\((?!parameter).+\\)`},{begin:`\\.\\w+`,relevance:0}]},{scope:`variable.constant`,match:t.concat(/`/,t.either(...r))},{scope:`meta`,begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}t.exports=n})),Zo=n(((e,t)=>{function n(e){let t=`\\d(_|\\d)*`;return``+t,t+``,t+``,{name:`VHDL`,case_insensitive:!0,keywords:{keyword:`abs.access.after.alias.all.and.architecture.array.assert.assume.assume_guarantee.attribute.begin.block.body.buffer.bus.case.component.configuration.constant.context.cover.disconnect.downto.default.else.elsif.end.entity.exit.fairness.file.for.force.function.generate.generic.group.guarded.if.impure.in.inertial.inout.is.label.library.linkage.literal.loop.map.mod.nand.new.next.nor.not.null.of.on.open.or.others.out.package.parameter.port.postponed.procedure.process.property.protected.pure.range.record.register.reject.release.rem.report.restrict.restrict_guarantee.return.rol.ror.select.sequence.severity.shared.signal.sla.sll.sra.srl.strong.subtype.then.to.transport.type.unaffected.units.until.use.variable.view.vmode.vprop.vunit.wait.when.while.with.xnor.xor`.split(`.`),built_in:`boolean.bit.character.integer.time.delay_length.natural.positive.string.bit_vector.file_open_kind.file_open_status.std_logic.std_logic_vector.unsigned.signed.boolean_vector.integer_vector.std_ulogic.std_ulogic_vector.unresolved_unsigned.u_unsigned.unresolved_signed.u_signed.real_vector.time_vector`.split(`.`),literal:[`false`,`true`,`note`,`warning`,`error`,`failure`,`line`,`text`,`side`,`width`]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(`--`,`$`),e.QUOTE_STRING_MODE,{className:`number`,begin:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,relevance:0},{className:`string`,begin:`'(U|X|0|1|Z|W|L|H|-)'`,contains:[e.BACKSLASH_ESCAPE]},{className:`symbol`,begin:`'[A-Za-z](_?[A-Za-z0-9])*`,contains:[e.BACKSLASH_ESCAPE]}]}}t.exports=n})),Qo=n(((e,t)=>{function n(e){return{name:`Vim Script`,keywords:{$pattern:/[!#@\w]+/,keyword:`N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank`,built_in:`synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp`},illegal:/;/,contains:[e.NUMBER_MODE,{className:`string`,begin:`'`,end:`'`,illegal:`\\n`},{className:`string`,begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT(`"`,`$`),{className:`variable`,begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:`keyword`,3:`title`},end:`$`,relevance:0,contains:[{className:`params`,begin:`\\(`,end:`\\)`}]},{className:`symbol`,begin:/<[\w-]+>/}]}}t.exports=n})),$o=n(((e,t)=>{function n(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push(`self`),{name:`WebAssembly`,keywords:{$pattern:/[\w.]+/,keyword:`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`.split(`,`)},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:`keyword`,3:`operator`}},{className:`variable`,begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:`punctuation`,relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:`keyword`,3:`title.function`}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:`type`},{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/},{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/}]}}t.exports=n})),es=n(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z]\w*/,r=[`as`,`break`,`class`,`construct`,`continue`,`else`,`for`,`foreign`,`if`,`import`,`in`,`is`,`return`,`static`,`var`,`while`],i=[`true`,`false`,`null`],a=[`this`,`super`],o=[`Bool`,`Class`,`Fiber`,`Fn`,`List`,`Map`,`Null`,`Num`,`Object`,`Range`,`Sequence`,`String`,`System`],s=[`-`,`~`,/\*/,`%`,/\.\.\./,/\.\./,/\+/,`<<`,`>>`,`>=`,`<=`,`<`,`>`,/\^/,/!=/,/!/,/\bis\b/,`==`,`&&`,`&`,/\|\|/,/\|/,/\?:/,`=`],c={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:`title.function`},l={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,n),t.either(...s)),/(?=\s*\([^)]+\)\s*\{)/),className:`title.function`,starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:`params`,match:n}]}]}},u={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:r},d={relevance:0,match:t.either(...s),className:`operator`},f={className:`string`,begin:/"""/,end:/"""/},p={className:`property`,begin:t.concat(/\./,t.lookahead(n)),end:n,excludeBegin:!0,relevance:0},m={relevance:0,match:t.concat(/\b_/,n),scope:`variable`},h={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:`title.class`,keywords:{_:o}},g=e.C_NUMBER_MODE,_={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:`title.function`,3:`operator`,6:`params`}},v=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:`doctag`},`self`]}),y={scope:`subst`,begin:/%\(/,end:/\)/,contains:[g,h,c,m,d]},b={scope:`string`,begin:/"/,end:/"/,contains:[y,{scope:`char.escape`,variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};y.contains.push(b);let x=[...r,...a,...i],S={relevance:0,match:t.concat(`\\b(?!`,x.join(`|`),`\\b)`,/[a-zA-Z_]\w*(?:[?!]|\b)/),className:`variable`};return{name:`Wren`,keywords:{keyword:r,"variable.language":a,literal:i},contains:[{scope:`comment`,variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},g,b,f,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,u,_,l,c,d,m,p,S]}}t.exports=n})),ts=n(((e,t)=>{function n(e){return{name:`Intel x86 Assembly`,case_insensitive:!0,keywords:{$pattern:`[.%]?`+e.IDENT_RE,keyword:`lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63`,built_in:`ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr`,meta:`%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__`},contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`number`,variants:[{begin:`\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b`,relevance:0},{begin:`\\$[0-9][0-9A-Fa-f]*`,relevance:0},{begin:`\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b`},{begin:`\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b`}]},e.QUOTE_STRING_MODE,{className:`string`,variants:[{begin:`'`,end:`[^\\\\]'`},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:`symbol`,variants:[{begin:`^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)`},{begin:`^\\s*%%[A-Za-z0-9_$#@~.?]*:`}],relevance:0},{className:`subst`,begin:`%[0-9]+`,relevance:0},{className:`subst`,begin:`%!S+`,relevance:0},{className:`meta`,begin:/^\s*\.[\w_-]+/}]}}t.exports=n})),ns=n(((e,t)=>{function n(e){let t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:`if.then.else.do.while.until.for.loop.import.with.is.as.where.when.by.data.constant.integer.real.text.name.boolean.symbol.infix.prefix.postfix.block.tree`.split(`.`),literal:[`true`,`false`,`nil`],built_in:`in.mod.rem.and.or.xor.not.abs.sign.floor.ceil.sqrt.sin.cos.tan.asin.acos.atan.exp.expm1.log.log2.log10.log1p.pi.at.text_length.text_range.text_find.text_replace.contains.page.slide.basic_slide.title_slide.title.subtitle.fade_in.fade_out.fade_at.clear_color.color.line_color.line_width.texture_wrap.texture_transform.texture.scale_?x.scale_?y.scale_?z?.translate_?x.translate_?y.translate_?z?.rotate_?x.rotate_?y.rotate_?z?.rectangle.circle.ellipse.sphere.path.line_to.move_to.quad_to.curve_to.theme.background.contents.locally.time.mouse_?x.mouse_?y.mouse_buttons`.split(`.`).concat([`ObjectLoader`,`Animate`,`MovieCredits`,`Slides`,`Filters`,`Shading`,`Materials`,`LensFlare`,`Mapping`,`VLCAudioVideo`,`StereoDecoder`,`PointCloud`,`NetworkAccess`,`RemoteControl`,`RegExp`,`ChromaKey`,`Snowfall`,`NodeJS`,`Speech`,`Charts`])},n={className:`string`,begin:`"`,end:`"`,illegal:`\\n`},r={className:`string`,begin:`'`,end:`'`,illegal:`\\n`},i={className:`string`,begin:`<<`,end:`>>`},a={className:`number`,begin:`[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?`},o={beginKeywords:`import`,end:`$`,keywords:t,contains:[n]},s={className:`function`,begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:`XL`,aliases:[`tao`],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,i,s,o,a,e.NUMBER_MODE]}}t.exports=n})),rs=n(((e,t)=>{function n(e){return{name:`XQuery`,aliases:[`xpath`,`xq`,`xqm`],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:`module.schema.namespace.boundary-space.preserve.no-preserve.strip.default.collation.base-uri.ordering.context.decimal-format.decimal-separator.copy-namespaces.empty-sequence.except.exponent-separator.external.grouping-separator.inherit.no-inherit.lax.minus-sign.per-mille.percent.schema-attribute.schema-element.strict.unordered.zero-digit.declare.import.option.function.validate.variable.for.at.in.let.where.order.group.by.return.if.then.else.tumbling.sliding.window.start.when.only.end.previous.next.stable.ascending.descending.allowing.empty.greatest.least.some.every.satisfies.switch.case.typeswitch.try.catch.and.or.to.union.intersect.instance.of.treat.as.castable.cast.map.array.delete.insert.into.replace.value.rename.copy.modify.update`.split(`.`),type:`item.document-node.node.attribute.document.element.comment.namespace.namespace-node.processing-instruction.text.construction.xs:anyAtomicType.xs:untypedAtomic.xs:duration.xs:time.xs:decimal.xs:float.xs:double.xs:gYearMonth.xs:gYear.xs:gMonthDay.xs:gMonth.xs:gDay.xs:boolean.xs:base64Binary.xs:hexBinary.xs:anyURI.xs:QName.xs:NOTATION.xs:dateTime.xs:dateTimeStamp.xs:date.xs:string.xs:normalizedString.xs:token.xs:language.xs:NMTOKEN.xs:Name.xs:NCName.xs:ID.xs:IDREF.xs:ENTITY.xs:integer.xs:nonPositiveInteger.xs:negativeInteger.xs:long.xs:int.xs:short.xs:byte.xs:nonNegativeInteger.xs:unisignedLong.xs:unsignedInt.xs:unsignedShort.xs:unsignedByte.xs:positiveInteger.xs:yearMonthDuration.xs:dayTimeDuration`.split(`.`),literal:[`eq`,`ne`,`lt`,`le`,`gt`,`ge`,`is`,`self::`,`child::`,`descendant::`,`descendant-or-self::`,`attribute::`,`following::`,`following-sibling::`,`parent::`,`ancestor::`,`ancestor-or-self::`,`preceding::`,`preceding-sibling::`,`NaN`]},contains:[{className:`variable`,begin:/[$][\w\-:]+/},{className:`built_in`,variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:`xml`,contains:[{begin:/\{/,end:/\}/,subLanguage:`xquery`},`self`]}]}}t.exports=n})),is=n(((e,t)=>{function n(e){let t={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i=`namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined`;return{name:`Zephir`,aliases:[`zep`],keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:`doctag`,begin:/@[A-Za-z]+/}]}),{className:`string`,begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:`function`,beginKeywords:`function fn`,end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:`params`,begin:/\(/,end:/\)/,keywords:i,contains:[`self`,e.C_BLOCK_COMMENT_MODE,t,r]}]},{className:`class`,beginKeywords:`class interface`,end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:`extends implements`},n]},{beginKeywords:`namespace`,end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:`use`,end:/;/,contains:[n]},{begin:/=>/},t,r]}}t.exports=n})),as=e(n(((e,t)=>{var n=Dr();n.registerLanguage(`1c`,Or()),n.registerLanguage(`abnf`,kr()),n.registerLanguage(`accesslog`,Ar()),n.registerLanguage(`actionscript`,jr()),n.registerLanguage(`ada`,Mr()),n.registerLanguage(`angelscript`,Nr()),n.registerLanguage(`apache`,Pr()),n.registerLanguage(`applescript`,Fr()),n.registerLanguage(`arcade`,Ir()),n.registerLanguage(`arduino`,Lr()),n.registerLanguage(`armasm`,Rr()),n.registerLanguage(`xml`,zr()),n.registerLanguage(`asciidoc`,Br()),n.registerLanguage(`aspectj`,Vr()),n.registerLanguage(`autohotkey`,Hr()),n.registerLanguage(`autoit`,Ur()),n.registerLanguage(`avrasm`,Wr()),n.registerLanguage(`awk`,Gr()),n.registerLanguage(`axapta`,Kr()),n.registerLanguage(`bash`,qr()),n.registerLanguage(`basic`,Jr()),n.registerLanguage(`bnf`,Yr()),n.registerLanguage(`brainfuck`,Xr()),n.registerLanguage(`c`,Zr()),n.registerLanguage(`cal`,Qr()),n.registerLanguage(`capnproto`,$r()),n.registerLanguage(`ceylon`,ei()),n.registerLanguage(`clean`,ti()),n.registerLanguage(`clojure`,ni()),n.registerLanguage(`clojure-repl`,ri()),n.registerLanguage(`cmake`,ii()),n.registerLanguage(`coffeescript`,ai()),n.registerLanguage(`coq`,oi()),n.registerLanguage(`cos`,si()),n.registerLanguage(`cpp`,ci()),n.registerLanguage(`crmsh`,li()),n.registerLanguage(`crystal`,ui()),n.registerLanguage(`csharp`,di()),n.registerLanguage(`csp`,fi()),n.registerLanguage(`css`,pi()),n.registerLanguage(`d`,mi()),n.registerLanguage(`markdown`,hi()),n.registerLanguage(`dart`,gi()),n.registerLanguage(`delphi`,_i()),n.registerLanguage(`diff`,vi()),n.registerLanguage(`django`,yi()),n.registerLanguage(`dns`,bi()),n.registerLanguage(`dockerfile`,xi()),n.registerLanguage(`dos`,Si()),n.registerLanguage(`dsconfig`,Ci()),n.registerLanguage(`dts`,wi()),n.registerLanguage(`dust`,Ti()),n.registerLanguage(`ebnf`,Ei()),n.registerLanguage(`elixir`,Di()),n.registerLanguage(`elm`,Oi()),n.registerLanguage(`ruby`,ki()),n.registerLanguage(`erb`,Ai()),n.registerLanguage(`erlang-repl`,ji()),n.registerLanguage(`erlang`,Mi()),n.registerLanguage(`excel`,Ni()),n.registerLanguage(`fix`,Pi()),n.registerLanguage(`flix`,Fi()),n.registerLanguage(`fortran`,Ii()),n.registerLanguage(`fsharp`,Li()),n.registerLanguage(`gams`,Ri()),n.registerLanguage(`gauss`,zi()),n.registerLanguage(`gcode`,Bi()),n.registerLanguage(`gherkin`,Vi()),n.registerLanguage(`glsl`,Hi()),n.registerLanguage(`gml`,Ui()),n.registerLanguage(`go`,Wi()),n.registerLanguage(`golo`,Gi()),n.registerLanguage(`gradle`,Ki()),n.registerLanguage(`graphql`,qi()),n.registerLanguage(`groovy`,Ji()),n.registerLanguage(`haml`,Yi()),n.registerLanguage(`handlebars`,Xi()),n.registerLanguage(`haskell`,Zi()),n.registerLanguage(`haxe`,Qi()),n.registerLanguage(`hsp`,$i()),n.registerLanguage(`http`,ea()),n.registerLanguage(`hy`,ta()),n.registerLanguage(`inform7`,na()),n.registerLanguage(`ini`,ra()),n.registerLanguage(`irpf90`,ia()),n.registerLanguage(`isbl`,aa()),n.registerLanguage(`java`,oa()),n.registerLanguage(`javascript`,sa()),n.registerLanguage(`jboss-cli`,ca()),n.registerLanguage(`json`,la()),n.registerLanguage(`julia`,ua()),n.registerLanguage(`julia-repl`,da()),n.registerLanguage(`kotlin`,fa()),n.registerLanguage(`lasso`,pa()),n.registerLanguage(`latex`,ma()),n.registerLanguage(`ldif`,ha()),n.registerLanguage(`leaf`,ga()),n.registerLanguage(`less`,_a()),n.registerLanguage(`lisp`,va()),n.registerLanguage(`livecodeserver`,ya()),n.registerLanguage(`livescript`,ba()),n.registerLanguage(`llvm`,xa()),n.registerLanguage(`lsl`,Sa()),n.registerLanguage(`lua`,Ca()),n.registerLanguage(`makefile`,wa()),n.registerLanguage(`mathematica`,Ta()),n.registerLanguage(`matlab`,Ea()),n.registerLanguage(`maxima`,Da()),n.registerLanguage(`mel`,Oa()),n.registerLanguage(`mercury`,ka()),n.registerLanguage(`mipsasm`,Aa()),n.registerLanguage(`mizar`,ja()),n.registerLanguage(`perl`,Ma()),n.registerLanguage(`mojolicious`,Na()),n.registerLanguage(`monkey`,Pa()),n.registerLanguage(`moonscript`,Fa()),n.registerLanguage(`n1ql`,Ia()),n.registerLanguage(`nestedtext`,La()),n.registerLanguage(`nginx`,Ra()),n.registerLanguage(`nim`,za()),n.registerLanguage(`nix`,Ba()),n.registerLanguage(`node-repl`,Va()),n.registerLanguage(`nsis`,Ha()),n.registerLanguage(`objectivec`,Ua()),n.registerLanguage(`ocaml`,Wa()),n.registerLanguage(`openscad`,Ga()),n.registerLanguage(`oxygene`,Ka()),n.registerLanguage(`parser3`,qa()),n.registerLanguage(`pf`,Ja()),n.registerLanguage(`pgsql`,Ya()),n.registerLanguage(`php`,Xa()),n.registerLanguage(`php-template`,Za()),n.registerLanguage(`plaintext`,Qa()),n.registerLanguage(`pony`,$a()),n.registerLanguage(`powershell`,eo()),n.registerLanguage(`processing`,to()),n.registerLanguage(`profile`,no()),n.registerLanguage(`prolog`,ro()),n.registerLanguage(`properties`,io()),n.registerLanguage(`protobuf`,ao()),n.registerLanguage(`puppet`,oo()),n.registerLanguage(`purebasic`,so()),n.registerLanguage(`python`,co()),n.registerLanguage(`python-repl`,lo()),n.registerLanguage(`q`,uo()),n.registerLanguage(`qml`,fo()),n.registerLanguage(`r`,po()),n.registerLanguage(`reasonml`,mo()),n.registerLanguage(`rib`,ho()),n.registerLanguage(`roboconf`,go()),n.registerLanguage(`routeros`,_o()),n.registerLanguage(`rsl`,vo()),n.registerLanguage(`ruleslanguage`,yo()),n.registerLanguage(`rust`,bo()),n.registerLanguage(`sas`,xo()),n.registerLanguage(`scala`,So()),n.registerLanguage(`scheme`,Co()),n.registerLanguage(`scilab`,wo()),n.registerLanguage(`scss`,To()),n.registerLanguage(`shell`,Eo()),n.registerLanguage(`smali`,Do()),n.registerLanguage(`smalltalk`,Oo()),n.registerLanguage(`sml`,ko()),n.registerLanguage(`sqf`,Ao()),n.registerLanguage(`sql`,jo()),n.registerLanguage(`stan`,Mo()),n.registerLanguage(`stata`,No()),n.registerLanguage(`step21`,Po()),n.registerLanguage(`stylus`,Fo()),n.registerLanguage(`subunit`,Io()),n.registerLanguage(`swift`,Lo()),n.registerLanguage(`taggerscript`,Ro()),n.registerLanguage(`yaml`,zo()),n.registerLanguage(`tap`,Bo()),n.registerLanguage(`tcl`,Vo()),n.registerLanguage(`thrift`,Ho()),n.registerLanguage(`tp`,Uo()),n.registerLanguage(`twig`,Wo()),n.registerLanguage(`typescript`,Go()),n.registerLanguage(`vala`,Ko()),n.registerLanguage(`vbnet`,qo()),n.registerLanguage(`vbscript`,Jo()),n.registerLanguage(`vbscript-html`,Yo()),n.registerLanguage(`verilog`,Xo()),n.registerLanguage(`vhdl`,Zo()),n.registerLanguage(`vim`,Qo()),n.registerLanguage(`wasm`,$o()),n.registerLanguage(`wren`,es()),n.registerLanguage(`x86asm`,ts()),n.registerLanguage(`xl`,ns()),n.registerLanguage(`xquery`,rs()),n.registerLanguage(`zephir`,is()),n.HighlightJS=n,n.default=n,t.exports=n}))()).default,os={shellscript:`bash`,sh:`bash`,zsh:`bash`,yml:`yaml`,vue:`xml`};function ss(e){return e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replaceAll(`"`,`"`).replaceAll(`'`,`'`)}function cs(e){return e.replace(/[^a-z0-9_-]/gi,`-`)||`plain`}function ls(e){let t=e?.trim().toLowerCase()||``;return os[t]||t}function us(e,t,n,r={}){let i=t?.trim().toLowerCase()||``,a=ls(i),o=r.maxHighlightLength??1/0,s=``,c=a||i||`plain`,l=i;try{a&&as.getLanguage(a)&&e.length<=o?(s=as.highlight(e,{language:a,ignoreIllegals:!0}).value,c=a):(s=ss(e),l||=`text`)}catch{s=ss(e),l||=`text`}return`
${l?`${ss(l)}`:``}
${s}
`}async function ds(e){try{await navigator.clipboard?.writeText?.(e)}catch{}}async function fs(e){let t=e.target;if(!(t instanceof HTMLElement))return;let n=t.closest(`[data-copy-code="true"]`);if(!n)return;e.preventDefault();let r=n.closest(`.hljs-code-block`)?.querySelector(`code`)?.textContent??``;r&&await ds(r)}var ps=new Set([`md`,`markdown`,`mdown`,`mkd`]);function ms(e){let t=e.match(/^( {0,3})(`{3,}|~{3,})(.*)$/);if(!t)return null;let[,n,r,i=``]=t,a=r[0],o=i.trim();return a==="`"&&o.includes("`")?null:{indent:n,marker:a,fence:r,length:r.length,info:o}}function hs(e,t=e.length,n=e.info){return`${e.indent}${e.marker.repeat(t)}${n?` ${n}`:``}`}function gs(e){let t=e.info.split(/\s+/)[0]?.toLowerCase();return ps.has(t)}function _s(e,t){let n=ms(e);return!!(n&&n.marker===t.marker&&n.length>=t.length&&n.info===``)}function vs(e,t=e.length-1){let n=t;for(;n>=0&&e[n].trim()===``;)--n;return n}function ys(e,t,n){for(let r=vs(e);r>n;--r)if(_s(e[r],t))return r;return-1}function bs(e,t){let n=[],r=!1;for(let i of e){let e=ms(i);if(!e||e.marker!==t)continue;r=!0;let a=n[n.length-1];if(e.info===``&&a&&e.length>=a.length){n.pop();continue}n.push({marker:e.marker,length:e.length})}return r&&n.length===0}function xs(e,t,n){let r=[];for(let i=n;i=t.length&&r.push(i)}for(let i=r.length-1;i>=0;--i){let a=r[i];if(bs(e.slice(n,a),t.marker))return a}return r[0]??-1}function Ss(e,t){let n=0;for(let r of e){let e=ms(r);e?.marker===t&&(n=Math.max(n,e.length))}return n}function Cs(e){let t=[];for(let n=0;n=r.length){let e=o+1;t.push(hs(r,e)),t.push(...a),t.push(hs(r,e,``))}else t.push(e[n]),t.push(...a),t.push(e[i]);n=i}return t}function ws(e){if(!e.includes("```")&&!e.includes(`~~~`))return e;let t=e.split(` +`),n=[],r=!1;for(let e=0;e`,`>`).replaceAll(`"`,`"`).replaceAll(`'`,`'`)}function Os(e){return e?.trim().split(/\s+/)[0]?.toLowerCase()||``}function ks(e){return Os(e)===Ts}function As(e){return encodeURIComponent(e)}function js(e){if(!e)return``;try{return decodeURIComponent(e)}catch{return``}}function Ms(e){return[`
`,`
Rendering Mermaid diagram…
`,`
`].join(``)}var Ns=[`innerHTML`],Ps=o({__name:`MarkdownRenderer`,props:{content:{},mentionNames:{default:()=>[]}},setup(e){let t=e,{t:n}=p(),o=g(),d=new $({html:!1,linkify:!0,typographer:!0,highlight(e,t){return us(e,t,n(`common.copy`))}}),h=d.renderer.rules.fence?.bind(d.renderer.rules);d.renderer.rules.fence=(e,t,n,r,i)=>{let a=e[t];return ks(a.info)?Ms(a.content):h?h(e,t,n,r,i):i.renderToken(e,t,n)};let _=m(null),y=`hermes-mermaid-${Math.random().toString(36).slice(2)}`,b=0,x=!1,S=a(()=>{let e=d.render(ws(t.content));if(t.mentionNames&&t.mentionNames.length>0){let n=t.mentionNames.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)),r=RegExp(`(?<=[\\s>]|^)@(${n.join(`|`)})(?=\\s|$)`,`gi`);e=e.replace(r,`@$1`)}return e});function C(e,t){e.outerHTML=us(t,`mermaid`,n(`common.copy`))}function w(e,t,n){let r,i=new Promise((e,i)=>{r=setTimeout(()=>{i(Error(`${n} timed out after ${t}ms`))},t)});return Promise.race([e,i]).finally(()=>{r!==void 0&&clearTimeout(r)})}function T(e){if(!e)return null;let t=e.parentElement;for(;t;){let{overflow:e,overflowY:n}=getComputedStyle(t);if(e===`auto`||e===`scroll`||n===`auto`||n===`scroll`)return t;t=t.parentElement}return null}function E(e){document.getElementById(e)?.remove(),document.getElementById(`d${e}`)?.remove()}async function D(){let e=++b;await i();let t=_.value;if(x||e!==b||!t)return;let n=Array.from(t.querySelectorAll(`[data-mermaid-pending="true"]`));if(n.length===0)return;let a=n.slice(0,4),o=n.slice(4);for(let e of o)C(e,js(e.getAttribute(`data-mermaid-source`)));let s=a.map(e=>({element:e,source:js(e.getAttribute(`data-mermaid-source`))})),c=[];for(let n of s){if(x||e!==b||!t.contains(n.element))return;if(!n.source||n.source.length>2e4){C(n.element,n.source);continue}c.push(n)}if(c.length===0)return;let l;try{if(l=(await w(r(()=>import(`./mermaid.core-DDVKiIRn.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])),Es,`Mermaid import`)).default,x||e!==b)return;l.initialize({startOnLoad:!1,securityLevel:`strict`})}catch{if(x||e!==b)return;for(let{element:e,source:n}of c)t.contains(e)&&C(e,n);return}for(let[n,{element:r,source:a}]of c.entries()){if(x||e!==b||!t.contains(r))return;try{let o=`${y}-${e}-${n}`,s=await w(l.render(o,a),Es,`Mermaid render`);if(E(o),x||e!==b||!t.contains(r))return;r.removeAttribute(`data-mermaid-pending`),r.removeAttribute(`data-mermaid-source`),r.innerHTML=s.svg,i(()=>{let e=T(_.value);e&&(e.scrollTop=e.scrollHeight)})}catch{if(E(`${y}-${e}-${n}`),x||e!==b||!t.contains(r))return;C(r,a)}}}l(()=>{D()}),u(S,()=>{D()},{flush:`post`}),c(()=>{x=!0,b+=1});function O(e){fs(e);let t=e.target.closest(`a`);if(!t)return;let r=t.getAttribute(`href`);if(r){if(r.startsWith(`http://`)||r.startsWith(`https://`)){t.target=`_blank`,t.rel=`noopener noreferrer`;return}if(r.startsWith(`/`)){e.preventDefault(),e.stopPropagation();let i=t.textContent||``,a=i.startsWith(`File: `)?i.slice(6).trim():i.trim();o.info(n(`download.downloading`)),v(r,a||void 0).catch(e=>{o.error(e.message||n(`download.downloadFailed`))})}}}return(e,t)=>(s(),f(`div`,{ref_key:`markdownBody`,ref:_,class:`markdown-body`,innerHTML:S.value,onClick:O},null,8,Ns))}});export{v as a,us as i,ds as n,fs as r,Ps as t}; \ No newline at end of file diff --git a/webui/assets/MemoryView--hC8Atwx.js b/webui/assets/MemoryView--hC8Atwx.js new file mode 100644 index 0000000000000000000000000000000000000000..30b5a567e05321fca3aebd32070969d27a2feb02 --- /dev/null +++ b/webui/assets/MemoryView--hC8Atwx.js @@ -0,0 +1,7 @@ +import{$r as e,Ar as t,Dr as n,Fr as r,Gr as i,Mr as a,Nr as o,Or as s,Pr as c,Qr as l,Ur as ee,ai as u,c as d,ci as f,jr as p,k as m,kr as h,lr as te,ni as g,y as ne,yr as _}from"./index-Cl8-DFW_.js";import{t as v}from"./MarkdownRenderer-P3bVUblX.js";import{a as y,t as b}from"./skills-Itof9XyP.js";var re={class:`memory-view`},ie={class:`page-header`},ae={class:`header-title`},oe={class:`memory-content`},se={key:0,class:`memory-loading`},ce={key:1,class:`memory-sections`},le={class:`memory-section`},ue={class:`section-header`},x={class:`section-title-row`},S={class:`section-title`},C={key:0,class:`section-mtime`},w={key:0,class:`section-body`},T={key:1,class:`empty-text`},E={key:1,class:`section-edit`},D=[`placeholder`],O={class:`edit-actions`},k={class:`memory-section`},A={class:`section-header`},j={class:`section-title-row`},M={class:`section-title`},N={key:0,class:`section-mtime`},P={key:0,class:`section-body`},F={key:1,class:`empty-text`},I={key:1,class:`section-edit`},L=[`placeholder`],R={class:`edit-actions`},z={class:`memory-section`},de={class:`section-header`},B={class:`section-title-row`},V={class:`section-title`},H={key:0,class:`section-mtime`},fe={key:0,class:`section-body`},pe={key:1,class:`empty-text`},me={key:1,class:`section-edit`},he=[`placeholder`],ge={class:`edit-actions`},U=d(r({__name:`MemoryView`,setup(r){let{t:d}=te(),U=ne(),W=g(!1),G=g(null),K=g(null),q=g(``),J=g(!1);ee(Y);async function Y(){W.value=!0;try{G.value=await b()}catch(e){console.error(`Failed to load memory:`,e),U.error(d(`memory.loadFailed`))}finally{W.value=!1}}function X(e){K.value=e,q.value=G.value?.[e]||``}function Z(){K.value=null,q.value=``}async function Q(){if(K.value){J.value=!0;try{await y(K.value,q.value),await Y(),K.value=null,q.value=``,U.success(d(`common.saved`))}catch(e){U.error(`${d(`common.saveFailed`)}: ${e.message}`)}finally{J.value=!1}}}function $(e){return e?new Date(e).toLocaleString([],{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):``}let _e=n(()=>!G.value?.memory?.trim()),ve=n(()=>!G.value?.user?.trim()),ye=n(()=>!G.value?.soul?.trim()),be=n(()=>(G.value?.memory||``).replace(/§/g,` + +`)),xe=n(()=>(G.value?.user||``).replace(/§/g,` + +`)),Se=n(()=>(G.value?.soul||``).replace(/§/g,` + +`));return(n,r)=>(i(),p(`div`,re,[s(`header`,ie,[s(`h2`,ae,f(u(d)(`memory.title`)),1),c(u(m),{size:`small`,quaternary:``,onClick:Y},{icon:l(()=>[...r[6]||=[s(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[s(`polyline`,{points:`23 4 23 10 17 10`}),s(`path`,{d:`M20.49 15a9 9 0 1 1-2.12-9.36L23 10`})],-1)]]),default:l(()=>[o(` `+f(u(d)(`memory.refresh`)),1)]),_:1})]),s(`div`,oe,[W.value&&!G.value?(i(),p(`div`,se,f(u(d)(`common.loading`)),1)):(i(),p(`div`,ce,[s(`div`,le,[s(`div`,ue,[s(`div`,x,[r[7]||=a(``,1),s(`span`,S,f(u(d)(`memory.myNotes`)),1),G.value?.memory_mtime?(i(),p(`span`,C,f($(G.value.memory_mtime)),1)):t(``,!0)]),K.value===`memory`?t(``,!0):(i(),h(u(m),{key:0,size:`tiny`,quaternary:``,onClick:r[0]||=e=>X(`memory`)},{icon:l(()=>[...r[8]||=[s(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[s(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),s(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`})],-1)]]),default:l(()=>[o(` `+f(u(d)(`common.edit`)),1)]),_:1}))]),K.value===`memory`?(i(),p(`div`,E,[e(s(`textarea`,{"onUpdate:modelValue":r[1]||=e=>q.value=e,class:`edit-textarea`,placeholder:u(d)(`memory.notesPlaceholder`),spellcheck:`false`},null,8,D),[[_,q.value]]),s(`div`,O,[c(u(m),{size:`small`,onClick:Z},{default:l(()=>[o(f(u(d)(`common.cancel`)),1)]),_:1}),c(u(m),{size:`small`,type:`primary`,loading:J.value,onClick:Q},{default:l(()=>[o(f(u(d)(`common.save`)),1)]),_:1},8,[`loading`])])])):(i(),p(`div`,w,[_e.value?(i(),p(`p`,T,f(u(d)(`memory.noNotes`)),1)):(i(),h(v,{key:0,content:be.value},null,8,[`content`]))]))]),s(`div`,k,[s(`div`,A,[s(`div`,j,[r[9]||=s(`span`,{class:`section-icon`},[s(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[s(`path`,{d:`M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2`}),s(`circle`,{cx:`12`,cy:`7`,r:`4`})])],-1),s(`span`,M,f(u(d)(`memory.userProfile`)),1),G.value?.user_mtime?(i(),p(`span`,N,f($(G.value.user_mtime)),1)):t(``,!0)]),K.value===`user`?t(``,!0):(i(),h(u(m),{key:0,size:`tiny`,quaternary:``,onClick:r[2]||=e=>X(`user`)},{icon:l(()=>[...r[10]||=[s(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[s(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),s(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`})],-1)]]),default:l(()=>[o(` `+f(u(d)(`common.edit`)),1)]),_:1}))]),K.value===`user`?(i(),p(`div`,I,[e(s(`textarea`,{"onUpdate:modelValue":r[3]||=e=>q.value=e,class:`edit-textarea`,placeholder:u(d)(`memory.profilePlaceholder`),spellcheck:`false`},null,8,L),[[_,q.value]]),s(`div`,R,[c(u(m),{size:`small`,onClick:Z},{default:l(()=>[o(f(u(d)(`common.cancel`)),1)]),_:1}),c(u(m),{size:`small`,type:`primary`,loading:J.value,onClick:Q},{default:l(()=>[o(f(u(d)(`common.save`)),1)]),_:1},8,[`loading`])])])):(i(),p(`div`,P,[ve.value?(i(),p(`p`,F,f(u(d)(`memory.noProfile`)),1)):(i(),h(v,{key:0,content:xe.value},null,8,[`content`]))]))]),s(`div`,z,[s(`div`,de,[s(`div`,B,[r[11]||=a(``,1),s(`span`,V,f(u(d)(`memory.soul`)),1),G.value?.soul_mtime?(i(),p(`span`,H,f($(G.value.soul_mtime)),1)):t(``,!0)]),K.value===`soul`?t(``,!0):(i(),h(u(m),{key:0,size:`tiny`,quaternary:``,onClick:r[4]||=e=>X(`soul`)},{icon:l(()=>[...r[12]||=[s(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[s(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),s(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`})],-1)]]),default:l(()=>[o(` `+f(u(d)(`common.edit`)),1)]),_:1}))]),K.value===`soul`?(i(),p(`div`,me,[e(s(`textarea`,{"onUpdate:modelValue":r[5]||=e=>q.value=e,class:`edit-textarea`,placeholder:u(d)(`memory.soulPlaceholder`),spellcheck:`false`},null,8,he),[[_,q.value]]),s(`div`,ge,[c(u(m),{size:`small`,onClick:Z},{default:l(()=>[o(f(u(d)(`common.cancel`)),1)]),_:1}),c(u(m),{size:`small`,type:`primary`,loading:J.value,onClick:Q},{default:l(()=>[o(f(u(d)(`common.save`)),1)]),_:1},8,[`loading`])])])):(i(),p(`div`,fe,[ye.value?(i(),p(`p`,pe,f(u(d)(`memory.noSoul`)),1)):(i(),h(v,{key:0,content:Se.value},null,8,[`content`]))]))])]))])]))}}),[[`__scopeId`,`data-v-5b2926d1`]]);export{U as default}; \ No newline at end of file diff --git a/webui/assets/MemoryView-CaRuy_r5.css b/webui/assets/MemoryView-CaRuy_r5.css new file mode 100644 index 0000000000000000000000000000000000000000..422b29f944bcd3fbcc1ed43ab3988291625d1d0e --- /dev/null +++ b/webui/assets/MemoryView-CaRuy_r5.css @@ -0,0 +1 @@ +[data-v-5b2926d1]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-5b2926d1]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.memory-view[data-v-5b2926d1]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.memory-content[data-v-5b2926d1]{flex-direction:column;flex:1;padding:20px;display:flex;overflow:hidden}.memory-loading[data-v-5b2926d1]{color:var(--text-muted);flex:1;justify-content:center;align-items:center;font-size:13px;display:flex}.memory-sections[data-v-5b2926d1]{flex:1;gap:16px;min-height:0;display:flex}@media (width<=768px){.memory-sections[data-v-5b2926d1]{flex-direction:column}}.memory-section[data-v-5b2926d1]{border:1px solid var(--border-color);border-radius:10px;flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.section-header[data-v-5b2926d1]{background:var(--bg-secondary);border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;padding:10px 16px;display:flex}.section-title-row[data-v-5b2926d1]{align-items:center;gap:8px;display:flex}.section-icon[data-v-5b2926d1]{color:var(--text-secondary);display:flex}.section-title[data-v-5b2926d1]{color:var(--text-primary);font-size:14px;font-weight:600}.section-mtime[data-v-5b2926d1]{color:var(--text-muted);font-size:11px}.section-body[data-v-5b2926d1]{flex:1;min-height:0;padding:16px;overflow-y:auto}.empty-text[data-v-5b2926d1]{color:var(--text-muted);font-size:13px;font-style:italic}.section-edit[data-v-5b2926d1]{flex-direction:column;flex:1;min-height:0;padding:12px 16px;display:flex}.edit-textarea[data-v-5b2926d1]{border:1px solid var(--border-color);background:var(--bg-input);width:100%;min-height:0;color:var(--text-primary);resize:none;border-radius:6px;outline:none;flex:1;padding:12px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:13px;line-height:1.6}.edit-textarea[data-v-5b2926d1]:focus{border-color:var(--accent-primary)}.edit-actions[data-v-5b2926d1]{justify-content:flex-end;gap:8px;margin-top:10px;display:flex} diff --git a/webui/assets/ModelsView-D6DC0TTh.css b/webui/assets/ModelsView-D6DC0TTh.css new file mode 100644 index 0000000000000000000000000000000000000000..fe9070e6d91ce105699719a2678ef6ad01bd9355 --- /dev/null +++ b/webui/assets/ModelsView-D6DC0TTh.css @@ -0,0 +1 @@ +[data-v-e7818f5a]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-e7818f5a]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.provider-card[data-v-e7818f5a]{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;padding:16px;transition:border-color .15s}.provider-card[data-v-e7818f5a]:hover{border-color:rgba(var(--accent-primary-rgb), .3)}.card-header[data-v-e7818f5a]{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.provider-name[data-v-e7818f5a]{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;max-width:70%;font-size:15px;font-weight:600;overflow:hidden}.type-badge[data-v-e7818f5a]{border-radius:10px;padding:2px 8px;font-size:11px;font-weight:500}.type-badge.builtin[data-v-e7818f5a]{background:rgba(var(--accent-primary-rgb), .12);color:var(--accent-primary)}.type-badge.custom[data-v-e7818f5a]{background:rgba(var(--success-rgb), .12);color:var(--success)}.card-body[data-v-e7818f5a]{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.info-row[data-v-e7818f5a]{justify-content:space-between;align-items:center;display:flex}.info-label[data-v-e7818f5a]{color:var(--text-muted);font-size:12px}.info-value[data-v-e7818f5a]{color:var(--text-secondary);font-size:12px}.mono[data-v-e7818f5a]{font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:12px}.card-actions[data-v-e7818f5a]{border-top:1px solid var(--border-light);gap:8px;padding-top:10px;display:flex}[data-v-76eec30b]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-76eec30b]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.empty-state[data-v-76eec30b]{height:100%;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex}.empty-state .empty-icon[data-v-76eec30b]{opacity:.3}.empty-state p[data-v-76eec30b]{font-size:14px}.providers-grid[data-v-76eec30b]{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:14px;display:grid}.codex-login[data-v-b8a659c8]{flex-direction:column;align-items:center;padding:8px 0;display:flex}.codex-login__state[data-v-b8a659c8]{flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;min-height:120px;display:flex}.codex-login__hint[data-v-b8a659c8]{color:var(--n-text-color,inherit);text-align:center;font-size:14px;line-height:1.6}.codex-login__code[data-v-b8a659c8]{border:1px solid var(--n-border-color,#e0e0e6);cursor:pointer;background:var(--n-color,#fafafa);border-radius:8px;align-items:center;gap:12px;padding:12px 20px;transition:border-color .2s;display:flex}.codex-login__code[data-v-b8a659c8]:hover{border-color:var(--n-primary-color,#18a058)}.codex-login__code-text[data-v-b8a659c8]{letter-spacing:4px;color:var(--n-text-color,inherit);font-family:monospace;font-size:28px;font-weight:700}.codex-login__state--success[data-v-b8a659c8]{color:#18a058}.codex-login__state--success svg[data-v-b8a659c8]{stroke:#18a058}.codex-login__error[data-v-b8a659c8]{color:#d03050;text-align:center;font-size:13px}.modal-footer[data-v-b8a659c8]{justify-content:flex-end;gap:8px;display:flex}.nous-login[data-v-13765003]{flex-direction:column;align-items:center;padding:8px 0;display:flex}.nous-login__state[data-v-13765003]{flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;min-height:120px;display:flex}.nous-login__hint[data-v-13765003]{color:var(--n-text-color,inherit);text-align:center;font-size:14px;line-height:1.6}.nous-login__code[data-v-13765003]{border:1px solid var(--n-border-color,#e0e0e6);cursor:pointer;background:var(--n-color,#fafafa);border-radius:8px;align-items:center;gap:12px;padding:12px 20px;transition:border-color .2s;display:flex}.nous-login__code[data-v-13765003]:hover{border-color:var(--n-primary-color,#18a058)}.nous-login__code-text[data-v-13765003]{letter-spacing:4px;color:var(--n-text-color,inherit);font-family:monospace;font-size:28px;font-weight:700}.nous-login__state--success[data-v-13765003]{color:#18a058}.nous-login__state--success svg[data-v-13765003]{stroke:#18a058}.nous-login__error[data-v-13765003]{color:#d03050;text-align:center;font-size:13px}.modal-footer[data-v-13765003]{justify-content:flex-end;gap:8px;display:flex}.copilot-login[data-v-fe3fcc7e]{flex-direction:column;align-items:center;padding:8px 0;display:flex}.copilot-login__state[data-v-fe3fcc7e]{flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;min-height:120px;display:flex}.copilot-login__hint[data-v-fe3fcc7e]{color:var(--n-text-color,inherit);text-align:center;font-size:14px;line-height:1.6}.copilot-login__code[data-v-fe3fcc7e]{border:1px solid var(--n-border-color,#e0e0e6);cursor:pointer;background:var(--n-color,#fafafa);border-radius:8px;align-items:center;gap:12px;padding:12px 20px;transition:border-color .2s;display:flex}.copilot-login__code[data-v-fe3fcc7e]:hover{border-color:var(--n-primary-color,#18a058)}.copilot-login__code-text[data-v-fe3fcc7e]{letter-spacing:4px;color:var(--n-text-color,inherit);font-family:monospace;font-size:28px;font-weight:700}.copilot-login__state--success[data-v-fe3fcc7e]{color:#18a058}.copilot-login__state--success svg[data-v-fe3fcc7e]{stroke:#18a058}.copilot-login__error[data-v-fe3fcc7e]{color:#d03050;text-align:center;font-size:13px}.modal-footer[data-v-fe3fcc7e],.modal-footer[data-v-975eb2e9]{justify-content:flex-end;gap:8px;display:flex}[data-v-2fa030eb]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-2fa030eb]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.models-view[data-v-2fa030eb]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.models-content[data-v-2fa030eb]{flex:1;padding:20px;overflow-y:auto} diff --git a/webui/assets/ModelsView-DiGxSAIV.js b/webui/assets/ModelsView-DiGxSAIV.js new file mode 100644 index 0000000000000000000000000000000000000000..d38764bfd3e2e12b47dec120ab0895a82d852025 --- /dev/null +++ b/webui/assets/ModelsView-DiGxSAIV.js @@ -0,0 +1,83 @@ +import{n as e,t}from"./FormItem-DB8yIr9W.js";import{t as n}from"./get-slot-DyvCJGRO.js";import{t as r}from"./InputNumber-P0oq6NtF.js";import{t as i}from"./composables-DggaE5oy.js";import{n as a}from"./app-IytcAxLh.js";import{$n as o,Ar as s,Bn as c,C as l,Dr as u,E as d,Fr as f,Gr as p,Kr as m,Ln as h,Lr as g,N as _,Nr as v,Or as y,Pn as b,Pr as x,Qr as S,Rr as C,Ur as w,Wr as T,Xr as E,Yr as D,ai as O,b as k,c as A,ci as j,cn as M,er as N,hn as P,in as F,ir as I,it as L,jr as R,k as z,kr as B,lr as V,mn as ee,ni as H,nn as U,nr as W,oi as te,ot as ne,pr as G,qr as re,ri as K,rn as ie,rr as q,t as ae,tr as J,u as Y,wr as oe,y as X}from"./index-Cl8-DFW_.js";import{t as Z}from"./clipboard-BulqpJ4r.js";import{t as Q}from"./models-Jqyv3Qjo.js";var se={name:String,value:{type:[String,Number,Boolean],default:`on`},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},ce=b(`n-radio-group`);function le(e){let t=C(ce,null),{mergedClsPrefixRef:n,mergedComponentPropsRef:r}=F(e),i=U(e,{mergedSize(n){let{size:i}=e;if(i!==void 0)return i;if(t){let{mergedSizeRef:{value:e}}=t;if(e!==void 0)return e}return n?n.mergedSize.value:r?.value?.Radio?.size||`medium`},mergedDisabled(n){return!!(e.disabled||t?.disabledRef.value||n?.disabled.value)}}),{mergedSizeRef:a,mergedDisabledRef:o}=i,s=H(null),l=H(null),u=H(e.defaultChecked),d=h(K(e,`checked`),u),f=c(()=>t?t.valueRef.value===e.value:d.value),p=c(()=>{let{name:n}=e;if(n!==void 0)return n;if(t)return t.nameRef.value}),m=H(!1);function g(){if(t){let{doUpdateValue:n}=t,{value:r}=e;P(n,r)}else{let{onUpdateChecked:t,"onUpdate:checked":n}=e,{nTriggerFormInput:r,nTriggerFormChange:a}=i;t&&P(t,!0),n&&P(n,!0),r(),a(),u.value=!0}}function _(){o.value||f.value||g()}function v(){_(),s.value&&(s.value.checked=f.value)}function y(){m.value=!1}function b(){m.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:n,inputRef:s,labelRef:l,mergedName:p,mergedDisabled:o,renderSafeChecked:f,focus:m,mergedSize:a,handleRadioInputChange:v,handleRadioInputBlur:y,handleRadioInputFocus:b}}var ue=f({name:`RadioButton`,props:se,setup:le,render(){let{mergedClsPrefix:e}=this;return g(`label`,{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},g(`input`,{ref:`inputRef`,type:`radio`,class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),g(`div`,{class:`${e}-radio-button__state-border`}),M(this.$slots.default,t=>!t&&!this.label?null:g(`div`,{ref:`labelRef`,class:`${e}-radio__label`},t||this.label)))}}),de=N(`radio-group`,` + display: inline-block; + font-size: var(--n-font-size); +`,[J(`splitor`,` + display: inline-block; + vertical-align: bottom; + width: 1px; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + background: var(--n-button-border-color); + `,[W(`checked`,{backgroundColor:`var(--n-button-border-color-active)`}),W(`disabled`,{opacity:`var(--n-opacity-disabled)`})]),W(`button-group`,` + white-space: nowrap; + height: var(--n-height); + line-height: var(--n-height); + `,[N(`radio-button`,{height:`var(--n-height)`,lineHeight:`var(--n-height)`}),J(`splitor`,{height:`var(--n-height)`})]),N(`radio-button`,` + vertical-align: bottom; + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-block; + box-sizing: border-box; + padding-left: 14px; + padding-right: 14px; + white-space: nowrap; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background: var(--n-button-color); + color: var(--n-button-text-color); + border-top: 1px solid var(--n-button-border-color); + border-bottom: 1px solid var(--n-button-border-color); + `,[N(`radio-input`,` + pointer-events: none; + position: absolute; + border: 0; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + opacity: 0; + z-index: 1; + `),J(`state-border`,` + z-index: 1; + pointer-events: none; + position: absolute; + box-shadow: var(--n-button-box-shadow); + transition: box-shadow .3s var(--n-bezier); + left: -1px; + bottom: -1px; + right: -1px; + top: -1px; + `),o(`&:first-child`,` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + border-left: 1px solid var(--n-button-border-color); + `,[J(`state-border`,` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + `)]),o(`&:last-child`,` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + border-right: 1px solid var(--n-button-border-color); + `,[J(`state-border`,` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + `)]),q(`disabled`,` + cursor: pointer; + `,[o(`&:hover`,[J(`state-border`,` + transition: box-shadow .3s var(--n-bezier); + box-shadow: var(--n-button-box-shadow-hover); + `),q(`checked`,{color:`var(--n-button-text-color-hover)`})]),W(`focus`,[o(`&:not(:active)`,[J(`state-border`,{boxShadow:`var(--n-button-box-shadow-focus)`})])])]),W(`checked`,` + background: var(--n-button-color-active); + color: var(--n-button-text-color-active); + border-color: var(--n-button-border-color-active); + `),W(`disabled`,` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `)])]);function fe(e,t,n){let r=[],i=!1;for(let a=0;a{let{value:e}=n,{common:{cubicBezierEaseInOut:t},self:{buttonBorderColor:r,buttonBorderColorActive:i,buttonBorderRadius:a,buttonBoxShadow:o,buttonBoxShadowFocus:s,buttonBoxShadowHover:c,buttonColor:l,buttonColorActive:u,buttonTextColor:d,buttonTextColorActive:f,buttonTextColorHover:m,opacityDisabled:h,[I(`buttonHeight`,e)]:g,[I(`fontSize`,e)]:_}}=p.value;return{"--n-font-size":_,"--n-bezier":t,"--n-button-border-color":r,"--n-button-border-color-active":i,"--n-button-border-radius":a,"--n-button-box-shadow":o,"--n-button-box-shadow-focus":s,"--n-button-box-shadow-hover":c,"--n-button-color":l,"--n-button-color-active":u,"--n-button-text-color":d,"--n-button-text-color-hover":m,"--n-button-text-color-active":f,"--n-height":g,"--n-opacity-disabled":h}}),C=d?ie(`radio-group`,u(()=>n.value[0]),S,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:c,mergedValue:_,handleFocusout:b,handleFocusin:y,cssVars:d?void 0:S,themeClass:C?.themeClass,onRender:C?.onRender}},render(){var e;let{mergedValue:t,mergedClsPrefix:r,handleFocusin:i,handleFocusout:a}=this,{children:o,isButtonGroup:s}=fe(ee(n(this)),t,r);return(e=this.onRender)==null||e.call(this),g(`div`,{onFocusin:i,onFocusout:a,ref:`selfElRef`,class:[`${r}-radio-group`,this.rtlEnabled&&`${r}-radio-group--rtl`,this.themeClass,s&&`${r}-radio-group--button-group`],style:this.cssVars},o)}});async function me(){return G(`/api/hermes/auth/copilot/start`,{method:`POST`})}async function he(e){return G(`/api/hermes/auth/copilot/poll/${e}`)}async function $(){return G(`/api/hermes/auth/copilot/check-token`)}async function ge(){return G(`/api/hermes/auth/copilot/enable`,{method:`POST`})}async function _e(){return G(`/api/hermes/auth/copilot/disable`,{method:`POST`})}var ve={class:`provider-card`},ye={class:`card-header`},be={class:`provider-name`},xe={class:`card-body`},Se={class:`info-row`},Ce={class:`info-label`},we={class:`info-value mono`},Te={class:`info-row`},Ee={class:`info-label`},De={class:`info-value mono`},Oe={class:`card-actions`},ke=A(f({__name:`ProviderCard`,props:{provider:{}},setup(e){let t=e,{t:n}=V(),r=Q(),o=a(),s=ae(),c=X(),l=i(),d=u(()=>t.provider.provider.startsWith(`custom:`)),f=u(()=>t.provider.provider===`copilot`),m=u(()=>t.provider.label),h=H(!1);async function g(){let e=``;if(f.value)try{let t=await $();t.source===`env`?e=n(`models.copilotDeleteHintEnv`):t.source===`gh-cli`?e=n(`models.copilotDeleteHintGhCli`):t.source===`apps-json`&&(e=n(`models.copilotDeleteHintAppsJson`))}catch{}l.warning({title:n(`models.deleteProvider`),content:f.value&&e?`${n(`models.deleteConfirm`,{name:m.value})}\n\n${e}`:n(`models.deleteConfirm`,{name:m.value}),positiveText:n(`common.delete`),negativeText:n(`common.cancel`),onPositiveClick:async()=>{h.value=!0;try{if(f.value?(await _e(),s.clearProviderFromSessions(`copilot`),await Promise.all([r.fetchProviders(),o.loadModels()])):await r.removeProvider(t.provider.provider),!o.selectedModel&&o.modelGroups.length>0){let e=o.modelGroups.find(e=>e.models.length>0);e&&await o.switchModel(e.models[0],e.provider)}c.success(n(`models.providerDeleted`))}catch(e){c.error(e.message)}finally{h.value=!1}}})}return(t,r)=>(p(),R(`div`,ve,[y(`div`,ye,[y(`h3`,be,j(m.value),1),y(`span`,{class:te([`type-badge`,d.value?`custom`:`builtin`])},j(d.value?O(n)(`models.customType`):O(n)(`models.builtIn`)),3)]),y(`div`,xe,[y(`div`,Se,[y(`span`,Ce,j(O(n)(`models.provider`)),1),y(`code`,we,j(e.provider.provider),1)]),y(`div`,Te,[y(`span`,Ee,j(O(n)(`models.baseUrl`)),1),y(`code`,De,j(e.provider.base_url),1)])]),y(`div`,Oe,[x(O(z),{size:`tiny`,quaternary:``,type:`error`,loading:h.value,onClick:g},{default:S(()=>[v(j(O(n)(`common.delete`)),1)]),_:1},8,[`loading`])])]))}}),[[`__scopeId`,`data-v-e7818f5a`]]),Ae={key:0,class:`empty-state`},je={key:1,class:`providers-grid`},Me=A(f({__name:`ProvidersPanel`,setup(e){let{t}=V(),n=Q();return(e,r)=>O(n).providers.length===0?(p(),R(`div`,Ae,[r[0]||=y(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,class:`empty-icon`},[y(`path`,{d:`M12 2L2 7l10 5 10-5-10-5z`}),y(`path`,{d:`M2 17l10 5 10-5`}),y(`path`,{d:`M2 12l10 5 10-5`})],-1),y(`p`,null,j(O(t)(`models.noProviders`)),1)])):(p(),R(`div`,je,[(p(!0),R(oe,null,re(O(n).providers,e=>(p(),B(ke,{key:e.provider,provider:e},null,8,[`provider`]))),128))]))}}),[[`__scopeId`,`data-v-76eec30b`]]);async function Ne(){return G(`/api/hermes/auth/codex/start`,{method:`POST`})}async function Pe(e){return G(`/api/hermes/auth/codex/poll/${e}`)}var Fe={class:`codex-login`},Ie={key:0,class:`codex-login__state`},Le={key:1,class:`codex-login__state`},Re={class:`codex-login__hint`},ze={class:`codex-login__code-text`},Be={key:2,class:`codex-login__state codex-login__state--success`},Ve={key:3,class:`codex-login__state`},He={class:`codex-login__error`},Ue={key:4,class:`codex-login__state`},We={class:`codex-login__error`},Ge={class:`modal-footer`},Ke=A(f({__name:`CodexLoginModal`,emits:[`close`,`success`],setup(e,{emit:t}){let{t:n}=V(),r=t,i=X(),a=H(!0),o=H(`idle`),c=H(``),l=H(``),u=H(``),d=H(``),f=null;async function m(){o.value=`loading`,d.value=``;try{let e=await Ne();c.value=e.user_code,l.value=e.verification_url,u.value=e.session_id,o.value=`waiting`,h()}catch(e){o.value=`error`;let t=e.message||``;try{let e=t.match(/\{[\s\S]*\}$/);e?d.value=JSON.parse(e[0]).error||t:d.value=t}catch{d.value=t}i.error(d.value)}}function h(){g(),f=setTimeout(async()=>{try{let e=await Pe(u.value);e.status===`pending`?h():e.status===`approved`?(o.value=`approved`,i.success(n(`models.codexApproved`)),setTimeout(()=>{a.value=!1,setTimeout(()=>r(`success`),200)},1e3)):e.status===`expired`?o.value=`expired`:e.status===`error`&&(o.value=`error`,d.value=e.error||`Unknown error`)}catch{h()}},3e3)}function g(){f&&=(clearTimeout(f),null)}function _(){g(),a.value=!1,setTimeout(()=>r(`close`),200)}async function b(){await Z(c.value)?i.success(n(`models.codexCopyCode`)):i.error(n(`models.codexCopyCode`)+` ✗`)}function C(){window.open(l.value,`_blank`)}function w(){o.value=`idle`,c.value=``,l.value=``,u.value=``,d.value=``,m()}return T(()=>{g()}),m(),(e,t)=>{let i=D(`NSpin`);return p(),B(O(k),{show:a.value,"onUpdate:show":t[0]||=e=>a.value=e,preset:`card`,title:O(n)(`models.codexLoginTitle`),style:{width:`min(440px, calc(100vw - 32px))`},"mask-closable":o.value!==`waiting`,onAfterLeave:t[1]||=e=>r(`close`)},{footer:S(()=>[y(`div`,Ge,[x(O(z),{disabled:o.value===`waiting`,onClick:_},{default:S(()=>[v(j(O(n)(`common.cancel`)),1)]),_:1},8,[`disabled`])])]),default:S(()=>[y(`div`,Fe,[o.value===`idle`||o.value===`loading`?(p(),R(`div`,Ie,[x(i,{size:`small`})])):o.value===`waiting`?(p(),R(`div`,Le,[y(`p`,Re,j(O(n)(`models.codexWaiting`)),1),y(`div`,{class:`codex-login__code`,onClick:b},[y(`span`,ze,j(c.value),1),t[2]||=y(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`}),y(`path`,{d:`M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1`})],-1)]),x(O(z),{type:`primary`,block:``,onClick:C},{icon:S(()=>[...t[3]||=[y(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6`}),y(`polyline`,{points:`15 3 21 3 21 9`}),y(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})],-1)]]),default:S(()=>[v(` `+j(O(n)(`models.codexOpenLink`)),1)]),_:1})])):o.value===`approved`?(p(),R(`div`,Be,[t[4]||=y(`svg`,{width:`40`,height:`40`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M22 11.08V12a10 10 0 11-5.93-9.14`}),y(`polyline`,{points:`22 4 12 14.01 9 11.01`})],-1),y(`p`,null,j(O(n)(`models.codexApproved`)),1)])):o.value===`expired`?(p(),R(`div`,Ve,[y(`p`,He,j(O(n)(`models.codexExpired`)),1),x(O(z),{size:`small`,onClick:w},{default:S(()=>[v(j(O(n)(`common.retry`)),1)]),_:1})])):o.value===`error`?(p(),R(`div`,Ue,[y(`p`,We,j(d.value),1),x(O(z),{size:`small`,onClick:w},{default:S(()=>[v(j(O(n)(`common.retry`)),1)]),_:1})])):s(``,!0)])]),_:1},8,[`show`,`title`,`mask-closable`])}}}),[[`__scopeId`,`data-v-b8a659c8`]]);async function qe(){return G(`/api/hermes/auth/nous/start`,{method:`POST`})}async function Je(e){return G(`/api/hermes/auth/nous/poll/${e}`)}var Ye={class:`nous-login`},Xe={key:0,class:`nous-login__state`},Ze={key:1,class:`nous-login__state`},Qe={class:`nous-login__hint`},$e={class:`nous-login__code-text`},et={key:2,class:`nous-login__state nous-login__state--success`},tt={key:3,class:`nous-login__state`},nt={class:`nous-login__error`},rt={key:4,class:`nous-login__state`},it={class:`nous-login__error`},at={class:`modal-footer`},ot=A(f({__name:`NousLoginModal`,emits:[`close`,`success`],setup(e,{emit:t}){let{t:n}=V(),r=t,i=X(),a=H(!0),o=H(`idle`),c=H(``),l=H(``),u=H(``),d=H(``),f=null;async function m(){o.value=`loading`,d.value=``;try{let e=await qe();c.value=e.user_code,l.value=e.verification_url,u.value=e.session_id,o.value=`waiting`,h()}catch(e){o.value=`error`;let t=e.message||``;try{let e=t.match(/\{[\s\S]*\}$/);e?d.value=JSON.parse(e[0]).error||t:d.value=t}catch{d.value=t}i.error(d.value)}}function h(){g(),f=setTimeout(async()=>{try{let e=await Je(u.value);e.status===`pending`?h():e.status===`approved`?(o.value=`approved`,i.success(n(`models.nousApproved`)),setTimeout(()=>{a.value=!1,setTimeout(()=>r(`success`),200)},1e3)):e.status===`expired`?o.value=`expired`:e.status===`denied`?(o.value=`error`,d.value=n(`models.nousDenied`)):e.status===`error`&&(o.value=`error`,d.value=e.error||`Unknown error`)}catch{h()}},3e3)}function g(){f&&=(clearTimeout(f),null)}function _(){g(),a.value=!1,setTimeout(()=>r(`close`),200)}async function b(){await Z(c.value)?i.success(n(`models.nousCopyCode`)):i.error(n(`models.nousCopyCode`)+` ✗`)}function C(){window.open(l.value,`_blank`)}function w(){o.value=`idle`,c.value=``,l.value=``,u.value=``,d.value=``,m()}return T(()=>{g()}),m(),(e,t)=>(p(),B(O(k),{show:a.value,"onUpdate:show":t[0]||=e=>a.value=e,preset:`card`,title:O(n)(`models.nousLoginTitle`),style:{width:`min(440px, calc(100vw - 32px))`},"mask-closable":o.value!==`waiting`,onAfterLeave:t[1]||=e=>r(`close`)},{footer:S(()=>[y(`div`,at,[x(O(z),{disabled:o.value===`waiting`,onClick:_},{default:S(()=>[v(j(O(n)(`common.cancel`)),1)]),_:1},8,[`disabled`])])]),default:S(()=>[y(`div`,Ye,[o.value===`idle`||o.value===`loading`?(p(),R(`div`,Xe,[x(O(Y),{size:`small`})])):o.value===`waiting`?(p(),R(`div`,Ze,[y(`p`,Qe,j(O(n)(`models.nousWaiting`)),1),y(`div`,{class:`nous-login__code`,onClick:b},[y(`span`,$e,j(c.value),1),t[2]||=y(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`}),y(`path`,{d:`M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1`})],-1)]),x(O(z),{type:`primary`,block:``,onClick:C},{icon:S(()=>[...t[3]||=[y(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6`}),y(`polyline`,{points:`15 3 21 3 21 9`}),y(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})],-1)]]),default:S(()=>[v(` `+j(O(n)(`models.nousOpenLink`)),1)]),_:1})])):o.value===`approved`?(p(),R(`div`,et,[t[4]||=y(`svg`,{width:`40`,height:`40`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M22 11.08V12a10 10 0 11-5.93-9.14`}),y(`polyline`,{points:`22 4 12 14.01 9 11.01`})],-1),y(`p`,null,j(O(n)(`models.nousApproved`)),1)])):o.value===`expired`?(p(),R(`div`,tt,[y(`p`,nt,j(O(n)(`models.nousExpired`)),1),x(O(z),{size:`small`,onClick:w},{default:S(()=>[v(j(O(n)(`common.retry`)),1)]),_:1})])):o.value===`error`?(p(),R(`div`,rt,[y(`p`,it,j(d.value),1),x(O(z),{size:`small`,onClick:w},{default:S(()=>[v(j(O(n)(`common.retry`)),1)]),_:1})])):s(``,!0)])]),_:1},8,[`show`,`title`,`mask-closable`]))}}),[[`__scopeId`,`data-v-13765003`]]),st={class:`copilot-login`},ct={key:0,class:`copilot-login__state`},lt={key:1,class:`copilot-login__state`},ut={class:`copilot-login__hint`},dt={class:`copilot-login__code-text`},ft={key:2,class:`copilot-login__state copilot-login__state--success`},pt={key:3,class:`copilot-login__state`},mt={class:`copilot-login__error`},ht={key:4,class:`copilot-login__state`},gt={class:`copilot-login__error`},_t={class:`modal-footer`},vt=A(f({__name:`CopilotLoginModal`,emits:[`close`,`success`],setup(e,{emit:t}){let{t:n}=V(),r=t,i=X(),a=H(!0),o=H(`idle`),c=H(``),l=H(``),u=H(``),d=H(``),f=null;async function m(){o.value=`loading`,d.value=``;try{let e=await me();c.value=e.user_code,l.value=e.verification_url,u.value=e.session_id,o.value=`waiting`,h()}catch(e){o.value=`error`;let t=e?.message||``;try{let e=t.match(/\{[\s\S]*\}$/);e?d.value=JSON.parse(e[0]).error||t:d.value=t}catch{d.value=t}i.error(d.value)}}function h(){g(),f=setTimeout(async()=>{try{let e=await he(u.value);e.status===`pending`?h():e.status===`approved`?(o.value=`approved`,i.success(n(`models.copilotApproved`)),setTimeout(()=>{a.value=!1,setTimeout(()=>r(`success`),200)},1e3)):e.status===`expired`?o.value=`expired`:e.status===`denied`?(o.value=`error`,d.value=n(`models.copilotDenied`)):e.status===`error`&&(o.value=`error`,d.value=e.error||`Unknown error`)}catch{h()}},3e3)}function g(){f&&=(clearTimeout(f),null)}function _(){g(),a.value=!1,setTimeout(()=>r(`close`),200)}async function b(){await Z(c.value)?i.success(n(`models.copilotCopyCode`)):i.error(n(`models.copilotCopyCode`)+` ✗`)}function C(){window.open(l.value,`_blank`)}function w(){o.value=`idle`,c.value=``,l.value=``,u.value=``,d.value=``,m()}return T(()=>{g()}),m(),(e,t)=>(p(),B(O(k),{show:a.value,"onUpdate:show":t[0]||=e=>a.value=e,preset:`card`,title:O(n)(`models.copilotLoginTitle`),style:{width:`min(440px, calc(100vw - 32px))`},"mask-closable":o.value!==`waiting`,onAfterLeave:t[1]||=e=>r(`close`)},{footer:S(()=>[y(`div`,_t,[x(O(z),{disabled:o.value===`waiting`,onClick:_},{default:S(()=>[v(j(O(n)(`common.cancel`)),1)]),_:1},8,[`disabled`])])]),default:S(()=>[y(`div`,st,[o.value===`idle`||o.value===`loading`?(p(),R(`div`,ct,[x(O(Y),{size:`small`})])):o.value===`waiting`?(p(),R(`div`,lt,[y(`p`,ut,j(O(n)(`models.copilotWaiting`)),1),y(`div`,{class:`copilot-login__code`,onClick:b},[y(`span`,dt,j(c.value),1),t[2]||=y(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`}),y(`path`,{d:`M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1`})],-1)]),x(O(z),{type:`primary`,block:``,onClick:C},{icon:S(()=>[...t[3]||=[y(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6`}),y(`polyline`,{points:`15 3 21 3 21 9`}),y(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})],-1)]]),default:S(()=>[v(` `+j(O(n)(`models.copilotOpenLink`)),1)]),_:1})])):o.value===`approved`?(p(),R(`div`,ft,[t[4]||=y(`svg`,{width:`40`,height:`40`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`path`,{d:`M22 11.08V12a10 10 0 11-5.93-9.14`}),y(`polyline`,{points:`22 4 12 14.01 9 11.01`})],-1),y(`p`,null,j(O(n)(`models.copilotApproved`)),1)])):o.value===`expired`?(p(),R(`div`,pt,[y(`p`,mt,j(O(n)(`models.copilotExpired`)),1),x(O(z),{size:`small`,onClick:w},{default:S(()=>[v(j(O(n)(`common.retry`)),1)]),_:1})])):o.value===`error`?(p(),R(`div`,ht,[y(`p`,gt,j(d.value),1),x(O(z),{size:`small`,onClick:w},{default:S(()=>[v(j(O(n)(`common.retry`)),1)]),_:1})])):s(``,!0)])]),_:1},8,[`show`,`title`,`mask-closable`]))}}),[[`__scopeId`,`data-v-fe3fcc7e`]]),yt={style:{display:`flex`,gap:`12px`}},bt={style:{display:`flex`,gap:`8px`,width:`100%`}},xt={class:`modal-footer`},St=`openai-codex`,Ct=`nous`,wt=`copilot`,Tt=`alibaba-coding-plan`,Et=A(f({__name:`ProviderFormModal`,emits:[`close`,`saved`],setup(n,{emit:a}){let{t:o}=V(),c=a,l=Q(),f=X(),m=i(),h=H(!0),g=H(!1),b=H(!1),C=H(!1),T=H(!1),D=H(!1),A=H(!1),M=H(`preset`),N=H(null),P=H({name:``,base_url:``,api_key:``,model:``,context_length:null}),F=H([]),I={intl:`https://coding-intl.dashscope.aliyuncs.com/v1`,cn:`https://coding.dashscope.aliyuncs.com/v1`},L=u(()=>N.value===St),R=u(()=>N.value===Ct),ee=u(()=>N.value===wt),U=u(()=>N.value===Tt),W=H(`intl`),te=u(()=>l.allProviders.map(e=>({label:e.label,value:e.provider})));function ne(e){let t=e.replace(/^https?:\/\//,``).replace(/\/v1\/?$/,``).split(`/`)[0];return t.includes(`localhost`)||t.includes(`127.0.0.1`)?o(`models.local`,{host:t}):t.charAt(0).toUpperCase()+t.slice(1)}E(N,e=>{if(P.value.model=``,W.value=`intl`,e){let t=l.allProviders.find(t=>t.provider===e);t&&(P.value.name=t.label,P.value.base_url=t.base_url,F.value=t.models.map(e=>({label:e,value:e})),t.models.length>0&&(P.value.model=t.models[0])),e===wt&&J()}}),E(W,e=>{U.value&&(P.value.base_url=I[e])}),E(()=>P.value.base_url,e=>{M.value===`custom`&&e.trim()&&!P.value.name&&(P.value.name=ne(e.trim()))}),E(M,()=>{F.value=[],P.value={name:``,base_url:``,api_key:``,model:``,context_length:null},N.value=null}),w(()=>{l.providers.length===0&&l.fetchProviders()});async function G(){let{base_url:e}=P.value;if(!e.trim()){f.warning(o(`models.enterBaseUrl`));return}b.value=!0;try{let t=e.replace(/\/+$/,``),n=/\/v\d+\/?$/.test(t)?`${t}/models`:`${t}/v1/models`,r={};P.value.api_key.trim()&&(r.Authorization=`Bearer ${P.value.api_key.trim()}`);let i=await fetch(n,{headers:r,signal:AbortSignal.timeout(8e3)});if(!i.ok)throw Error(`HTTP ${i.status}`);let a=await i.json();if(!Array.isArray(a.data))throw Error(o(`models.unexpectedFormat`));F.value=a.data.map(e=>({label:e.id,value:e.id})),F.value.length>0&&!P.value.model&&(P.value.model=F.value[0].value),f.success(o(`models.foundModels`,{count:F.value.length}))}catch(e){f.error(o(`models.fetchFailed`)+`: `+e.message)}finally{b.value=!1}}async function re(){if(M.value===`preset`&&!N.value){f.warning(o(`models.selectProviderRequired`));return}if(L.value){C.value=!0;return}if(R.value){T.value=!0;return}if(ee.value){J();return}if(!P.value.base_url.trim()){f.warning(o(`models.baseUrlRequired`));return}if(!P.value.api_key.trim()){f.warning(o(`models.apiKeyRequired`));return}if(!P.value.model){f.warning(o(`models.modelRequired`));return}g.value=!0;try{let e=M.value===`preset`?N.value:null,t=P.value.context_length??void 0;await l.addProvider({name:P.value.name.trim(),base_url:P.value.base_url.trim(),api_key:P.value.api_key.trim(),model:P.value.model,context_length:t,providerKey:e}),f.success(o(`models.providerAdded`)),c(`saved`)}catch(e){f.error(e.message)}finally{g.value=!1}}async function K(){C.value=!1,f.success(o(`models.providerAdded`)),c(`saved`)}async function ie(){T.value=!1,f.success(o(`models.providerAdded`)),c(`saved`)}async function q(){D.value=!1,f.success(o(`models.providerAdded`)),c(`saved`)}function ae(e){return e===`env`?o(`models.copilotAddSourceEnv`):e===`gh-cli`?o(`models.copilotAddSourceGhCli`):e===`apps-json`?o(`models.copilotAddSourceAppsJson`):``}async function J(){if(!A.value){A.value=!0;try{let e=await $();if(e.has_token){let t=ae(e.source);m.success({title:o(`models.copilotAddDetectedTitle`),content:t?`${o(`models.copilotAddDetected`)}\n\n${t}`:o(`models.copilotAddDetected`),positiveText:o(`common.add`),negativeText:o(`common.cancel`),onPositiveClick:async()=>{try{await ge(),f.success(o(`models.providerAdded`)),c(`saved`)}catch(e){f.error(e?.message??String(e))}},onNegativeClick:()=>{N.value=null},onClose:()=>{N.value=null}})}else D.value=!0}catch(e){f.error(e?.message??String(e)),N.value=null}finally{A.value=!1}}}function Y(){D.value=!1,N.value=null}function oe(){h.value=!1,setTimeout(()=>c(`close`),200)}return(n,i)=>(p(),B(O(k),{show:h.value,"onUpdate:show":i[11]||=e=>h.value=e,preset:`card`,title:O(o)(`models.addProvider`),style:{width:`min(520px, calc(100vw - 32px))`},"mask-closable":!g.value&&!C.value&&!T.value&&!D.value,onAfterLeave:i[12]||=e=>c(`close`)},{footer:S(()=>[y(`div`,xt,[x(O(z),{onClick:oe},{default:S(()=>[v(j(O(o)(`common.cancel`)),1)]),_:1}),x(O(z),{type:`primary`,loading:g.value,onClick:re},{default:S(()=>[v(j(O(o)(`common.add`)),1)]),_:1},8,[`loading`])])]),default:S(()=>[x(O(e),{"label-placement":`top`},{default:S(()=>[x(O(t),{label:O(o)(`models.providerType`)},{default:S(()=>[y(`div`,yt,[x(O(z),{type:M.value===`preset`?`primary`:`default`,size:`small`,onClick:i[0]||=e=>M.value=`preset`},{default:S(()=>[v(j(O(o)(`models.preset`)),1)]),_:1},8,[`type`]),x(O(z),{type:M.value===`custom`?`primary`:`default`,size:`small`,onClick:i[1]||=e=>M.value=`custom`},{default:S(()=>[v(j(O(o)(`models.custom`)),1)]),_:1},8,[`type`])])]),_:1},8,[`label`]),M.value===`preset`?(p(),B(O(t),{key:0,label:O(o)(`models.selectProvider`),required:``},{default:S(()=>[x(O(d),{value:N.value,"onUpdate:value":i[2]||=e=>N.value=e,options:te.value,placeholder:O(o)(`models.chooseProvider`),filterable:``},null,8,[`value`,`options`,`placeholder`])]),_:1},8,[`label`])):s(``,!0),M.value===`custom`?(p(),B(O(t),{key:1,label:O(o)(`models.name`)},{default:S(()=>[x(O(_),{value:P.value.name,"onUpdate:value":i[3]||=e=>P.value.name=e,placeholder:O(o)(`models.autoGeneratedName`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])):s(``,!0),U.value?(p(),B(O(t),{key:2,label:O(o)(`models.region`)},{default:S(()=>[x(O(pe),{value:W.value,"onUpdate:value":i[4]||=e=>W.value=e},{default:S(()=>[x(O(ue),{value:`intl`},{default:S(()=>[v(j(O(o)(`models.regionIntl`)),1)]),_:1}),x(O(ue),{value:`cn`},{default:S(()=>[v(j(O(o)(`models.regionCn`)),1)]),_:1})]),_:1},8,[`value`])]),_:1},8,[`label`])):s(``,!0),!L.value&&!R.value?(p(),B(O(t),{key:3,label:O(o)(`models.baseUrl`),required:``},{default:S(()=>[x(O(_),{value:P.value.base_url,"onUpdate:value":i[5]||=e=>P.value.base_url=e,placeholder:O(o)(`models.baseUrlPlaceholder`),disabled:M.value===`preset`},null,8,[`value`,`placeholder`,`disabled`])]),_:1},8,[`label`])):s(``,!0),!L.value&&!R.value?(p(),B(O(t),{key:4,label:O(o)(`models.apiKey`),required:``},{default:S(()=>[x(O(_),{value:P.value.api_key,"onUpdate:value":i[6]||=e=>P.value.api_key=e,type:`password`,"show-password-on":`click`,placeholder:O(o)(`models.apiKeyPlaceholder`),autocomplete:`off`},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])):s(``,!0),x(O(t),{label:O(o)(`models.defaultModel`),required:``},{default:S(()=>[y(`div`,bt,[x(O(d),{value:P.value.model,"onUpdate:value":i[7]||=e=>P.value.model=e,options:F.value,filterable:``,tag:``,placeholder:O(o)(`models.selectOrInput`),style:{flex:`1`}},null,8,[`value`,`options`,`placeholder`]),M.value===`custom`||M.value===`preset`&&F.value.length===0?(p(),B(O(z),{key:0,loading:b.value,onClick:G},{default:S(()=>[v(j(O(o)(`common.fetch`)),1)]),_:1},8,[`loading`])):s(``,!0)])]),_:1},8,[`label`]),M.value===`custom`?(p(),B(O(t),{key:5,label:O(o)(`models.contextLength`)},{default:S(()=>[x(O(r),{value:P.value.context_length,"onUpdate:value":i[8]||=e=>P.value.context_length=e,placeholder:O(o)(`models.contextLengthPlaceholder`),min:0,clearable:``,style:{width:`100%`}},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])):s(``,!0)]),_:1}),C.value?(p(),B(Ke,{key:0,onClose:i[9]||=e=>C.value=!1,onSuccess:K})):s(``,!0),T.value?(p(),B(ot,{key:1,onClose:i[10]||=e=>T.value=!1,onSuccess:ie})):s(``,!0),D.value?(p(),B(vt,{key:2,onClose:Y,onSuccess:q})):s(``,!0)]),_:1},8,[`show`,`title`,`mask-closable`]))}}),[[`__scopeId`,`data-v-975eb2e9`]]),Dt={class:`models-view`},Ot={class:`page-header`},kt={class:`header-title`},At={class:`models-content`},jt=A(f({__name:`ModelsView`,setup(e){let{t}=V(),n=Q(),r=a(),i=H(!1);w(async()=>{try{await $()}catch{}n.fetchProviders()});function o(){i.value=!0}function c(){i.value=!1}async function l(){await n.fetchProviders(),r.loadModels(),c()}return(e,r)=>(p(),R(`div`,Dt,[y(`header`,Ot,[y(`h2`,kt,j(O(t)(`models.title`)),1),x(O(z),{type:`primary`,size:`small`,onClick:o},{icon:S(()=>[...r[0]||=[y(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[y(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),y(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),default:S(()=>[v(` `+j(O(t)(`models.addProvider`)),1)]),_:1})]),y(`div`,At,[x(O(Y),{show:O(n).loading&&O(n).providers.length===0},{default:S(()=>[x(Me)]),_:1},8,[`show`])]),i.value?(p(),B(Et,{key:0,onClose:c,onSaved:l})):s(``,!0)]))}}),[[`__scopeId`,`data-v-2fa030eb`]]);export{jt as default}; \ No newline at end of file diff --git a/webui/assets/Popconfirm-ClpYjEYd.js b/webui/assets/Popconfirm-ClpYjEYd.js new file mode 100644 index 0000000000000000000000000000000000000000..42f0a0f06a7f10dfc6991635e3c131bf25f0cbfa --- /dev/null +++ b/webui/assets/Popconfirm-ClpYjEYd.js @@ -0,0 +1,16 @@ +import{$n as e,Dr as t,Fr as n,Kr as r,L as i,Lr as a,Pn as o,R as s,Rr as c,Y as l,cn as u,dn as d,er as f,fn as p,g as m,hn as h,in as g,it as _,k as v,ni as y,nt as b,on as x,pn as S,ri as C,rn as w,st as T,tr as E}from"./index-Cl8-DFW_.js";var D=o(`n-popconfirm`),O={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},k=p(O),A=n({name:`NPopconfirmPanel`,props:O,setup(e){let{localeRef:n}=T(`Popconfirm`),{inlineThemeDisabled:r}=g(),{mergedClsPrefixRef:i,mergedThemeRef:a,props:o}=c(D),s=t(()=>{let{common:{cubicBezierEaseInOut:e},self:{fontSize:t,iconSize:n,iconColor:r}}=a.value;return{"--n-bezier":e,"--n-font-size":t,"--n-icon-size":n,"--n-icon-color":r}}),l=r?w(`popconfirm-panel`,void 0,s,o):void 0;return Object.assign(Object.assign({},T(`Popconfirm`)),{mergedClsPrefix:i,cssVars:r?void 0:s,localizedPositiveText:t(()=>e.positiveText||n.value.positiveText),localizedNegativeText:t(()=>e.negativeText||n.value.negativeText),positiveButtonProps:C(o,`positiveButtonProps`),negativeButtonProps:C(o,`negativeButtonProps`),handlePositiveClick(t){e.onPositiveClick(t)},handleNegativeClick(t){e.onNegativeClick(t)},themeClass:l?.themeClass,onRender:l?.onRender})},render(){var e;let{mergedClsPrefix:t,showIcon:n,$slots:r}=this,i=x(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&a(v,Object.assign({size:`small`,onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&a(v,Object.assign({size:`small`,type:`primary`,onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)==null||e.call(this),a(`div`,{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},u(r.default,e=>n||e?a(`div`,{class:`${t}-popconfirm__body`},n?a(`div`,{class:`${t}-popconfirm__icon`},x(r.icon,()=>[a(b,{clsPrefix:t},{default:()=>a(l,null)})])):null,e):null),i?a(`div`,{class:[`${t}-popconfirm__action`]},i):null)}}),j=f(`popconfirm`,[E(`body`,` + font-size: var(--n-font-size); + display: flex; + align-items: center; + flex-wrap: nowrap; + position: relative; + `,[E(`icon`,` + display: flex; + font-size: var(--n-icon-size); + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + margin: 0 8px 0 0; + `)]),E(`action`,` + display: flex; + justify-content: flex-end; + `,[e(`&:not(:first-child)`,`margin-top: 8px`),f(`button`,[e(`&:not(:last-child)`,`margin-right: 8px;`)])])]),M=n({name:`Popconfirm`,props:Object.assign(Object.assign(Object.assign({},_.props),s),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:`click`},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=g(),n=_(`Popconfirm`,`-popconfirm`,j,m,e,t),i=y(null);function a(t){if(!i.value?.getMergedShow())return;let{onPositiveClick:n,"onUpdate:show":r}=e;Promise.resolve(n?n(t):!0).then(e=>{var t;e!==!1&&((t=i.value)==null||t.setShow(!1),r&&h(r,!1))})}function o(t){if(!i.value?.getMergedShow())return;let{onNegativeClick:n,"onUpdate:show":r}=e;Promise.resolve(n?n(t):!0).then(e=>{var t;e!==!1&&((t=i.value)==null||t.setShow(!1),r&&h(r,!1))})}return r(D,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),{setShow(e){var t;(t=i.value)==null||t.setShow(e)},syncPosition(){var e;(e=i.value)==null||e.syncPosition()},mergedTheme:n,popoverInstRef:i,handlePositiveClick:a,handleNegativeClick:o}},render(){let{$slots:e,$props:t,mergedTheme:n}=this;return a(i,Object.assign({},d(t,k),{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:[`popconfirm`],ref:`popoverInstRef`}),{trigger:e.trigger,default:()=>{let n=S(t,k);return a(A,Object.assign({},n,{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}});export{M as t}; \ No newline at end of file diff --git a/webui/assets/ProfilesView-BKAx9zCB.js b/webui/assets/ProfilesView-BKAx9zCB.js new file mode 100644 index 0000000000000000000000000000000000000000..b96deffadfa2e4e9652d1dc6946ff31d6a3a53c3 --- /dev/null +++ b/webui/assets/ProfilesView-BKAx9zCB.js @@ -0,0 +1 @@ +import{n as e,t}from"./FormItem-DB8yIr9W.js";import{t as n}from"./Upload-DNhu4d4-.js";import{t as r}from"./composables-DggaE5oy.js";import{t as i}from"./Switch-CDXAYhwk.js";import{Ar as a,Dr as o,Fr as s,Gr as c,I as l,N as u,Nr as d,Or as f,Pr as p,Qr as m,Ur as h,ai as g,b as _,c as v,ci as y,jr as b,k as x,kr as S,lr as C,ni as w,oi as T,qr as E,s as D,u as O,wr as k,xr as A,y as j}from"./index-Cl8-DFW_.js";var ee={class:`card-header`},te={class:`profile-name`},ne={class:`card-body`},re={class:`info-row`},ie={class:`info-label`},ae={class:`info-value mono`},oe={class:`info-row`},se={class:`info-label`},M={class:`info-value mono`},N={class:`toggle-text`},P={key:0,class:`card-detail`},F={class:`info-row`},I={class:`info-label`},L={class:`info-value`},R={class:`info-row`},z={class:`info-label`},B={class:`info-value mono detail-path`},V={class:`info-row`},H={class:`info-label`},U={class:`info-value`},W={class:`info-row`},G={class:`info-label`},K={class:`info-value`},ce={class:`info-row`},le={class:`info-label`},ue={class:`info-value`},de={class:`card-actions`},q=v(s({__name:`ProfileCard`,props:{profile:{}},setup(e,{emit:t}){let n=e,{t:i}=C(),s=D(),u=j(),h=r(),_=w(!1),v=w(!1),E=w(!1),A=w(!1),q=w(null),J=o(()=>n.profile.name===`default`);async function Y(){if(_.value){_.value=!1;return}_.value=!0,v.value=!0;try{q.value=await s.fetchProfileDetail(n.profile.name)}finally{v.value=!1}}async function X(){A.value=!0;try{await s.switchProfile(n.profile.name)?window.location.reload():u.error(i(`profiles.switchFailed`))}finally{A.value=!1}}function Z(){h.warning({title:i(`profiles.delete`),content:i(`profiles.deleteConfirm`,{name:n.profile.name}),positiveText:i(`common.delete`),negativeText:i(`common.cancel`),onPositiveClick:async()=>{await s.deleteProfile(n.profile.name)?u.success(i(`profiles.deleteSuccess`)):u.error(i(`profiles.deleteFailed`))}})}async function Q(){E.value=!0;try{await s.exportProfile(n.profile.name)?u.success(i(`profiles.exportSuccess`)):u.error(i(`profiles.exportFailed`))}finally{E.value=!1}}return(t,n)=>(c(),b(`div`,{class:T([`profile-card`,{active:e.profile.active}])},[f(`div`,ee,[f(`h3`,te,y(e.profile.name),1),e.profile.active?(c(),S(g(l),{key:0,size:`tiny`,type:`success`,bordered:!1},{default:m(()=>[d(y(g(i)(`profiles.active`)),1)]),_:1})):a(``,!0)]),f(`div`,ne,[f(`div`,re,[f(`span`,ie,y(g(i)(`profiles.model`)),1),f(`code`,ae,y(e.profile.model),1)]),f(`div`,oe,[f(`span`,se,y(g(i)(`profiles.gateway`)),1),f(`code`,M,y(e.profile.gateway),1)])]),f(`div`,{class:`card-detail-toggle`,onClick:Y},[(c(),b(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:T([`toggle-icon`,{expanded:_.value}])},[...n[0]||=[f(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2)),f(`span`,N,y(_.value?g(i)(`common.collapse`):g(i)(`common.expand`)),1)]),_.value?(c(),b(`div`,P,[p(g(O),{show:v.value,size:`small`},{default:m(()=>[q.value?(c(),b(k,{key:0},[f(`div`,F,[f(`span`,I,y(g(i)(`profiles.provider`)),1),f(`span`,L,y(q.value.provider),1)]),f(`div`,R,[f(`span`,z,y(g(i)(`profiles.path`)),1),f(`code`,B,y(q.value.path),1)]),f(`div`,V,[f(`span`,H,y(g(i)(`profiles.skills`)),1),f(`span`,U,y(q.value.skills),1)]),f(`div`,W,[f(`span`,G,y(g(i)(`profiles.hasEnv`)),1),f(`span`,K,y(q.value.hasEnv?`Yes`:`No`),1)]),f(`div`,ce,[f(`span`,le,y(g(i)(`profiles.hasSoulMd`)),1),f(`span`,ue,y(q.value.hasSoulMd?`Yes`:`No`),1)])],64)):a(``,!0)]),_:1},8,[`show`])])):a(``,!0),f(`div`,de,[e.profile.active?a(``,!0):(c(),S(g(x),{key:0,size:`tiny`,loading:A.value,quaternary:``,type:`primary`,onClick:X},{default:m(()=>[d(y(g(i)(`profiles.switchTo`)),1)]),_:1},8,[`loading`])),p(g(x),{size:`tiny`,quaternary:``,type:`error`,disabled:J.value||e.profile.active,onClick:Z},{default:m(()=>[d(y(g(i)(`common.delete`)),1)]),_:1},8,[`disabled`]),p(g(x),{size:`tiny`,quaternary:``,loading:E.value,onClick:Q},{default:m(()=>[d(y(g(i)(`profiles.export`)),1)]),_:1},8,[`loading`])])],2))}}),[[`__scopeId`,`data-v-ee1f1fe2`]]),J={key:0,class:`empty-state`},Y={key:1,class:`profiles-grid`},X=v(s({__name:`ProfilesPanel`,emits:[`rename`],setup(e){let{t}=C(),n=D();return(e,r)=>g(n).profiles.length===0?(c(),b(`div`,J,[r[1]||=f(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,class:`empty-icon`},[f(`path`,{d:`M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2`}),f(`circle`,{cx:`12`,cy:`7`,r:`4`})],-1),f(`p`,null,y(g(t)(`profiles.noProfiles`)),1)])):(c(),b(`div`,Y,[(c(!0),b(k,null,E(g(n).profiles,t=>(c(),S(q,{key:t.name,profile:t,onRename:r[0]||=t=>e.$emit(`rename`,t)},null,8,[`profile`]))),128))]))}}),[[`__scopeId`,`data-v-51e73d5a`]]),Z={class:`modal-footer`},Q=v(s({__name:`ProfileCreateModal`,emits:[`close`,`saved`],setup(n,{emit:r}){let a=r,{t:o}=C(),s=D(),l=j(),h=w(!0),v=w(!1),b=w(``),T=w(!1);async function E(){if(!b.value.trim()){l.warning(o(`profiles.namePlaceholder`));return}v.value=!0;try{await s.createProfile(b.value.trim(),T.value)?(l.success(o(`profiles.createSuccess`,{name:b.value.trim()})),a(`saved`)):l.error(o(`profiles.createFailed`))}finally{v.value=!1}}function O(){h.value=!1,setTimeout(()=>a(`close`),200)}return(n,r)=>(c(),S(g(_),{show:h.value,"onUpdate:show":r[2]||=e=>h.value=e,preset:`card`,title:g(o)(`profiles.create`),style:{width:`min(420px, calc(100vw - 32px))`},"mask-closable":!v.value,onAfterLeave:r[3]||=e=>a(`close`)},{footer:m(()=>[f(`div`,Z,[p(g(x),{onClick:O},{default:m(()=>[d(y(g(o)(`common.cancel`)),1)]),_:1}),p(g(x),{type:`primary`,loading:v.value,onClick:E},{default:m(()=>[d(y(g(o)(`common.create`)),1)]),_:1},8,[`loading`])])]),default:m(()=>[p(g(e),{"label-placement":`top`},{default:m(()=>[p(g(t),{label:g(o)(`profiles.name`),required:``},{default:m(()=>[p(g(u),{value:b.value,placeholder:g(o)(`profiles.namePlaceholder`),onInput:r[0]||=e=>b.value=e.replace(/[^a-zA-Z0-9_-]/g,``),onKeyup:A(E,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),p(g(t),{label:g(o)(`profiles.cloneFromCurrent`)},{default:m(()=>[p(g(i),{value:T.value,"onUpdate:value":r[1]||=e=>T.value=e},null,8,[`value`])]),_:1},8,[`label`])]),_:1})]),_:1},8,[`show`,`title`,`mask-closable`]))}}),[[`__scopeId`,`data-v-fb1271ea`]]),fe={class:`modal-footer`},pe=v(s({__name:`ProfileRenameModal`,props:{profileName:{}},emits:[`close`,`saved`],setup(n,{emit:r}){let i=n,a=r,{t:o}=C(),s=D(),l=j(),h=w(!0),v=w(!1),b=w(``);async function T(){if(!b.value.trim()){l.warning(o(`profiles.newNamePlaceholder`));return}v.value=!0;try{await s.renameProfile(i.profileName,b.value.trim())?(l.success(o(`profiles.renameSuccess`)),a(`saved`)):l.error(o(`profiles.renameFailed`))}finally{v.value=!1}}function E(){h.value=!1,setTimeout(()=>a(`close`),200)}return(n,r)=>(c(),S(g(_),{show:h.value,"onUpdate:show":r[1]||=e=>h.value=e,preset:`card`,title:g(o)(`profiles.rename`),style:{width:`min(420px, calc(100vw - 32px))`},"mask-closable":!v.value,onAfterLeave:r[2]||=e=>a(`close`)},{footer:m(()=>[f(`div`,fe,[p(g(x),{onClick:E},{default:m(()=>[d(y(g(o)(`common.cancel`)),1)]),_:1}),p(g(x),{type:`primary`,loading:v.value,onClick:T},{default:m(()=>[d(y(g(o)(`common.confirm`)),1)]),_:1},8,[`loading`])])]),default:m(()=>[p(g(e),{"label-placement":`top`},{default:m(()=>[p(g(t),{label:g(o)(`profiles.newName`),required:``},{default:m(()=>[p(g(u),{value:b.value,"onUpdate:value":r[0]||=e=>b.value=e,placeholder:g(o)(`profiles.newNamePlaceholder`),onKeyup:A(T,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])]),_:1})]),_:1},8,[`show`,`title`,`mask-closable`]))}}),[[`__scopeId`,`data-v-e31a23a9`]]),me={class:`modal-footer`},he=v(s({__name:`ProfileImportModal`,emits:[`close`,`saved`],setup(e,{emit:t}){let r=t,{t:i}=C(),a=D(),o=j(),s=w(!0),l=w(!1),u=w([]),h=[`.tar.gz`,`.tgz`,`.gz`,`.zip`];function v({file:e}){let t=e.name?.toLowerCase()||``;return h.some(e=>t.endsWith(e))?!0:(o.warning(i(`profiles.importInvalidFile`)),!1)}async function b(){if(!u.value.length){o.warning(i(`profiles.importSelectFile`));return}l.value=!0;try{let e=u.value[0].file;if(!e){o.error(i(`profiles.importFailed`));return}await a.importProfile(e)?(o.success(i(`profiles.importSuccess`)),r(`saved`)):o.error(i(`profiles.importFailed`))}finally{l.value=!1}}function T(){s.value=!1,setTimeout(()=>r(`close`),200)}return(e,t)=>(c(),S(g(_),{show:s.value,"onUpdate:show":t[1]||=e=>s.value=e,preset:`card`,title:g(i)(`profiles.import`),style:{width:`min(420px, calc(100vw - 32px))`},"mask-closable":!l.value,onAfterLeave:t[2]||=e=>r(`close`)},{footer:m(()=>[f(`div`,me,[p(g(x),{onClick:T},{default:m(()=>[d(y(g(i)(`common.cancel`)),1)]),_:1}),p(g(x),{type:`primary`,loading:l.value,disabled:!u.value.length,onClick:b},{default:m(()=>[d(y(g(i)(`common.confirm`)),1)]),_:1},8,[`loading`,`disabled`])])]),default:m(()=>[p(g(n),{"file-list":u.value,"onUpdate:fileList":t[0]||=e=>u.value=e,max:1,accept:h.join(`,`),disabled:l.value,onBeforeUpload:v},{default:m(()=>[p(g(x),null,{default:m(()=>[d(y(g(i)(`profiles.importSelectFile`)),1)]),_:1})]),_:1},8,[`file-list`,`accept`,`disabled`])]),_:1},8,[`show`,`title`,`mask-closable`]))}}),[[`__scopeId`,`data-v-accddacf`]]),ge={class:`profiles-view`},$={class:`page-header`},_e={class:`header-title`},ve={class:`header-actions`},ye={class:`profiles-content`},be=v(s({__name:`ProfilesView`,setup(e){let{t}=C(),n=D(),r=w(!1),i=w(!1),o=w(null);h(()=>{n.fetchProfiles()});function s(){r.value=!1}function l(){o.value=null}function u(){i.value=!1}return(e,h)=>(c(),b(`div`,ge,[f(`header`,$,[f(`h2`,_e,y(g(t)(`profiles.title`)),1),f(`div`,ve,[p(g(x),{size:`small`,onClick:h[0]||=e=>i.value=!0},{icon:m(()=>[...h[6]||=[f(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[f(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),f(`polyline`,{points:`17 8 12 3 7 8`}),f(`line`,{x1:`12`,y1:`3`,x2:`12`,y2:`15`})],-1)]]),default:m(()=>[d(` `+y(g(t)(`profiles.import`)),1)]),_:1}),p(g(x),{type:`primary`,size:`small`,onClick:h[1]||=e=>r.value=!0},{icon:m(()=>[...h[7]||=[f(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[f(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),f(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),default:m(()=>[d(` `+y(g(t)(`profiles.create`)),1)]),_:1})])]),f(`div`,ye,[p(g(O),{show:g(n).loading&&g(n).profiles.length===0},{default:m(()=>[p(X,{onRename:h[2]||=e=>o.value=e})]),_:1},8,[`show`])]),r.value?(c(),S(Q,{key:0,onClose:h[3]||=e=>r.value=!1,onSaved:s})):a(``,!0),o.value?(c(),S(pe,{key:1,"profile-name":o.value,onClose:h[4]||=e=>o.value=null,onSaved:l},null,8,[`profile-name`])):a(``,!0),i.value?(c(),S(he,{key:2,onClose:h[5]||=e=>i.value=!1,onSaved:u})):a(``,!0)]))}}),[[`__scopeId`,`data-v-fcdc8d6b`]]);export{be as default}; \ No newline at end of file diff --git a/webui/assets/ProfilesView-Bzgt-TSp.css b/webui/assets/ProfilesView-Bzgt-TSp.css new file mode 100644 index 0000000000000000000000000000000000000000..4793d4aea4a86fb5a36dc20a404fdfb431d3e785 --- /dev/null +++ b/webui/assets/ProfilesView-Bzgt-TSp.css @@ -0,0 +1 @@ +[data-v-ee1f1fe2]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-ee1f1fe2]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.profile-card[data-v-ee1f1fe2]{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;padding:16px;transition:border-color .15s}.profile-card[data-v-ee1f1fe2]:hover{border-color:rgba(var(--accent-primary-rgb), .3)}.profile-card.active[data-v-ee1f1fe2]{border-color:rgba(var(--success-rgb), .4)}.card-header[data-v-ee1f1fe2]{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.profile-name[data-v-ee1f1fe2]{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;max-width:70%;font-size:15px;font-weight:600;overflow:hidden}.card-body[data-v-ee1f1fe2]{flex-direction:column;gap:6px;margin-bottom:8px;display:flex}.card-detail-toggle[data-v-ee1f1fe2]{cursor:pointer;color:var(--text-muted);-webkit-user-select:none;user-select:none;align-items:center;gap:4px;padding:6px 0;font-size:12px;display:flex}.card-detail-toggle[data-v-ee1f1fe2]:hover{color:var(--text-secondary)}.toggle-icon[data-v-ee1f1fe2]{transition:transform .2s}.toggle-icon.expanded[data-v-ee1f1fe2]{transform:rotate(180deg)}.card-detail[data-v-ee1f1fe2]{border-top:1px solid var(--border-light);margin-bottom:8px;padding:8px 0}.info-row[data-v-ee1f1fe2]{justify-content:space-between;align-items:center;padding:2px 0;display:flex}.info-label[data-v-ee1f1fe2]{color:var(--text-muted);flex-shrink:0;margin-right:12px;font-size:12px}.info-value[data-v-ee1f1fe2]{color:var(--text-secondary);text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.mono[data-v-ee1f1fe2]{font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:12px}.detail-path[data-v-ee1f1fe2]{max-width:260px}.card-actions[data-v-ee1f1fe2]{border-top:1px solid var(--border-light);flex-wrap:wrap;gap:8px;padding-top:10px;display:flex}[data-v-51e73d5a]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-51e73d5a]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.empty-state[data-v-51e73d5a]{height:100%;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex}.empty-state .empty-icon[data-v-51e73d5a]{opacity:.3}.empty-state p[data-v-51e73d5a]{font-size:14px}.profiles-grid[data-v-51e73d5a]{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:14px;display:grid}.modal-footer[data-v-fb1271ea],.modal-footer[data-v-e31a23a9],.modal-footer[data-v-accddacf]{justify-content:flex-end;gap:8px;display:flex}[data-v-fcdc8d6b]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-fcdc8d6b]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.profiles-view[data-v-fcdc8d6b]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.page-header[data-v-fcdc8d6b]{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.header-title[data-v-fcdc8d6b]{color:var(--text-primary);font-size:16px;font-weight:600}.header-actions[data-v-fcdc8d6b]{gap:8px;display:flex}.profiles-content[data-v-fcdc8d6b]{flex:1;padding:20px;overflow-y:auto} diff --git a/webui/assets/SettingRow-BACRFGe8.js b/webui/assets/SettingRow-BACRFGe8.js new file mode 100644 index 0000000000000000000000000000000000000000..6442fd0521c76c59613f59f316698da4cbd794cc --- /dev/null +++ b/webui/assets/SettingRow-BACRFGe8.js @@ -0,0 +1 @@ +import{Ar as e,Fr as t,Gr as n,Jr as r,Or as i,c as a,ci as o,jr as s}from"./index-Cl8-DFW_.js";var c={class:`setting-row`},l={class:`setting-info`},u={class:`setting-label`},d={key:0,class:`setting-hint`},f={class:`setting-control`},p=a(t({__name:`SettingRow`,props:{label:{},hint:{}},setup(t){return(a,p)=>(n(),s(`div`,c,[i(`div`,l,[i(`label`,u,o(t.label),1),t.hint?(n(),s(`p`,d,o(t.hint),1)):e(``,!0)]),i(`div`,f,[r(a.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-b81640b4`]]);export{p as t}; \ No newline at end of file diff --git a/webui/assets/SettingRow-BOmZezg0.css b/webui/assets/SettingRow-BOmZezg0.css new file mode 100644 index 0000000000000000000000000000000000000000..6fc5dd960f48a1a5080e5ec421cedb21dd678d0f --- /dev/null +++ b/webui/assets/SettingRow-BOmZezg0.css @@ -0,0 +1 @@ +[data-v-b81640b4]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-b81640b4]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.setting-row[data-v-b81640b4]{border-bottom:1px solid var(--border-light);justify-content:space-between;align-items:center;padding:10px 0;display:flex}.setting-row[data-v-b81640b4]:last-child{border-bottom:none}.setting-info[data-v-b81640b4]{flex:1;margin-right:16px}.setting-label[data-v-b81640b4]{color:var(--text-primary);font-size:13px;display:block}.setting-hint[data-v-b81640b4]{color:var(--text-muted);margin-top:2px;font-size:12px}.setting-control[data-v-b81640b4]{flex-shrink:0}@media (width<=768px){.setting-row[data-v-b81640b4]{flex-direction:column;align-items:flex-start;gap:8px}.setting-info[data-v-b81640b4]{margin-right:0}.setting-control[data-v-b81640b4]{width:100%}} diff --git a/webui/assets/SettingsView-CA5ncO8e.css b/webui/assets/SettingsView-CA5ncO8e.css new file mode 100644 index 0000000000000000000000000000000000000000..b179456ef5f9daaf51536f17d0e5188f5625109b --- /dev/null +++ b/webui/assets/SettingsView-CA5ncO8e.css @@ -0,0 +1 @@ +[data-v-e737ef30]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-e737ef30]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.settings-section[data-v-e737ef30]{margin-top:16px}[data-v-1f96245d]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-1f96245d]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.settings-section[data-v-1f96245d]{margin-top:16px}[data-v-0c8e2aa7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-0c8e2aa7]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.settings-section[data-v-0c8e2aa7]{margin-top:16px}[data-v-3514aeb7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-3514aeb7]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.settings-section[data-v-3514aeb7]{margin-top:16px}[data-v-43145f27]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-43145f27]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.settings-section[data-v-43145f27]{margin-top:16px}[data-v-c28727b7]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-c28727b7]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.settings-section[data-v-c28727b7]{margin-top:16px}.empty-hint[data-v-c28727b7]{padding:40px 0}.provider-section[data-v-c28727b7]{border:1px solid var(--border-color);background:var(--bg-card);border-radius:10px;margin-bottom:14px;padding:16px}.provider-header[data-v-c28727b7]{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.provider-name[data-v-c28727b7]{color:var(--text-primary);margin:0;font-size:14px;font-weight:600}.type-badge[data-v-c28727b7]{border-radius:10px;padding:2px 8px;font-size:11px;font-weight:500}.type-badge.builtin[data-v-c28727b7]{background:rgba(var(--accent-primary-rgb), .12);color:var(--accent-primary)}.type-badge.custom[data-v-c28727b7]{background:rgba(var(--success-rgb), .12);color:var(--success)}.provider-fields[data-v-c28727b7]{flex-direction:column;gap:10px;display:flex}.field-row[data-v-c28727b7]{align-items:center;gap:10px;display:flex}.field-row .n-input[data-v-c28727b7]{flex:1}[data-v-79bc4876]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-79bc4876]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.account-settings[data-v-79bc4876]{padding:8px 0}.section-desc[data-v-79bc4876]{color:var(--text-muted);margin:0 0 20px;font-size:13px;line-height:1.6}.action-row[data-v-79bc4876]{justify-content:space-between;align-items:center;gap:16px;display:flex}.action-label[data-v-79bc4876]{color:var(--text-secondary);font-size:14px}.action-buttons[data-v-79bc4876]{flex-shrink:0;gap:8px;display:flex}[data-v-6bfbe8eb]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-6bfbe8eb]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.settings-view[data-v-6bfbe8eb]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.settings-content[data-v-6bfbe8eb]{flex:1;padding:20px;overflow-y:auto} diff --git a/webui/assets/SettingsView-fiDPfpVZ.js b/webui/assets/SettingsView-fiDPfpVZ.js new file mode 100644 index 0000000000000000000000000000000000000000..85ca24d9e6f8641b61cc7b5da79ccb44c5421de7 --- /dev/null +++ b/webui/assets/SettingsView-fiDPfpVZ.js @@ -0,0 +1,352 @@ +import{n as e,t}from"./FormItem-DB8yIr9W.js";import{S as n}from"./_baseFor-tDInUmcl.js";import{n as r,t as i}from"./now-CeSGHkSX.js";import{t as a}from"./Add-D070kowG.js";import{t as o}from"./InputNumber-P0oq6NtF.js";import{t as s}from"./Switch-CDXAYhwk.js";import{t as c}from"./Popconfirm-ClpYjEYd.js";import{s as l}from"./app-IytcAxLh.js";import{$n as u,$r as d,Ar as f,Br as p,Dr as m,E as h,En as g,Er as _,Fn as v,Fr as y,Gr as b,Jn as x,Kr as S,Ln as C,Lr as w,N as T,Nr as E,Or as D,Pn as ee,Pr as O,Qr as k,Rn as te,Rr as A,Tn as j,Ur as M,V as N,Xn as ne,Xr as re,Zr as ie,_n as ae,ai as P,b as oe,br as se,c as F,ci as I,cn as ce,dn as le,er as L,hn as R,in as ue,ir as z,it as de,jr as B,k as V,l as fe,lr as H,mn as pe,ni as U,nr as W,nt as me,oi as he,p as ge,q as _e,qr as G,ri as K,rn as ve,rr as ye,tr as q,u as be,un as xe,vr as Se,wn as Ce,wr as we,xn as J,xr as Y,y as X,zr as Te}from"./index-Cl8-DFW_.js";import{a as Ee,n as De,o as Oe,r as ke,t as Ae}from"./auth-B-i69M-u.js";import{t as Z}from"./settings-Cxn8gJl1.js";import{t as Q}from"./SettingRow-BACRFGe8.js";import{t as je}from"./session-browser-prefs-D7bVorU0.js";import{t as Me}from"./models-Jqyv3Qjo.js";var Ne=Ce(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[Ce(`&::-webkit-scrollbar`,{width:0,height:0})]),Pe=y({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=U(null);function t(e){!(e.currentTarget.offsetWidth=t||n<0||m&&r>=c}function b(){var e=i();if(y(e))return x(e);u=setTimeout(b,v(e))}function x(e){return u=void 0,h&&o?g(e):(o=s=void 0,l)}function S(){u!==void 0&&clearTimeout(u),f=0,o=d=s=u=void 0}function C(){return u===void 0?l:x(i())}function w(){var e=i(),n=y(e);if(o=arguments,s=this,d=e,n){if(u===void 0)return _(d);if(m)return clearTimeout(u),u=setTimeout(b,t),g(d)}return u===void 0&&(u=setTimeout(b,t)),l}return w.cancel=S,w.flush=C,w}var ze=`Expected a function`;function Be(e,t,r){var i=!0,a=!0;if(typeof e!=`function`)throw TypeError(ze);return n(r)&&(i=`leading`in r?!!r.leading:i,a=`trailing`in r?!!r.trailing:a),Re(e,t,{leading:i,maxWait:t,trailing:a})}var Ve=ee(`n-tabs`),He={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:`if`},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},$=y({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:He,slots:Object,setup(e){let t=A(Ve,null);return t||ae(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return w(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Ue=y({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},le(He,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:i,tabStyleRef:a,addTabStyleRef:o,tabClassRef:s,addTabClassRef:c,tabChangeIdRef:l,onBeforeLeaveRef:u,triggerRef:d,handleAdd:f,activateTab:p,handleClose:h}=A(Ve);return{trigger:d,mergedClosable:m(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?i.value:t}),style:a,addStyle:o,tabClass:s,addTabClass:c,clsPrefix:t,value:n,type:r,handleClose(t){t.stopPropagation(),!e.disabled&&h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}let{name:t}=e,r=++l.id;if(t!==n.value){let{value:i}=u;i?Promise.resolve(i(e.name,n.value)).then(e=>{e&&l.id===r&&p(t)}):p(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:i,tab:o,value:s,mergedClosable:c,trigger:l,$slots:{default:u}}=this,d=i??o;return w(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?w(`div`,{class:`${t}-tabs-tab-pad`}):null,w(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Te({class:[`${t}-tabs-tab`,s===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,c&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:l===`click`?this.activateTab:void 0,onMouseenter:l===`hover`?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),w(`span`,{class:`${t}-tabs-tab__label`},e?w(we,null,w(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),w(me,{clsPrefix:t},{default:()=>w(a,null)})):u?u():typeof d==`object`?d:xe(d??n)),c&&this.type===`card`?w(_e,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),We=L(`tabs`,` + box-sizing: border-box; + width: 100%; + display: flex; + flex-direction: column; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); +`,[W(`segment-type`,[L(`tabs-rail`,[u(`&.transition-disabled`,[L(`tabs-capsule`,` + transition: none; + `)])])]),W(`top`,[L(`tab-pane`,` + padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); + `)]),W(`left`,[L(`tab-pane`,` + padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); + `)]),W(`left, right`,` + flex-direction: row; + `,[L(`tabs-bar`,` + width: 2px; + right: 0; + transition: + top .2s var(--n-bezier), + max-height .2s var(--n-bezier), + background-color .3s var(--n-bezier); + `),L(`tabs-tab`,` + padding: var(--n-tab-padding-vertical); + `)]),W(`right`,` + flex-direction: row-reverse; + `,[L(`tab-pane`,` + padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); + `),L(`tabs-bar`,` + left: 0; + `)]),W(`bottom`,` + flex-direction: column-reverse; + justify-content: flex-end; + `,[L(`tab-pane`,` + padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); + `),L(`tabs-bar`,` + top: 0; + `)]),L(`tabs-rail`,` + position: relative; + padding: 3px; + border-radius: var(--n-tab-border-radius); + width: 100%; + background-color: var(--n-color-segment); + transition: background-color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[L(`tabs-capsule`,` + border-radius: var(--n-tab-border-radius); + position: absolute; + pointer-events: none; + background-color: var(--n-tab-color-segment); + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); + transition: transform 0.3s var(--n-bezier); + `),L(`tabs-tab-wrapper`,` + flex-basis: 0; + flex-grow: 1; + display: flex; + align-items: center; + justify-content: center; + `,[L(`tabs-tab`,` + overflow: hidden; + border-radius: var(--n-tab-border-radius); + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `,[W(`active`,` + font-weight: var(--n-font-weight-strong); + color: var(--n-tab-text-color-active); + `),u(`&:hover`,` + color: var(--n-tab-text-color-hover); + `)])])]),W(`flex`,[L(`tabs-nav`,` + width: 100%; + position: relative; + `,[L(`tabs-wrapper`,` + width: 100%; + `,[L(`tabs-tab`,` + margin-right: 0; + `)])])]),L(`tabs-nav`,` + box-sizing: border-box; + line-height: 1.5; + display: flex; + transition: border-color .3s var(--n-bezier); + `,[q(`prefix, suffix`,` + display: flex; + align-items: center; + `),q(`prefix`,`padding-right: 16px;`),q(`suffix`,`padding-left: 16px;`)]),W(`top, bottom`,[u(`>`,[L(`tabs-nav`,[L(`tabs-nav-scroll-wrapper`,[u(`&::before`,` + top: 0; + bottom: 0; + left: 0; + width: 20px; + `),u(`&::after`,` + top: 0; + bottom: 0; + right: 0; + width: 20px; + `),W(`shadow-start`,[u(`&::before`,` + box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); + `)]),W(`shadow-end`,[u(`&::after`,` + box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); + `)])])])])]),W(`left, right`,[L(`tabs-nav-scroll-content`,` + flex-direction: column; + `),u(`>`,[L(`tabs-nav`,[L(`tabs-nav-scroll-wrapper`,[u(`&::before`,` + top: 0; + left: 0; + right: 0; + height: 20px; + `),u(`&::after`,` + bottom: 0; + left: 0; + right: 0; + height: 20px; + `),W(`shadow-start`,[u(`&::before`,` + box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); + `)]),W(`shadow-end`,[u(`&::after`,` + box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); + `)])])])])]),L(`tabs-nav-scroll-wrapper`,` + flex: 1; + position: relative; + overflow: hidden; + `,[L(`tabs-nav-y-scroll`,` + height: 100%; + width: 100%; + overflow-y: auto; + scrollbar-width: none; + `,[u(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,` + width: 0; + height: 0; + display: none; + `)]),u(`&::before, &::after`,` + transition: box-shadow .3s var(--n-bezier); + pointer-events: none; + content: ""; + position: absolute; + z-index: 1; + `)]),L(`tabs-nav-scroll-content`,` + display: flex; + position: relative; + min-width: 100%; + min-height: 100%; + width: fit-content; + box-sizing: border-box; + `),L(`tabs-wrapper`,` + display: inline-flex; + flex-wrap: nowrap; + position: relative; + `),L(`tabs-tab-wrapper`,` + display: flex; + flex-wrap: nowrap; + flex-shrink: 0; + flex-grow: 0; + `),L(`tabs-tab`,` + cursor: pointer; + white-space: nowrap; + flex-wrap: nowrap; + display: inline-flex; + align-items: center; + color: var(--n-tab-text-color); + font-size: var(--n-tab-font-size); + background-clip: padding-box; + padding: var(--n-tab-padding); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[W(`disabled`,{cursor:`not-allowed`}),q(`close`,` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),q(`label`,` + display: flex; + align-items: center; + z-index: 1; + `)]),L(`tabs-bar`,` + position: absolute; + bottom: 0; + height: 2px; + border-radius: 1px; + background-color: var(--n-bar-color); + transition: + left .2s var(--n-bezier), + max-width .2s var(--n-bezier), + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[u(`&.transition-disabled`,` + transition: none; + `),W(`disabled`,` + background-color: var(--n-tab-text-color-disabled) + `)]),L(`tabs-pane-wrapper`,` + position: relative; + overflow: hidden; + transition: max-height .2s var(--n-bezier); + `),L(`tab-pane`,` + color: var(--n-pane-text-color); + width: 100%; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .2s var(--n-bezier); + left: 0; + right: 0; + top: 0; + `,[u(`&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active`,` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .2s var(--n-bezier), + opacity .2s var(--n-bezier); + `),u(`&.next-transition-leave-active, &.prev-transition-leave-active`,` + position: absolute; + `),u(`&.next-transition-enter-from, &.prev-transition-leave-to`,` + transform: translateX(32px); + opacity: 0; + `),u(`&.next-transition-leave-to, &.prev-transition-enter-from`,` + transform: translateX(-32px); + opacity: 0; + `),u(`&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to`,` + transform: translateX(0); + opacity: 1; + `)]),L(`tabs-tab-pad`,` + box-sizing: border-box; + width: var(--n-tab-gap); + flex-grow: 0; + flex-shrink: 0; + `),W(`line-type, bar-type`,[L(`tabs-tab`,` + font-weight: var(--n-tab-font-weight); + box-sizing: border-box; + vertical-align: bottom; + `,[u(`&:hover`,{color:`var(--n-tab-text-color-hover)`}),W(`active`,` + color: var(--n-tab-text-color-active); + font-weight: var(--n-tab-font-weight-active); + `),W(`disabled`,{color:`var(--n-tab-text-color-disabled)`})])]),L(`tabs-nav`,[W(`line-type`,[W(`top`,[q(`prefix, suffix`,` + border-bottom: 1px solid var(--n-tab-border-color); + `),L(`tabs-nav-scroll-content`,` + border-bottom: 1px solid var(--n-tab-border-color); + `),L(`tabs-bar`,` + bottom: -1px; + `)]),W(`left`,[q(`prefix, suffix`,` + border-right: 1px solid var(--n-tab-border-color); + `),L(`tabs-nav-scroll-content`,` + border-right: 1px solid var(--n-tab-border-color); + `),L(`tabs-bar`,` + right: -1px; + `)]),W(`right`,[q(`prefix, suffix`,` + border-left: 1px solid var(--n-tab-border-color); + `),L(`tabs-nav-scroll-content`,` + border-left: 1px solid var(--n-tab-border-color); + `),L(`tabs-bar`,` + left: -1px; + `)]),W(`bottom`,[q(`prefix, suffix`,` + border-top: 1px solid var(--n-tab-border-color); + `),L(`tabs-nav-scroll-content`,` + border-top: 1px solid var(--n-tab-border-color); + `),L(`tabs-bar`,` + top: -1px; + `)]),q(`prefix, suffix`,` + transition: border-color .3s var(--n-bezier); + `),L(`tabs-nav-scroll-content`,` + transition: border-color .3s var(--n-bezier); + `),L(`tabs-bar`,` + border-radius: 0; + `)]),W(`card-type`,[q(`prefix, suffix`,` + transition: border-color .3s var(--n-bezier); + `),L(`tabs-pad`,` + flex-grow: 1; + transition: border-color .3s var(--n-bezier); + `),L(`tabs-tab-pad`,` + transition: border-color .3s var(--n-bezier); + `),L(`tabs-tab`,` + font-weight: var(--n-tab-font-weight); + border: 1px solid var(--n-tab-border-color); + background-color: var(--n-tab-color); + box-sizing: border-box; + position: relative; + vertical-align: bottom; + display: flex; + justify-content: space-between; + font-size: var(--n-tab-font-size); + color: var(--n-tab-text-color); + `,[W(`addable`,` + padding-left: 8px; + padding-right: 8px; + font-size: 16px; + justify-content: center; + `,[q(`height-placeholder`,` + width: 0; + font-size: var(--n-tab-font-size); + `),ye(`disabled`,[u(`&:hover`,` + color: var(--n-tab-text-color-hover); + `)])]),W(`closable`,`padding-right: 8px;`),W(`active`,` + background-color: #0000; + font-weight: var(--n-tab-font-weight-active); + color: var(--n-tab-text-color-active); + `),W(`disabled`,`color: var(--n-tab-text-color-disabled);`)])]),W(`left, right`,` + flex-direction: column; + `,[q(`prefix, suffix`,` + padding: var(--n-tab-padding-vertical); + `),L(`tabs-wrapper`,` + flex-direction: column; + `),L(`tabs-tab-wrapper`,` + flex-direction: column; + `,[L(`tabs-tab-pad`,` + height: var(--n-tab-gap-vertical); + width: 100%; + `)])]),W(`top`,[W(`card-type`,[L(`tabs-scroll-padding`,`border-bottom: 1px solid var(--n-tab-border-color);`),q(`prefix, suffix`,` + border-bottom: 1px solid var(--n-tab-border-color); + `),L(`tabs-tab`,` + border-top-left-radius: var(--n-tab-border-radius); + border-top-right-radius: var(--n-tab-border-radius); + `,[W(`active`,` + border-bottom: 1px solid #0000; + `)]),L(`tabs-tab-pad`,` + border-bottom: 1px solid var(--n-tab-border-color); + `),L(`tabs-pad`,` + border-bottom: 1px solid var(--n-tab-border-color); + `)])]),W(`left`,[W(`card-type`,[L(`tabs-scroll-padding`,`border-right: 1px solid var(--n-tab-border-color);`),q(`prefix, suffix`,` + border-right: 1px solid var(--n-tab-border-color); + `),L(`tabs-tab`,` + border-top-left-radius: var(--n-tab-border-radius); + border-bottom-left-radius: var(--n-tab-border-radius); + `,[W(`active`,` + border-right: 1px solid #0000; + `)]),L(`tabs-tab-pad`,` + border-right: 1px solid var(--n-tab-border-color); + `),L(`tabs-pad`,` + border-right: 1px solid var(--n-tab-border-color); + `)])]),W(`right`,[W(`card-type`,[L(`tabs-scroll-padding`,`border-left: 1px solid var(--n-tab-border-color);`),q(`prefix, suffix`,` + border-left: 1px solid var(--n-tab-border-color); + `),L(`tabs-tab`,` + border-top-right-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[W(`active`,` + border-left: 1px solid #0000; + `)]),L(`tabs-tab-pad`,` + border-left: 1px solid var(--n-tab-border-color); + `),L(`tabs-pad`,` + border-left: 1px solid var(--n-tab-border-color); + `)])]),W(`bottom`,[W(`card-type`,[L(`tabs-scroll-padding`,`border-top: 1px solid var(--n-tab-border-color);`),q(`prefix, suffix`,` + border-top: 1px solid var(--n-tab-border-color); + `),L(`tabs-tab`,` + border-bottom-left-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[W(`active`,` + border-top: 1px solid #0000; + `)]),L(`tabs-tab-pad`,` + border-top: 1px solid var(--n-tab-border-color); + `),L(`tabs-pad`,` + border-top: 1px solid var(--n-tab-border-color); + `)])])])]),Ge=Be,Ke=y({name:`Tabs`,props:Object.assign(Object.assign({},de.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:`click`},type:{type:String,default:`bar`},closable:Boolean,justifyContent:String,size:String,placement:{type:String,default:`top`},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedComponentPropsRef:i}=ue(e),a=de(`Tabs`,`-tabs`,We,ge,e,n),o=U(null),s=U(null),c=U(null),l=U(null),u=U(null),d=U(null),f=U(!0),h=U(!0),g=v(e,[`labelSize`,`size`]),_=m(()=>g.value?g.value:i?.value?.Tabs?.size||`medium`),y=v(e,[`activeName`,`value`]),b=U(y.value??e.defaultValue??(t.default?pe(t.default())[0]?.props?.name:null)),w=C(y,b),T={id:0},E=m(()=>{if(!(!e.justifyContent||e.type===`card`))return{display:`flex`,justifyContent:e.justifyContent}});re(w,()=>{T.id=0,A(),j()});function D(){let{value:e}=w;return e===null?null:o.value?.querySelector(`[data-name="${e}"]`)}function ee(t){if(e.type===`card`)return;let{value:r}=s;if(!r)return;let i=r.style.opacity===`0`;if(t){let a=`${n.value}-tabs-bar--disabled`,{barWidth:o,placement:s}=e;if(t.dataset.disabled===`true`?r.classList.add(a):r.classList.remove(a),[`top`,`bottom`].includes(s)){if(k([`top`,`maxHeight`,`height`]),typeof o==`number`&&t.offsetWidth>=o){let e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;r.style.left=`${e}px`,r.style.maxWidth=`${o}px`}else r.style.left=`${t.offsetLeft}px`,r.style.maxWidth=`${t.offsetWidth}px`;r.style.width=`8192px`,i&&(r.style.transition=`none`),r.offsetWidth,i&&(r.style.transition=``,r.style.opacity=`1`)}else{if(k([`left`,`maxWidth`,`width`]),typeof o==`number`&&t.offsetHeight>=o){let e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;r.style.top=`${e}px`,r.style.maxHeight=`${o}px`}else r.style.top=`${t.offsetTop}px`,r.style.maxHeight=`${t.offsetHeight}px`;r.style.height=`8192px`,i&&(r.style.transition=`none`),r.offsetHeight,i&&(r.style.transition=``,r.style.opacity=`1`)}}}function O(){if(e.type===`card`)return;let{value:t}=s;t&&(t.style.opacity=`0`)}function k(e){let{value:t}=s;if(t)for(let n of e)t.style[n]=``}function A(){if(e.type===`card`)return;let t=D();t?ee(t):O()}function j(){let e=u.value?.$el;if(!e)return;let t=D();if(!t)return;let{scrollLeft:n,offsetWidth:r}=e,{offsetLeft:i,offsetWidth:a}=t;n>i?e.scrollTo({top:0,left:i,behavior:`smooth`}):i+a>n+r&&e.scrollTo({top:0,left:i+a-r,behavior:`smooth`})}let N=U(null),ae=0,P=null;function oe(e){let t=N.value;if(t){ae=e.getBoundingClientRect().height;let n=`${ae}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};P?(r(),P(),P=null):P=r}}function se(e){let t=N.value;if(t){let n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(ae,n)}px`};P?(P(),P=null,r()):P=r}}function F(){let t=N.value;if(t){t.style.maxHeight=``,t.style.height=``;let{paneWrapperStyle:n}=e;if(typeof n==`string`)t.style.cssText=n;else if(n){let{maxHeight:e,height:r}=n;e!==void 0&&(t.style.maxHeight=e),r!==void 0&&(t.style.height=r)}}}let I={value:[]},ce=U(`next`);function le(e){let t=w.value,n=`next`;for(let r of I.value){if(r===t)break;if(r===e){n=`prev`;break}}ce.value=n,L(e)}function L(t){let{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":i}=e;n&&R(n,t),r&&R(r,t),i&&R(i,t),b.value=t}function B(t){let{onClose:n}=e;n&&R(n,t)}let V=!0;function fe(){let{value:e}=s;if(!e)return;V||=!1;let t=`transition-disabled`;e.classList.add(t),A(),e.classList.remove(t)}let H=U(null);function W({transitionDisabled:e}){let t=o.value;if(!t)return;e&&t.classList.add(`transition-disabled`);let n=D();n&&H.value&&(H.value.style.width=`${n.offsetWidth}px`,H.value.style.height=`${n.offsetHeight}px`,H.value.style.transform=`translateX(${n.offsetLeft-x(getComputedStyle(t).paddingLeft)}px)`,e&&H.value.offsetWidth),e&&t.classList.remove(`transition-disabled`)}re([w],()=>{e.type===`segment`&&p(()=>{W({transitionDisabled:!1})})}),M(()=>{e.type===`segment`&&W({transitionDisabled:!0})});let me=0;function he(t){if(t.contentRect.width===0&&t.contentRect.height===0||me===t.contentRect.width)return;me=t.contentRect.width;let{type:n}=e;if((n===`line`||n===`bar`)&&(V||e.justifyContent?.startsWith(`space`))&&fe(),n!==`segment`){let{placement:t}=e;xe((t===`top`||t===`bottom`?u.value?.$el:d.value)||null)}}let _e=Ge(he,64);re([()=>e.justifyContent,()=>e.size],()=>{p(()=>{let{type:t}=e;(t===`line`||t===`bar`)&&fe()})});let G=U(!1);function ye(t){let{target:n,contentRect:{width:r,height:i}}=t,a=n.parentElement.parentElement.offsetWidth,o=n.parentElement.parentElement.offsetHeight,{placement:s}=e;if(!G.value)s===`top`||s===`bottom`?ae.$el.offsetWidth&&(G.value=!1):o-i>e.$el.offsetHeight&&(G.value=!1)}xe(u.value?.$el||null)}let q=Ge(ye,64);function be(){let{onAdd:t}=e;t&&t(),p(()=>{let e=D(),{value:t}=u;!e||!t||t.scrollTo({left:e.offsetLeft,top:0,behavior:`smooth`})})}function xe(t){if(!t)return;let{placement:n}=e;if(n===`top`||n===`bottom`){let{scrollLeft:e,scrollWidth:n,offsetWidth:r}=t;f.value=e<=0,h.value=e+r>=n}else{let{scrollTop:e,scrollHeight:n,offsetHeight:r}=t;f.value=e<=0,h.value=e+r>=n}}let Se=Ge(e=>{xe(e.target)},64);S(Ve,{triggerRef:K(e,`trigger`),tabStyleRef:K(e,`tabStyle`),tabClassRef:K(e,`tabClass`),addTabStyleRef:K(e,`addTabStyle`),addTabClassRef:K(e,`addTabClass`),paneClassRef:K(e,`paneClass`),paneStyleRef:K(e,`paneStyle`),mergedClsPrefixRef:n,typeRef:K(e,`type`),closableRef:K(e,`closable`),valueRef:w,tabChangeIdRef:T,onBeforeLeaveRef:K(e,`onBeforeLeave`),activateTab:le,handleClose:B,handleAdd:be}),te(()=>{A(),j()}),ie(()=>{let{value:e}=c;if(!e)return;let{value:t}=n,r=`${t}-tabs-nav-scroll-wrapper--shadow-start`,i=`${t}-tabs-nav-scroll-wrapper--shadow-end`;f.value?e.classList.remove(r):e.classList.add(r),h.value?e.classList.remove(i):e.classList.add(i)});let Ce={syncBarPosition:()=>{A()}},we=()=>{W({transitionDisabled:!0})},J=m(()=>{let{value:t}=_,{type:n}=e,r=`${t}${{card:`Card`,bar:`Bar`,line:`Line`,segment:`Segment`}[n]}`,{self:{barColor:i,closeIconColor:o,closeIconColorHover:s,closeIconColorPressed:c,tabColor:l,tabBorderColor:u,paneTextColor:d,tabFontWeight:f,tabBorderRadius:p,tabFontWeightActive:m,colorSegment:h,fontWeightStrong:g,tabColorSegment:v,closeSize:y,closeIconSize:b,closeColorHover:x,closeColorPressed:S,closeBorderRadius:C,[z(`panePadding`,t)]:w,[z(`tabPadding`,r)]:T,[z(`tabPaddingVertical`,r)]:E,[z(`tabGap`,r)]:D,[z(`tabGap`,`${r}Vertical`)]:ee,[z(`tabTextColor`,n)]:O,[z(`tabTextColorActive`,n)]:k,[z(`tabTextColorHover`,n)]:te,[z(`tabTextColorDisabled`,n)]:A,[z(`tabFontSize`,t)]:j},common:{cubicBezierEaseInOut:M}}=a.value;return{"--n-bezier":M,"--n-color-segment":h,"--n-bar-color":i,"--n-tab-font-size":j,"--n-tab-text-color":O,"--n-tab-text-color-active":k,"--n-tab-text-color-disabled":A,"--n-tab-text-color-hover":te,"--n-pane-text-color":d,"--n-tab-border-color":u,"--n-tab-border-radius":p,"--n-close-size":y,"--n-close-icon-size":b,"--n-close-color-hover":x,"--n-close-color-pressed":S,"--n-close-border-radius":C,"--n-close-icon-color":o,"--n-close-icon-color-hover":s,"--n-close-icon-color-pressed":c,"--n-tab-color":l,"--n-tab-font-weight":f,"--n-tab-font-weight-active":m,"--n-tab-padding":T,"--n-tab-padding-vertical":E,"--n-tab-gap":D,"--n-tab-gap-vertical":ee,"--n-pane-padding-left":ne(w,`left`),"--n-pane-padding-right":ne(w,`right`),"--n-pane-padding-top":ne(w,`top`),"--n-pane-padding-bottom":ne(w,`bottom`),"--n-font-weight-strong":g,"--n-tab-color-segment":v}}),Y=r?ve(`tabs`,m(()=>`${_.value[0]}${e.type[0]}`),J,e):void 0;return Object.assign({mergedClsPrefix:n,mergedValue:w,renderedNames:new Set,segmentCapsuleElRef:H,tabsPaneWrapperRef:N,tabsElRef:o,barElRef:s,addTabInstRef:l,xScrollInstRef:u,scrollWrapperElRef:c,addTabFixed:G,tabWrapperStyle:E,handleNavResize:_e,mergedSize:_,handleScroll:Se,handleTabsResize:q,cssVars:r?void 0:J,themeClass:Y?.themeClass,animationDirection:ce,renderNameListRef:I,yScrollElRef:d,handleSegmentResize:we,onAnimationBeforeLeave:oe,onAnimationEnter:se,onAnimationAfterEnter:F,onRender:Y?.onRender},Ce)},render(){let{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:i,mergedSize:a,renderNameListRef:o,onRender:s,paneWrapperClass:c,paneWrapperStyle:l,$slots:{default:u,prefix:d,suffix:f}}=this;s?.();let p=u?pe(u()).filter(e=>e.type.__TAB_PANE__===!0):[],m=u?pe(u()).filter(e=>e.type.__TAB__===!0):[],h=!m.length,g=t===`card`,_=t===`segment`,v=!g&&!_&&this.justifyContent;o.value=[];let y=()=>{let t=w(`div`,{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},v?null:w(`div`,{class:`${e}-tabs-scroll-padding`,style:n===`top`||n===`bottom`?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),h?p.map((e,t)=>(o.value.push(e.props.name),Xe(w(Ue,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0&&(!v||v===`center`||v===`start`||v===`end`)}),e.children?{default:e.children.tab}:void 0)))):m.map((e,t)=>(o.value.push(e.props.name),Xe(t!==0&&!v?Ye(e):e))),!r&&i&&g?Je(i,(h?p.length:m.length)!==0):null,v?null:w(`div`,{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return w(`div`,{ref:`tabsElRef`,class:`${e}-tabs-nav-scroll-content`},g&&i?w(J,{onResize:this.handleTabsResize},{default:()=>t}):t,g?w(`div`,{class:`${e}-tabs-pad`}):null,g?null:w(`div`,{ref:`barElRef`,class:`${e}-tabs-bar`}))},b=_?`top`:n;return w(`div`,{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,v&&`${e}-tabs--flex`,`${e}-tabs--${b}`],style:this.cssVars},w(`div`,{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${b}`,`${e}-tabs-nav`]},ce(d,t=>t&&w(`div`,{class:`${e}-tabs-nav__prefix`},t)),_?w(J,{onResize:this.handleSegmentResize},{default:()=>w(`div`,{class:`${e}-tabs-rail`,ref:`tabsElRef`},w(`div`,{class:`${e}-tabs-capsule`,ref:`segmentCapsuleElRef`},w(`div`,{class:`${e}-tabs-wrapper`},w(`div`,{class:`${e}-tabs-tab`}))),h?p.map((e,t)=>(o.value.push(e.props.name),w(Ue,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0}),e.children?{default:e.children.tab}:void 0))):m.map((e,t)=>(o.value.push(e.props.name),t===0?e:Ye(e))))}):w(J,{onResize:this.handleNavResize},{default:()=>w(`div`,{class:`${e}-tabs-nav-scroll-wrapper`,ref:`scrollWrapperElRef`},[`top`,`bottom`].includes(b)?w(Pe,{ref:`xScrollInstRef`,onScroll:this.handleScroll},{default:y}):w(`div`,{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:`yScrollElRef`},y()))}),r&&i&&g?Je(i,!0):null,ce(f,t=>t&&w(`div`,{class:`${e}-tabs-nav__suffix`},t))),h&&(this.animated&&(b===`top`||b===`bottom`)?w(`div`,{ref:`tabsPaneWrapperRef`,style:l,class:[`${e}-tabs-pane-wrapper`,c]},qe(p,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):qe(p,this.mergedValue,this.renderedNames)))}});function qe(e,t,n,r,i,a,o){let s=[];return e.forEach(e=>{let{name:r,displayDirective:i,"display-directive":a}=e.props,o=e=>i===e||a===e,c=t===r;if(e.key!==void 0&&(e.key=r),c||o(`show`)||o(`show:lazy`)&&n.has(r)){n.has(r)||n.add(r);let t=!o(`if`);s.push(t?d(e,[[se,c]]):e)}}),o?w(Se,{name:`${o}-transition`,onBeforeLeave:r,onEnter:i,onAfterEnter:a},{default:()=>s}):s}function Je(e,t){return w(Ue,{ref:`addTabInstRef`,key:`__addable`,name:`__addable`,internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e==`object`&&e.disabled})}function Ye(e){let t=_(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Xe(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes(`internalLeftPadded`)||e.dynamicProps.push(`internalLeftPadded`):e.dynamicProps=[`internalLeftPadded`],e}var Ze={class:`settings-section`},Qe=F(y({__name:`DisplaySettings`,setup(e){let t=Z(),n=X(),{t:r}=H(),{mode:i,setMode:a}=fe(),o=[{label:r(`settings.display.themeLight`),value:`light`},{label:r(`settings.display.themeDark`),value:`dark`},{label:r(`settings.display.themeSystem`),value:`system`}];async function c(e){try{await t.saveSection(`display`,e),n.success(r(`settings.saved`))}catch{n.error(r(`settings.saveFailed`))}}function l(e){let t=e;a(t),c({skin:t})}return(e,n)=>(b(),B(`section`,Ze,[O(Q,{label:P(r)(`settings.display.theme`),hint:P(r)(`settings.display.themeHint`)},{default:k(()=>[O(P(h),{value:P(i),options:o,size:`small`,"consistent-menu-width":!1,class:`input-sm`,"onUpdate:value":l},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.display.streaming`),hint:P(r)(`settings.display.streamingHint`)},{default:k(()=>[O(P(s),{value:P(t).display.streaming,"onUpdate:value":n[0]||=e=>c({streaming:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.display.compact`),hint:P(r)(`settings.display.compactHint`)},{default:k(()=>[O(P(s),{value:P(t).display.compact,"onUpdate:value":n[1]||=e=>c({compact:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.display.showReasoning`),hint:P(r)(`settings.display.showReasoningHint`)},{default:k(()=>[O(P(s),{value:P(t).display.show_reasoning,"onUpdate:value":n[2]||=e=>c({show_reasoning:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.display.showCost`),hint:P(r)(`settings.display.showCostHint`)},{default:k(()=>[O(P(s),{value:P(t).display.show_cost,"onUpdate:value":n[3]||=e=>c({show_cost:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.display.inlineDiffs`),hint:P(r)(`settings.display.inlineDiffsHint`)},{default:k(()=>[O(P(s),{value:P(t).display.inline_diffs,"onUpdate:value":n[4]||=e=>c({inline_diffs:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.display.bellOnComplete`),hint:P(r)(`settings.display.bellOnCompleteHint`)},{default:k(()=>[O(P(s),{value:P(t).display.bell_on_complete,"onUpdate:value":n[5]||=e=>c({bell_on_complete:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.display.busyInputMode`),hint:P(r)(`settings.display.busyInputModeHint`)},{default:k(()=>[O(P(s),{value:P(t).display.busy_input_mode===`interrupt`,"onUpdate:value":n[6]||=e=>c({busy_input_mode:e?`interrupt`:`off`})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-e737ef30`]]),$e={class:`settings-section`},et=F(y({__name:`AgentSettings`,setup(e){let t=Z(),n=X(),{t:r}=H();async function i(e){try{await t.saveSection(`agent`,e),n.success(r(`settings.saved`))}catch{n.error(r(`settings.saveFailed`))}}return(e,n)=>(b(),B(`section`,$e,[O(Q,{label:P(r)(`settings.agent.maxTurns`),hint:P(r)(`settings.agent.maxTurnsHint`)},{default:k(()=>[O(P(o),{value:P(t).agent.max_turns,min:1,max:200,step:5,size:`small`,class:`input-sm`,"onUpdate:value":n[0]||=e=>e!=null&&i({max_turns:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.agent.gatewayTimeout`),hint:P(r)(`settings.agent.gatewayTimeoutHint`)},{default:k(()=>[O(P(o),{value:P(t).agent.gateway_timeout,min:60,max:7200,step:60,size:`small`,class:`input-sm`,"onUpdate:value":n[1]||=e=>e!=null&&i({gateway_timeout:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.agent.restartDrainTimeout`),hint:P(r)(`settings.agent.restartDrainTimeoutHint`)},{default:k(()=>[O(P(o),{value:P(t).agent.restart_drain_timeout,min:10,max:300,step:10,size:`small`,class:`input-sm`,"onUpdate:value":n[2]||=e=>e!=null&&i({restart_drain_timeout:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.agent.toolEnforcement`),hint:P(r)(`settings.agent.toolEnforcementHint`)},{default:k(()=>[O(P(h),{value:P(t).agent.tool_use_enforcement||`auto`,options:[{label:P(r)(`settings.agent.auto`),value:`auto`},{label:P(r)(`settings.agent.always`),value:`always`},{label:P(r)(`settings.agent.never`),value:`never`}],size:`small`,class:`input-sm`,"onUpdate:value":n[3]||=e=>i({tool_use_enforcement:e})},null,8,[`value`,`options`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-1f96245d`]]),tt={class:`settings-section`},nt=F(y({__name:`MemorySettings`,setup(e){let t=Z(),n=X(),{t:r}=H();async function i(e){try{await t.saveSection(`memory`,e),n.success(r(`settings.saved`))}catch{n.error(r(`settings.saveFailed`))}}return(e,n)=>(b(),B(`section`,tt,[O(Q,{label:P(r)(`settings.memory.enabled`),hint:P(r)(`settings.memory.enabledHint`)},{default:k(()=>[O(P(s),{value:P(t).memory.memory_enabled,"onUpdate:value":n[0]||=e=>i({memory_enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.memory.userProfile`),hint:P(r)(`settings.memory.userProfileHint`)},{default:k(()=>[O(P(s),{value:P(t).memory.user_profile_enabled,"onUpdate:value":n[1]||=e=>i({user_profile_enabled:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.memory.charLimit`),hint:P(r)(`settings.memory.charLimitHint`)},{default:k(()=>[O(P(o),{value:P(t).memory.memory_char_limit,min:100,max:1e4,step:100,size:`small`,class:`input-sm`,"onUpdate:value":n[2]||=e=>e!=null&&i({memory_char_limit:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(r)(`settings.memory.userCharLimit`),hint:P(r)(`settings.memory.userCharLimitHint`)},{default:k(()=>[O(P(o),{value:P(t).memory.user_char_limit,min:100,max:1e4,step:100,size:`small`,class:`input-sm`,"onUpdate:value":n[3]||=e=>e!=null&&i({user_char_limit:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-0c8e2aa7`]]),rt={class:`settings-section`},it=F(y({__name:`SessionSettings`,setup(e){let t=Z(),n=je(),r=X(),{t:i}=H();async function a(e){try{await t.saveSection(`session_reset`,e),r.success(i(`settings.saved`))}catch{r.error(i(`settings.saveFailed`))}}return(e,r)=>(b(),B(`section`,rt,[O(Q,{label:P(i)(`settings.session.mode`),hint:P(i)(`settings.session.modeHint`)},{default:k(()=>[O(P(h),{value:P(t).sessionReset.mode||`both`,options:[{label:P(i)(`settings.session.modeBoth`),value:`both`},{label:P(i)(`settings.session.modeIdle`),value:`idle`},{label:P(i)(`settings.session.modeHourly`),value:`hourly`}],size:`small`,class:`input-md`,"onUpdate:value":r[0]||=e=>a({mode:e})},null,8,[`value`,`options`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(i)(`settings.session.idleMinutes`),hint:P(i)(`settings.session.idleMinutesHint`)},{default:k(()=>[O(P(o),{value:P(t).sessionReset.idle_minutes,min:10,max:10080,step:30,size:`small`,class:`input-sm`,"onUpdate:value":r[1]||=e=>e!=null&&a({idle_minutes:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(i)(`settings.session.atHour`),hint:P(i)(`settings.session.atHourHint`)},{default:k(()=>[O(P(o),{value:P(t).sessionReset.at_hour,min:0,max:23,step:1,size:`small`,class:`input-sm`,"onUpdate:value":r[2]||=e=>e!=null&&a({at_hour:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`]),O(Q,{label:P(i)(`settings.session.liveMonitorHumanOnly`),hint:P(i)(`settings.session.liveMonitorHumanOnlyHint`)},{default:k(()=>[O(P(s),{value:P(n).humanOnly,"onUpdate:value":r[3]||=e=>P(n).setHumanOnly(e)},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-3514aeb7`]]),at={class:`settings-section`},ot=F(y({__name:`PrivacySettings`,setup(e){let t=Z(),n=X(),{t:r}=H();async function i(e){try{await t.saveSection(`privacy`,e),n.success(r(`settings.saved`))}catch{n.error(r(`settings.saveFailed`))}}return(e,n)=>(b(),B(`section`,at,[O(Q,{label:P(r)(`settings.privacy.redactPii`),hint:P(r)(`settings.privacy.redactPiiHint`)},{default:k(()=>[O(P(s),{value:P(t).privacy.redact_pii,"onUpdate:value":n[0]||=e=>i({redact_pii:e})},null,8,[`value`])]),_:1},8,[`label`,`hint`])]))}}),[[`__scopeId`,`data-v-43145f27`]]),st={class:`settings-section`},ct={key:0,class:`empty-hint`},lt={class:`provider-header`},ut={class:`provider-name`},dt={key:0,class:`provider-fields`},ft={class:`field-row`},pt={key:1,class:`provider-fields`},mt={class:`field-row`},ht=F(y({__name:`ModelSettings`,setup(e){let{t}=H(),n=Me(),r=X(),i=U(null),a=U({});M(()=>{n.providers.length===0&&n.fetchProviders()});let o=e=>e.startsWith(`custom:`);function s(e){if(!(e in a.value)){let t=n.providers.find(t=>t.provider===e);a.value[e]=t?.api_key||``}return a.value[e]}async function c(e){let a=s(e);if(!a.trim()){r.warning(t(`settings.models.apiKeyPlaceholder`));return}i.value=e;try{await l(e,{api_key:a.trim()}),r.success(t(`settings.models.saved`)),await n.fetchProviders()}catch(e){r.error(e.message||t(`settings.models.saveFailed`))}finally{i.value=null}}async function u(e){let a=s(e);i.value=e;try{await l(e,{api_key:a.trim()}),r.success(t(`settings.models.saved`)),await n.fetchProviders()}catch(e){r.error(e.message||t(`settings.models.saveFailed`))}finally{i.value=null}}return(e,r)=>(b(),B(`section`,st,[O(P(be),{show:P(n).loading},{default:k(()=>[P(n).providers.length===0?(b(),B(`div`,ct,[O(P(N),{description:P(t)(`settings.models.noProviders`)},null,8,[`description`])])):f(``,!0),(b(!0),B(we,null,G(P(n).providers,e=>(b(),B(`div`,{key:e.provider,class:`provider-section`},[D(`div`,lt,[D(`h4`,ut,I(e.label),1),D(`span`,{class:he([`type-badge`,o(e.provider)?`custom`:`builtin`])},I(o(e.provider)?P(t)(`models.customType`):P(t)(`models.builtIn`)),3)]),o(e.provider)?(b(),B(`div`,pt,[D(`div`,mt,[O(P(T),{value:s(e.provider),type:`password`,"show-password-on":`click`,placeholder:P(t)(`settings.models.apiKeyPlaceholder`),autocomplete:`off`,"onUpdate:value":t=>a.value[e.provider]=t},null,8,[`value`,`placeholder`,`onUpdate:value`]),O(P(V),{type:`primary`,size:`small`,loading:i.value===e.provider,onClick:t=>u(e.provider)},{default:k(()=>[E(I(P(t)(`settings.models.save`)),1)]),_:1},8,[`loading`,`onClick`])])])):(b(),B(`div`,dt,[D(`div`,ft,[O(P(T),{value:s(e.provider),type:`password`,"show-password-on":`click`,placeholder:P(t)(`settings.models.apiKeyPlaceholder`),autocomplete:`off`,"onUpdate:value":t=>a.value[e.provider]=t},null,8,[`value`,`placeholder`,`onUpdate:value`]),O(P(V),{type:`primary`,size:`small`,loading:i.value===e.provider,onClick:t=>c(e.provider)},{default:k(()=>[E(I(P(t)(`settings.models.save`)),1)]),_:1},8,[`loading`,`onClick`])])]))]))),128))]),_:1},8,[`show`])]))}}),[[`__scopeId`,`data-v-c28727b7`]]),gt={class:`account-settings`},_t={class:`section-desc`},vt={key:0,class:`action-row`},yt={class:`action-label`},bt={key:1,class:`configured-section`},xt={class:`action-row`},St={class:`action-label`},Ct={class:`action-buttons`},wt=F(y({__name:`AccountSettings`,setup(n){let{t:r}=H(),i=X(),a=U(!1),o=U(null),s=U(!1),l=U(!1),u=U(``),d=U(``),f=U(``),p=U(!1),m=U(``),h=U(``),g=U(``),_=U(!1),v=U(``),y=U(``);M(async()=>{try{let e=await ke();a.value=e.hasPasswordLogin,o.value=e.username}catch{}});async function x(){if(d.value!==f.value){i.error(r(`login.passwordMismatch`));return}if(d.value.length<6){i.error(r(`login.passwordTooShort`));return}s.value=!0;try{await Oe(u.value,d.value),a.value=!0,o.value=u.value,l.value=!1,u.value=``,d.value=``,f.value=``,i.success(r(`login.setupSuccess`))}catch(e){i.error(e.message||r(`common.saveFailed`))}finally{s.value=!1}}async function S(){if(h.value!==g.value){i.error(r(`login.passwordMismatch`));return}if(h.value.length<6){i.error(r(`login.passwordTooShort`));return}s.value=!0;try{await Ae(m.value,h.value),p.value=!1,m.value=``,h.value=``,g.value=``,i.success(r(`login.passwordChanged`))}catch(e){i.error(e.message||r(`common.saveFailed`))}finally{s.value=!1}}async function C(){if(y.value.trim().length<2){i.error(r(`login.usernameTooShort`));return}s.value=!0;try{await De(v.value,y.value.trim()),o.value=y.value.trim(),_.value=!1,v.value=``,y.value=``,i.success(r(`login.usernameChanged`))}catch(e){i.error(e.message||r(`common.saveFailed`))}finally{s.value=!1}}async function w(){s.value=!0;try{await Ee(),a.value=!1,o.value=null,i.success(r(`login.passwordRemoved`))}catch(e){i.error(e.message||r(`common.saveFailed`))}finally{s.value=!1}}function ee(){u.value=``,d.value=``,f.value=``,l.value=!0}function te(){m.value=``,h.value=``,g.value=``,p.value=!0}function A(){v.value=``,y.value=``,_.value=!0}return(n,i)=>(b(),B(`div`,gt,[D(`p`,_t,I(P(r)(`login.setupDescription`)),1),a.value?(b(),B(`div`,bt,[D(`div`,xt,[D(`span`,St,I(P(r)(`login.passwordLoginConfigured`,{username:o.value})),1),D(`div`,Ct,[O(P(V),{onClick:te},{default:k(()=>[E(I(P(r)(`login.changePassword`)),1)]),_:1}),O(P(V),{onClick:A},{default:k(()=>[E(I(P(r)(`login.changeUsername`)),1)]),_:1}),O(P(c),{onPositiveClick:w},{trigger:k(()=>[O(P(V),{type:`error`,ghost:``,loading:s.value},{default:k(()=>[E(I(P(r)(`login.removePasswordLogin`)),1)]),_:1},8,[`loading`])]),default:k(()=>[E(` `+I(P(r)(`login.removeConfirm`)),1)]),_:1})])])])):(b(),B(`div`,vt,[D(`span`,yt,I(P(r)(`login.passwordLoginNotConfigured`)),1),O(P(V),{type:`primary`,onClick:ee},{default:k(()=>[E(I(P(r)(`login.setupPassword`)),1)]),_:1})])),O(P(oe),{show:l.value,"onUpdate:show":i[4]||=e=>l.value=e,preset:`dialog`,title:P(r)(`login.setupPassword`)},{action:k(()=>[O(P(V),{onClick:i[3]||=e=>l.value=!1},{default:k(()=>[E(I(P(r)(`common.cancel`)),1)]),_:1}),O(P(V),{type:`primary`,loading:s.value,onClick:x},{default:k(()=>[E(I(P(r)(`common.save`)),1)]),_:1},8,[`loading`])]),default:k(()=>[O(P(e),{"label-placement":`top`},{default:k(()=>[O(P(t),{label:P(r)(`login.username`)},{default:k(()=>[O(P(T),{value:u.value,"onUpdate:value":i[0]||=e=>u.value=e,placeholder:P(r)(`login.usernamePlaceholder`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),O(P(t),{label:P(r)(`login.newPassword`)},{default:k(()=>[O(P(T),{value:d.value,"onUpdate:value":i[1]||=e=>d.value=e,type:`password`,"show-password-on":`click`,placeholder:P(r)(`login.passwordPlaceholder`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),O(P(t),{label:P(r)(`login.confirmPassword`)},{default:k(()=>[O(P(T),{value:f.value,"onUpdate:value":i[2]||=e=>f.value=e,type:`password`,"show-password-on":`click`,placeholder:P(r)(`login.confirmPassword`),onKeyup:Y(x,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])]),_:1})]),_:1},8,[`show`,`title`]),O(P(oe),{show:p.value,"onUpdate:show":i[9]||=e=>p.value=e,preset:`dialog`,title:P(r)(`login.changePassword`)},{action:k(()=>[O(P(V),{onClick:i[8]||=e=>p.value=!1},{default:k(()=>[E(I(P(r)(`common.cancel`)),1)]),_:1}),O(P(V),{type:`primary`,loading:s.value,onClick:S},{default:k(()=>[E(I(P(r)(`common.save`)),1)]),_:1},8,[`loading`])]),default:k(()=>[O(P(e),{"label-placement":`top`},{default:k(()=>[O(P(t),{label:P(r)(`login.currentPassword`)},{default:k(()=>[O(P(T),{value:m.value,"onUpdate:value":i[5]||=e=>m.value=e,type:`password`,"show-password-on":`click`,placeholder:P(r)(`login.currentPassword`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),O(P(t),{label:P(r)(`login.newPassword`)},{default:k(()=>[O(P(T),{value:h.value,"onUpdate:value":i[6]||=e=>h.value=e,type:`password`,"show-password-on":`click`,placeholder:P(r)(`login.newPassword`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),O(P(t),{label:P(r)(`login.confirmPassword`)},{default:k(()=>[O(P(T),{value:g.value,"onUpdate:value":i[7]||=e=>g.value=e,type:`password`,"show-password-on":`click`,placeholder:P(r)(`login.confirmPassword`),onKeyup:Y(S,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])]),_:1})]),_:1},8,[`show`,`title`]),O(P(oe),{show:_.value,"onUpdate:show":i[13]||=e=>_.value=e,preset:`dialog`,title:P(r)(`login.changeUsername`)},{action:k(()=>[O(P(V),{onClick:i[12]||=e=>_.value=!1},{default:k(()=>[E(I(P(r)(`common.cancel`)),1)]),_:1}),O(P(V),{type:`primary`,loading:s.value,onClick:C},{default:k(()=>[E(I(P(r)(`common.save`)),1)]),_:1},8,[`loading`])]),default:k(()=>[O(P(e),{"label-placement":`top`},{default:k(()=>[O(P(t),{label:P(r)(`login.currentPassword`)},{default:k(()=>[O(P(T),{value:v.value,"onUpdate:value":i[10]||=e=>v.value=e,type:`password`,"show-password-on":`click`,placeholder:P(r)(`login.currentPassword`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),O(P(t),{label:P(r)(`login.newUsername`)},{default:k(()=>[O(P(T),{value:y.value,"onUpdate:value":i[11]||=e=>y.value=e,placeholder:P(r)(`login.usernamePlaceholder`),onKeyup:Y(C,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])]),_:1})]),_:1},8,[`show`,`title`])]))}}),[[`__scopeId`,`data-v-79bc4876`]]),Tt={class:`settings-view`},Et={class:`page-header`},Dt={class:`header-title`},Ot={class:`settings-content`},kt=F(y({__name:`SettingsView`,setup(e){let t=Z(),{t:n}=H();return M(()=>{t.fetchSettings()}),(e,r)=>(b(),B(`div`,Tt,[D(`header`,Et,[D(`h2`,Dt,I(P(n)(`settings.title`)),1)]),D(`div`,Ot,[O(P(be),{show:P(t).loading||P(t).saving,size:`large`,description:P(n)(`common.loading`)},{default:k(()=>[O(P(Ke),{type:`line`,animated:``},{default:k(()=>[O(P($),{name:`account`,tab:P(n)(`settings.tabs.account`)},{default:k(()=>[O(wt)]),_:1},8,[`tab`]),O(P($),{name:`display`,tab:P(n)(`settings.tabs.display`)},{default:k(()=>[O(Qe)]),_:1},8,[`tab`]),O(P($),{name:`agent`,tab:P(n)(`settings.tabs.agent`)},{default:k(()=>[O(et)]),_:1},8,[`tab`]),O(P($),{name:`memory`,tab:P(n)(`settings.tabs.memory`)},{default:k(()=>[O(nt)]),_:1},8,[`tab`]),O(P($),{name:`session`,tab:P(n)(`settings.tabs.session`)},{default:k(()=>[O(it)]),_:1},8,[`tab`]),O(P($),{name:`privacy`,tab:P(n)(`settings.tabs.privacy`)},{default:k(()=>[O(ot)]),_:1},8,[`tab`]),O(P($),{name:`models`,tab:P(n)(`settings.tabs.models`)},{default:k(()=>[O(ht)]),_:1},8,[`tab`])]),_:1})]),_:1},8,[`show`,`description`])])]))}}),[[`__scopeId`,`data-v-6bfbe8eb`]]);export{kt as default}; \ No newline at end of file diff --git a/webui/assets/SkillsView-Fk_3rYtt.js b/webui/assets/SkillsView-Fk_3rYtt.js new file mode 100644 index 0000000000000000000000000000000000000000..b93f5f1e4c8ae4bf5153a29bf101055177bd0f92 --- /dev/null +++ b/webui/assets/SkillsView-Fk_3rYtt.js @@ -0,0 +1 @@ +import{t as e}from"./Switch-CDXAYhwk.js";import{Ar as t,Dr as n,Fr as r,Gr as i,N as a,Nr as o,Or as s,Pr as c,Sr as l,Ur as u,Wr as d,Xr as f,ai as p,c as m,ci as h,jr as g,kr as _,lr as v,ni as y,oi as b,qr as x,wr as S,y as C}from"./index-Cl8-DFW_.js";import{t as w}from"./MarkdownRenderer-P3bVUblX.js";import{i as T,n as E,o as ee,r as D}from"./skills-Itof9XyP.js";var O={class:`skill-list`},k={key:0,class:`skill-empty`},A=[`onClick`],j={class:`category-name`},M={class:`category-count`},N={key:0,class:`category-skills`},P=[`onClick`],F={class:`skill-info`},I={class:`skill-name`},L={key:0,class:`skill-desc`},R=m(r({__name:`SkillList`,props:{categories:{},selectedSkill:{},searchQuery:{}},emits:[`select`],setup(r,{emit:a}){let{t:o}=v(),u=C(),d=r,f=a,m=y(new Set),_=y(new Set),w=n(()=>{if(!d.searchQuery)return d.categories;let e=d.searchQuery.toLowerCase();return d.categories.map(t=>({...t,skills:t.skills.filter(t=>t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})).filter(t=>t.skills.length>0||t.name.toLowerCase().includes(e))});function T(e){m.value.has(e)?m.value.delete(e):m.value.add(e)}function E(e,t){f(`select`,e,t)}async function D(e,t,n){if(!_.value.has(t)){_.value.add(t);try{await ee(t,n);let r=d.categories.find(t=>t.name===e)?.skills.find(e=>e.name===t);r&&(r.enabled=n)}catch(e){u.error(o(`skills.toggleFailed`)+`: ${e.message}`)}finally{_.value.delete(t)}}}return(n,a)=>(i(),g(`div`,O,[w.value.length===0?(i(),g(`div`,k,h(r.searchQuery?p(o)(`skills.noMatch`):p(o)(`skills.noSkills`)),1)):t(``,!0),(i(!0),g(S,null,x(w.value,n=>(i(),g(`div`,{key:n.name,class:`skill-category`},[s(`button`,{class:`category-header`,onClick:e=>T(n.name)},[(i(),g(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:b([`category-arrow`,{collapsed:m.value.has(n.name)}])},[...a[1]||=[s(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2)),s(`span`,j,h(n.name),1),s(`span`,M,h(n.skills.length),1)],8,A),m.value.has(n.name)?t(``,!0):(i(),g(`div`,N,[(i(!0),g(S,null,x(n.skills,o=>(i(),g(`button`,{key:o.name,class:b([`skill-item`,{active:r.selectedSkill===`${n.name}/${o.name}`}]),onClick:e=>E(n.name,o.name)},[s(`div`,F,[s(`span`,I,h(o.name),1),o.description?(i(),g(`span`,L,h(o.description),1)):t(``,!0)]),c(p(e),{size:`small`,value:o.enabled!==!1,loading:_.value.has(o.name),"onUpdate:value":e=>D(n.name,o.name,e),onClick:a[0]||=l(()=>{},[`stop`])},null,8,[`value`,`loading`,`onUpdate:value`])],10,P))),128))]))]))),128))]))}}),[[`__scopeId`,`data-v-d9844f2e`]]),z={class:`skill-detail`},B={class:`detail-title`},V={class:`detail-category`},H={class:`detail-name`},U={key:0,class:`detail-loading`},te={key:0,class:`detail-breadcrumb`},W={class:`breadcrumb-path`},G={class:`detail-content`},K={key:1,class:`detail-files`},q={class:`files-header`},J={class:`files-list`},Y=[`onClick`],X=m(r({__name:`SkillDetail`,props:{category:{},skill:{}},setup(e){let{t:n}=v(),r=e,a=y(``),c=y([]),l=y(!1),u=y(``),d=y(null),m=y(!1);async function b(){l.value=!0,d.value=null,u.value=``,c.value=[],a.value=``;try{let e=`${r.category}/${r.skill}/SKILL.md`,[t,n]=await Promise.all([E(e),D(r.category,r.skill)]);a.value=t,c.value=n.filter(e=>!e.isDir&&e.path!==`SKILL.md`)}catch(e){a.value=n(`skills.loadFailed`)+`: ${e.message}`}finally{l.value=!1}}async function C(e){m.value=!0,d.value=e;try{let t=`${r.category}/${r.skill}/`,n=e;if(e.startsWith(`/`)){let t=e.split(`/.hermes/skills/`)[1];t&&(n=t.split(`/`).slice(2).join(`/`))}u.value=await E(`${t}${n}`)}catch(e){u.value=n(`skills.fileLoadFailed`)+`: ${e.message}`}finally{m.value=!1}}function T(){d.value=null,u.value=``}return f(()=>`${r.category}/${r.skill}`,b,{immediate:!0}),(r,f)=>(i(),g(`div`,z,[s(`div`,B,[s(`span`,V,h(e.category),1),f[0]||=s(`span`,{class:`detail-separator`},`/`,-1),s(`span`,H,h(e.skill),1)]),l.value&&!a.value?(i(),g(`div`,U,h(p(n)(`common.loading`)),1)):(i(),g(S,{key:1},[d.value?(i(),g(`div`,te,[s(`button`,{class:`back-btn`,onClick:T},[f[1]||=s(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[s(`polyline`,{points:`15 18 9 12 15 6`})],-1),o(` `+h(p(n)(`skills.backTo`))+` `+h(e.skill),1)]),s(`span`,W,h(d.value),1)])):t(``,!0),s(`div`,G,[d.value?(i(),_(w,{key:0,content:u.value},null,8,[`content`])):(i(),_(w,{key:1,content:a.value},null,8,[`content`]))]),!d.value&&c.value.length>0?(i(),g(`div`,K,[s(`div`,q,h(p(n)(`skills.attachedFiles`)),1),s(`div`,J,[(i(!0),g(S,null,x(c.value,e=>(i(),g(`button`,{key:e.path,class:`file-item`,onClick:t=>C(e.path)},[f[2]||=s(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[s(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),s(`polyline`,{points:`14 2 14 8 20 8`})],-1),s(`span`,null,h(e.path),1)],8,Y))),128))])])):t(``,!0)],64))]))}}),[[`__scopeId`,`data-v-aa8397b8`]]),Z={class:`skills-view`},Q={class:`page-header`},ne={style:{display:`flex`,"align-items":`center`,gap:`8px`}},re={class:`header-title`},ie={class:`skills-content`},ae={key:0,class:`skills-loading`},oe={key:1,class:`skills-layout`},$={key:0,class:`skills-sidebar`},se={class:`skills-main`},ce={key:1,class:`empty-detail`},le=m(r({__name:`SkillsView`,setup(e){let{t:n}=v(),r=y([]),o=y(!1),l=y(``),f=y(``),m=y(``),x=y(!0),S=null;function C(e){x.value=!e.matches}u(()=>{S=window.matchMedia(`(max-width: 768px)`),C(S),S.addEventListener(`change`,C),w()}),d(()=>{S?.removeEventListener(`change`,C)});async function w(){o.value=!0;try{r.value=await T()}catch(e){console.error(`Failed to load skills:`,e)}finally{o.value=!1}}function E(e,t){l.value=e,f.value=t,window.innerWidth<=768&&(x.value=!1)}return(e,u)=>(i(),g(`div`,Z,[s(`header`,Q,[s(`div`,ne,[s(`h2`,re,h(p(n)(`skills.title`)),1),x.value?t(``,!0):(i(),g(`button`,{key:0,class:`sidebar-toggle`,onClick:u[0]||=e=>x.value=!0},[...u[3]||=[s(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[s(`line`,{x1:`3`,y1:`12`,x2:`21`,y2:`12`}),s(`line`,{x1:`3`,y1:`6`,x2:`21`,y2:`6`}),s(`line`,{x1:`3`,y1:`18`,x2:`21`,y2:`18`})],-1)]]))]),c(p(a),{value:m.value,"onUpdate:value":u[1]||=e=>m.value=e,placeholder:p(n)(`skills.searchPlaceholder`),size:`small`,clearable:``,style:{width:`160px`}},null,8,[`value`,`placeholder`])]),s(`div`,ie,[o.value&&r.value.length===0?(i(),g(`div`,ae,h(p(n)(`common.loading`)),1)):(i(),g(`div`,oe,[s(`div`,{class:b([`mobile-backdrop`,{active:x.value}]),onClick:u[2]||=e=>x.value=!1},null,2),x.value?(i(),g(`div`,$,[c(R,{categories:r.value,"selected-skill":l.value&&f.value?`${l.value}/${f.value}`:null,"search-query":m.value,onSelect:E},null,8,[`categories`,`selected-skill`,`search-query`])])):t(``,!0),s(`div`,se,[l.value&&f.value?(i(),_(X,{key:0,category:l.value,skill:f.value},null,8,[`category`,`skill`])):(i(),g(`div`,ce,[u[4]||=s(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,opacity:`0.2`},[s(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),s(`polyline`,{points:`2 17 12 22 22 17`}),s(`polyline`,{points:`2 12 12 17 22 12`})],-1),s(`span`,null,h(p(n)(`skills.noMatch`)),1)]))])]))])]))}}),[[`__scopeId`,`data-v-0147c6c2`]]);export{le as default}; \ No newline at end of file diff --git a/webui/assets/SkillsView-UN8bqBzc.css b/webui/assets/SkillsView-UN8bqBzc.css new file mode 100644 index 0000000000000000000000000000000000000000..8a26e98452479d64f19da103936f2e12efd29b1c --- /dev/null +++ b/webui/assets/SkillsView-UN8bqBzc.css @@ -0,0 +1 @@ +[data-v-d9844f2e]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-d9844f2e]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.skill-list[data-v-d9844f2e]{flex:1;padding:8px;overflow-y:auto}.skill-empty[data-v-d9844f2e]{color:var(--text-muted);text-align:center;padding:24px 16px;font-size:13px}.skill-category[data-v-d9844f2e]{margin-bottom:4px}.category-header[data-v-d9844f2e]{width:100%;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.3px;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;font-weight:600;display:flex}.category-header[data-v-d9844f2e]:hover{background:rgba(var(--accent-primary-rgb), .04)}.category-arrow[data-v-d9844f2e]{flex-shrink:0;transition:transform .15s}.category-arrow.collapsed[data-v-d9844f2e]{transform:rotate(-90deg)}.category-name[data-v-d9844f2e]{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.category-count[data-v-d9844f2e]{color:var(--text-muted);background:rgba(var(--accent-primary-rgb), .06);border-radius:8px;padding:1px 6px;font-size:11px}.category-skills[data-v-d9844f2e]{padding:2px 0 4px}.skill-item[data-v-d9844f2e]{width:100%;color:var(--text-secondary);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-direction:row;align-items:center;gap:8px;padding:6px 10px 6px 28px;font-size:13px;transition:all .15s;display:flex}.skill-item[data-v-d9844f2e]:hover{background:rgba(var(--accent-primary-rgb), .06);color:var(--text-primary)}.skill-item.active[data-v-d9844f2e]{background:rgba(var(--accent-primary-rgb), .1);color:var(--text-primary);font-weight:500}.skill-info[data-v-d9844f2e]{flex-direction:column;flex:1;min-width:0;display:flex}.skill-name[data-v-d9844f2e]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.skill-desc[data-v-d9844f2e]{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:11px;overflow:hidden}[data-v-aa8397b8]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-aa8397b8]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.skill-detail[data-v-aa8397b8]{flex-direction:column;height:100%;display:flex}.detail-title[data-v-aa8397b8]{border-bottom:1px solid var(--border-color);flex-shrink:0;margin-bottom:12px;padding-bottom:12px;font-size:15px}.detail-category[data-v-aa8397b8]{color:var(--text-muted);font-size:13px}.detail-separator[data-v-aa8397b8]{color:var(--text-muted);margin:0 6px}.detail-name[data-v-aa8397b8]{color:var(--text-primary);font-weight:600}.detail-loading[data-v-aa8397b8]{color:var(--text-muted);flex:1;justify-content:center;align-items:center;font-size:13px;display:flex}.detail-breadcrumb[data-v-aa8397b8]{border-bottom:1px solid var(--border-color);flex-shrink:0;align-items:center;gap:8px;margin-bottom:12px;padding:8px 0 12px;display:flex}.back-btn[data-v-aa8397b8]{color:var(--accent-primary);cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:4px;padding:2px 6px;font-size:13px;display:flex}.back-btn[data-v-aa8397b8]:hover{background:rgba(var(--accent-primary-rgb), .06)}.breadcrumb-path[data-v-aa8397b8]{color:var(--text-muted);font-size:13px}.detail-content[data-v-aa8397b8]{flex:1;min-height:0;padding-bottom:12px;overflow-y:auto}.detail-content[data-v-aa8397b8] hr{border:none;margin:12px 0}.detail-files[data-v-aa8397b8]{border-top:1px solid var(--border-color);flex-shrink:0;margin-top:12px;padding-top:12px}.files-header[data-v-aa8397b8]{color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px;margin-bottom:6px;font-size:12px;font-weight:600}.files-list[data-v-aa8397b8]{flex-wrap:wrap;gap:4px;display:flex}.file-item[data-v-aa8397b8]{border:1px solid var(--border-color);background:var(--bg-secondary);color:var(--text-secondary);cursor:pointer;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;font-size:12px;transition:all .15s;display:flex}.file-item[data-v-aa8397b8]:hover{border-color:var(--accent-primary);color:var(--accent-primary)}[data-v-0147c6c2]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-0147c6c2]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.skills-view[data-v-0147c6c2]{height:calc(100 * var(--vh));flex-direction:column;display:flex}.search-input[data-v-0147c6c2]{width:100px}@media (width<=768px){.search-input[data-v-0147c6c2]{width:100%}}.skills-content[data-v-0147c6c2]{flex:1;overflow:hidden}.skills-loading[data-v-0147c6c2]{height:100%;color:var(--text-muted);justify-content:center;align-items:center;font-size:13px;display:flex}.skills-layout[data-v-0147c6c2]{height:100%;display:flex}.skills-sidebar[data-v-0147c6c2]{border-right:1px solid var(--border-color);flex-direction:column;flex-shrink:0;width:280px;min-height:0;display:flex;overflow:hidden}.skills-main[data-v-0147c6c2]{flex:1;min-width:0;padding:16px 20px;overflow-y:auto}.sidebar-toggle[data-v-0147c6c2]{cursor:pointer;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;padding:4px;display:none}.sidebar-toggle[data-v-0147c6c2]:hover{background:rgba(var(--accent-primary-rgb), .06)}@media (width<=768px){.sidebar-toggle[data-v-0147c6c2]{display:flex}.skills-sidebar[data-v-0147c6c2]{z-index:10;background:var(--bg-card);height:100%;position:absolute;top:0;left:0;box-shadow:2px 0 8px #0000001a}.skills-layout[data-v-0147c6c2]{position:relative}.mobile-backdrop[data-v-0147c6c2]{z-index:9;opacity:0;pointer-events:none;background:#0006;transition:opacity .15s;display:block;position:absolute;inset:0}.mobile-backdrop.active[data-v-0147c6c2]{opacity:1;pointer-events:auto}}.empty-detail[data-v-0147c6c2]{height:100%;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;font-size:13px;display:flex} diff --git a/webui/assets/Space-BZigAtaW.js b/webui/assets/Space-BZigAtaW.js new file mode 100644 index 0000000000000000000000000000000000000000..0ea2ec80bb029d91846910404de251be4546e00e --- /dev/null +++ b/webui/assets/Space-BZigAtaW.js @@ -0,0 +1 @@ +import{t as e}from"./get-slot-DyvCJGRO.js";import{An as t,Cr as n,Dr as r,Fr as i,Jn as a,Lr as o,Yn as s,in as c,ir as l,it as u,mn as d,ot as f,v as p}from"./index-Cl8-DFW_.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!t)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=i({name:`Space`,props:Object.assign(Object.assign({},u.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:i}=c(e),o=r(()=>e.size||i?.value?.Space?.size||`medium`),d=u(`Space`,`-space`,void 0,h,e,t),p=f(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=o.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[l(`gap`,e)]:t}}=d.value,{row:n,col:r}=s(t);return{horizontal:a(r),vertical:a(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:s,itemClass:c,itemStyle:l,margin:u,wrap:f,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(e(this),!1);if(!v.length)return null;let y=`${u.horizontal}px`,b=`${u.horizontal/2}px`,x=`${u.vertical}px`,S=`${u.vertical/2}px`,C=v.length-1,w=s.startsWith(`space-`);return o(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(s)?`flex-${s}`:s,flexWrap:!f||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${u.vertical}px ${u.horizontal}px`:``}},!g&&(h||_)?v:v.map((e,r)=>e.type===n?e:o(`div`,{role:`none`,class:c,style:[l,{maxWidth:`100%`},h?``:t?{marginBottom:r===C?``:x}:m?{marginLeft:w?s===`space-between`&&r===C?``:b:r===C?``:y,marginRight:w?s===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?s===`space-between`&&r===C?``:b:r===C?``:y,marginLeft:w?s===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}]},e)))}});export{v as t}; \ No newline at end of file diff --git a/webui/assets/Switch-CDXAYhwk.js b/webui/assets/Switch-CDXAYhwk.js new file mode 100644 index 0000000000000000000000000000000000000000..c55b423abb9a40266dd4a2b5d98e1739993bd6fd --- /dev/null +++ b/webui/assets/Switch-CDXAYhwk.js @@ -0,0 +1,102 @@ +import{$n as e,Dr as t,Fr as n,G as r,J as i,Jn as a,Kn as o,Ln as s,Lr as c,U as l,Zn as u,an as d,cn as f,er as p,hn as m,in as h,ir as g,it as _,m as v,ni as y,nn as b,nr as x,ri as S,rn as C,rr as w,tr as T,tt as E}from"./index-Cl8-DFW_.js";function D(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},v),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${o(t,{alpha:.2})}`})}var O={name:`Switch`,common:l,self:D},k=p(`switch`,` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[T(`children-placeholder`,` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),T(`rail-placeholder`,` + display: flex; + flex-wrap: none; + `),T(`button-placeholder`,` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),p(`base-loading`,` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[i({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),T(`checked, unchecked`,` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),T(`checked`,` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),T(`unchecked`,` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),e(`&:focus`,[T(`rail`,` + box-shadow: var(--n-box-shadow-focus); + `)]),x(`round`,[T(`rail`,`border-radius: calc(var(--n-rail-height) / 2);`,[T(`button`,`border-radius: calc(var(--n-button-height) / 2);`)])]),w(`disabled`,[w(`icon`,[x(`rubber-band`,[x(`pressed`,[T(`rail`,[T(`button`,`max-width: var(--n-button-width-pressed);`)])]),T(`rail`,[e(`&:active`,[T(`button`,`max-width: var(--n-button-width-pressed);`)])]),x(`active`,[x(`pressed`,[T(`rail`,[T(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])]),T(`rail`,[e(`&:active`,[T(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])])])])])]),x(`active`,[T(`rail`,[T(`button`,`left: calc(100% - var(--n-button-width) - var(--n-offset))`)])]),T(`rail`,` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[T(`button-icon`,` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[i()]),T(`button`,` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),x(`active`,[T(`rail`,`background-color: var(--n-rail-color-active);`)]),x(`loading`,[T(`rail`,` + cursor: wait; + `)]),x(`disabled`,[T(`rail`,` + cursor: not-allowed; + opacity: .5; + `)])]),A=Object.assign(Object.assign({},_.props),{size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]}),j,M=n({name:`Switch`,props:A,slots:Object,setup(e){j===void 0&&(j=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedComponentPropsRef:i}=h(e),o=_(`Switch`,`-switch`,k,O,e,n),c=b(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:i?.value?.Switch?.size||`medium`:e.size}}),{mergedSizeRef:l,mergedDisabledRef:d}=c,f=y(e.defaultValue),p=s(S(e,`value`),f),v=t(()=>p.value===e.checkedValue),x=y(!1),w=y(!1),T=t(()=>{let{railStyle:t}=e;if(t)return t({focused:w.value,checked:v.value})});function E(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=c;n&&m(n,t),i&&m(i,t),r&&m(r,t),f.value=t,a(),o()}function D(){let{nTriggerFormFocus:e}=c;e()}function A(){let{nTriggerFormBlur:e}=c;e()}function M(){e.loading||d.value||(p.value===e.checkedValue?E(e.uncheckedValue):E(e.checkedValue))}function N(){w.value=!0,D()}function P(){w.value=!1,A(),x.value=!1}function F(t){e.loading||d.value||t.key===` `&&(p.value===e.checkedValue?E(e.uncheckedValue):E(e.checkedValue),x.value=!1)}function I(t){e.loading||d.value||t.key===` `&&(t.preventDefault(),x.value=!0)}let L=t(()=>{let{value:e}=l,{self:{opacityDisabled:t,railColor:n,railColorActive:r,buttonBoxShadow:i,buttonColor:s,boxShadowFocus:c,loadingColor:d,textColor:f,iconColor:p,[g(`buttonHeight`,e)]:m,[g(`buttonWidth`,e)]:h,[g(`buttonWidthPressed`,e)]:_,[g(`railHeight`,e)]:v,[g(`railWidth`,e)]:y,[g(`railBorderRadius`,e)]:b,[g(`buttonBorderRadius`,e)]:x},common:{cubicBezierEaseInOut:S}}=o.value,C,w,T;return j?(C=`calc((${v} - ${m}) / 2)`,w=`max(${v}, ${m})`,T=`max(${y}, calc(${y} + ${m} - ${v}))`):(C=u((a(v)-a(m))/2),w=u(Math.max(a(v),a(m))),T=a(v)>a(m)?y:u(a(y)+a(m)-a(v))),{"--n-bezier":S,"--n-button-border-radius":x,"--n-button-box-shadow":i,"--n-button-color":s,"--n-button-width":h,"--n-button-width-pressed":_,"--n-button-height":m,"--n-height":w,"--n-offset":C,"--n-opacity-disabled":t,"--n-rail-border-radius":b,"--n-rail-color":n,"--n-rail-color-active":r,"--n-rail-height":v,"--n-rail-width":y,"--n-width":T,"--n-box-shadow-focus":c,"--n-loading-color":d,"--n-text-color":f,"--n-icon-color":p}}),R=r?C(`switch`,t(()=>l.value[0]),L,e):void 0;return{handleClick:M,handleBlur:P,handleFocus:N,handleKeyup:F,handleKeydown:I,mergedRailStyle:T,pressed:x,mergedClsPrefix:n,mergedValue:p,checked:v,mergedDisabled:d,cssVars:r?void 0:L,themeClass:R?.themeClass,onRender:R?.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:i,onRender:a,$slots:o}=this;a?.();let{checked:s,unchecked:l,icon:u,"checked-icon":p,"unchecked-icon":m}=o,h=!(d(u)&&d(p)&&d(m));return c(`div`,{role:`switch`,"aria-checked":n,class:[`${e}-switch`,this.themeClass,h&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},c(`div`,{class:`${e}-switch__rail`,"aria-hidden":`true`,style:i},f(s,t=>f(l,n=>t||n?c(`div`,{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},c(`div`,{class:`${e}-switch__rail-placeholder`},c(`div`,{class:`${e}-switch__button-placeholder`}),t),c(`div`,{class:`${e}-switch__rail-placeholder`},c(`div`,{class:`${e}-switch__button-placeholder`}),n)):null)),c(`div`,{class:`${e}-switch__button`},f(u,t=>f(p,n=>f(m,i=>c(E,null,{default:()=>this.loading?c(r,Object.assign({key:`loading`,clsPrefix:e,strokeWidth:20},this.spinProps)):this.checked&&(n||t)?c(`div`,{class:`${e}-switch__button-icon`,key:n?`checked-icon`:`icon`},n||t):!this.checked&&(i||t)?c(`div`,{class:`${e}-switch__button-icon`,key:i?`unchecked-icon`:`icon`},i||t):null})))),f(s,t=>t&&c(`div`,{key:`checked`,class:`${e}-switch__checked`},t)),f(l,t=>t&&c(`div`,{key:`unchecked`,class:`${e}-switch__unchecked`},t)))))}});export{M as t}; \ No newline at end of file diff --git a/webui/assets/TerminalView-gsqzLJ6S.js b/webui/assets/TerminalView-gsqzLJ6S.js new file mode 100644 index 0000000000000000000000000000000000000000..2f88555f170f4ac908e78a57b4b62affd0a3a0c6 --- /dev/null +++ b/webui/assets/TerminalView-gsqzLJ6S.js @@ -0,0 +1,36 @@ +import{t as e}from"./Tooltip-DQzh27d-.js";import{t}from"./Popconfirm-ClpYjEYd.js";import{Ar as n,Dr as r,E as i,Fr as a,Gr as o,Nr as s,Or as c,Pr as l,Qr as u,Sr as d,Ur as f,Wr as p,ai as m,c as h,ci as g,dr as _,jr as v,k as ee,kr as te,lr as ne,ni as re,oi as ie,qr as ae,si as oe,ur as se,wr as y,y as ce}from"./index-Cl8-DFW_.js";var b=Object.defineProperty,le=Object.getOwnPropertyDescriptor,ue=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,r)=>{for(var i=r>1?void 0:r?le(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&b(t,n,i),i},S=(e,t)=>(n,r)=>t(n,r,e),C=`Terminal input`,de={get:()=>C,set:e=>C=e},w=`Too much output to announce, navigate to rows manually to read`,fe={get:()=>w,set:e=>w=e};function pe(e){return e.replace(/\r?\n/g,`\r`)}function T(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function me(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function E(e,t,n,r){e.stopPropagation(),e.clipboardData&&he(e.clipboardData.getData(`text/plain`),t,n,r)}function he(e,t,n,r){e=pe(e),e=T(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function ge(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function _e(e,t,n,r,i){ge(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function ve(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function ye(e,t=0,n=e.length){let r=``;for(let i=t;i65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var be=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},xe=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}else this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},Se=``,Ce=` `,we=class e{constructor(){this.fg=0,this.bg=0,this.extended=new Te}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return(this.fg&50331648)==0}isBgDefault(){return(this.bg&50331648)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Te=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Ee=class e extends we{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new Te,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?ve(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},De=`di$target`,Oe=`di$dependencies`,ke=new Map;function Ae(e){return e[Oe]||[]}function D(e){if(ke.has(e))return ke.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);je(t,e,r)};return t._id=e,ke.set(e,t),t}function je(e,t,n){t[De]===t?t[Oe].push({id:e,index:n}):(t[Oe]=[{id:e,index:n}],t[De]=t)}var O=D(`BufferService`),Me=D(`CoreMouseService`),Ne=D(`CoreService`),Pe=D(`CharsetService`),Fe=D(`InstantiationService`),Ie=D(`LogService`),k=D(`OptionsService`),Le=D(`OscLinkService`),Re=D(`UnicodeService`),ze=D(`DecorationService`),Be=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new Ee,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;ti?i.activate(e,t,a):Ve(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};Be=x([S(0,O),S(1,k),S(2,Le)],Be);function Ve(e,t){if(confirm(`Do you want to navigate to ${t}? + +WARNING: This link could potentially be dangerous`)){let e=window.open();if(e){try{e.opener=null}catch{}e.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}}var He=D(`CharSizeService`),Ue=D(`CoreBrowserService`),We=D(`MouseService`),Ge=D(`RenderService`),Ke=D(`SelectionService`),qe=D(`CharacterJoinerService`),Je=D(`ThemeService`),Ye=D(`LinkProviderService`),Xe=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?nt.isErrorNoTelemetry(e)?new nt(e.message+` + +`+e.stack):Error(e.message+` + +`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function Ze(e){$e(e)||Xe.onUnexpectedError(e)}var Qe=`Canceled`;function $e(e){return e instanceof et?!0:e instanceof Error&&e.name===Qe&&e.message===Qe}var et=class extends Error{constructor(){super(Qe),this.name=this.message}};function tt(e){return Error(e?`Illegal argument: ${e}`:`Illegal argument`)}var nt=class e extends Error{constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}},rt=class e extends Error{constructor(t){super(t||`An unexpected bug occurred.`),Object.setPrototypeOf(this,e.prototype)}};function it(e,t,n=0,r=e.length){let i=n,a=r;for(;i{function t(e){return e<0}e.isLessThan=t;function n(e){return e<=0}e.isLessThanOrEqual=n;function r(e){return e>0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(st||={});function ct(e,t){return(n,r)=>t(e(n),e(r))}var lt=(e,t)=>e-t,ut=class e{constructor(e){this.iterate=e}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>t(n)?e(n):!0))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}some(e){let t=!1;return this.iterate(n=>(t=e(n),!t)),t}findFirst(e){let t;return this.iterate(n=>e(n)?(t=n,!1):!0),t}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||st.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};ut.empty=new ut(e=>{});function dt(e,t){let n=Object.create(null);for(let r of e){let e=t(r),i=n[e];i||=n[e]=[],i.push(r)}return n}var ft=class{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}get(e){return this.map.get(e)||new Set}};function pt(e,t){let n=this,r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var mt;(e=>{function t(e){return e&&typeof e==`object`&&typeof e[Symbol.iterator]==`function`}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(e){yield e}e.single=i;function a(e){return t(e)?e:i(e)}e.wrap=a;function o(e){return e||n}e.from=o;function*s(e){for(let t=e.length-1;t>=0;t--)yield e[t]}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(e){return e[Symbol.iterator]().next().value}e.first=l;function u(e,t){let n=0;for(let r of e)if(t(r,n++))return!0;return!1}e.some=u;function d(e,t){for(let n of e)if(t(n))return n}e.find=d;function*f(e,t){for(let n of e)t(n)&&(yield n)}e.filter=f;function*p(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=p;function*m(e,t){let n=0;for(let r of e)yield*t(r,n++)}e.flatMap=m;function*h(...e){for(let t of e)yield*t}e.concat=h;function g(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=g;function*_(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);tt.source!==null&&!this.getRootParent(t,e).isSingleton).flatMap(([e])=>e)}computeLeakingDisposables(e=10,t){let n;if(t)n=t;else{let e=new Map,t=[...this.livingDisposables.values()].filter(t=>t.source!==null&&!this.getRootParent(t,e).isSingleton);if(t.length===0)return;let r=new Set(t.map(e=>e.value));if(n=t.filter(e=>!(e.parent&&r.has(e.parent))),n.length===0)throw Error(`There are cyclic diposable chains!`)}if(!n)return;function r(e){function t(e,t){for(;e.length>0&&t.some(t=>typeof t==`string`?t===e[0]:e[0].match(t));)e.shift()}let n=e.source.split(` +`).map(e=>e.trim().replace(`at `,``)).filter(e=>e!==``);return t(n,[`Error`,/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),n.reverse()}let i=new ft;for(let e of n){let t=r(e);for(let n=0;n<=t.length;n++)i.add(t.slice(0,n).join(` +`),e)}n.sort(ct(e=>e.idx,lt));let a=``,o=0;for(let t of n.slice(0,e)){o++;let e=r(t),s=[];for(let t=0;tr(e)[t]),e=>e);delete o[e[t]];for(let[e,t]of Object.entries(o))s.unshift(` - stacktraces of ${t.length} other leaks continue with ${e}`);s.unshift(a)}a+=` + + +==================== Leaking disposable ${o}/${n.length}: ${t.value.constructor.name} ==================== +${s.join(` +`)} +============================================================ + +`}return n.length>e&&(a+=` + + +... and ${n.length-e} more leaking disposables + +`),{leaks:n,details:a}}};_t.idx=0;function vt(e){gt=e}if(ht){let e=`__is_disposable_tracked__`;vt(new class{trackDisposable(t){let n=Error(`Potentially leaked disposable`).stack;setTimeout(()=>{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==j.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==j.None)try{t[e]=!0}catch{}}markAsSingleton(e){}})}function yt(e){return gt?.trackDisposable(e),e}function bt(e){gt?.markAsDisposed(e)}function xt(e,t){gt?.setParent(e,t)}function St(e,t){if(gt)for(let n of e)gt.setParent(n,t)}function Ct(e){return gt?.markAsSingleton(e),e}function wt(e){if(mt.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(t.length===1)throw t[0];if(t.length>1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Tt(...e){let t=A(()=>wt(e));return St(e,t),t}function A(e){let t=yt({dispose:pt(()=>{bt(t),e()})});return t}var Et=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,yt(this)}dispose(){this._isDisposed||(bt(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{wt(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return xt(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw Error(`Cannot dispose a disposable on itself!`);this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),xt(e,null))}};Et.DISABLE_DISPOSED_WARNING=!1;var Dt=Et,j=class{constructor(){this._store=new Dt,yt(this),xt(this._store,this)}dispose(){bt(this),this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}};j.None=Object.freeze({dispose(){}});var Ot=class{constructor(){this._isDisposed=!1,yt(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&xt(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,bt(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&xt(e,null),e}},kt=typeof window==`object`?window:globalThis,At=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};At.Undefined=new At(void 0);var M=At,jt=class{constructor(){this._first=M.Undefined,this._last=M.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===M.Undefined}clear(){let e=this._first;for(;e!==M.Undefined;){let t=e.next;e.prev=M.Undefined,e.next=M.Undefined,e=t}this._first=M.Undefined,this._last=M.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new M(e);if(this._first===M.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==M.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==M.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==M.Undefined&&e.next!==M.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===M.Undefined&&e.next===M.Undefined?(this._first=M.Undefined,this._last=M.Undefined):e.next===M.Undefined?(this._last=this._last.prev,this._last.next=M.Undefined):e.prev===M.Undefined&&(this._first=this._first.next,this._first.prev=M.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==M.Undefined;)yield e.element,e=e.next}},Mt=globalThis.performance&&typeof globalThis.performance.now==`function`,Nt=class e{static create(t){return new e(t)}constructor(e){this._now=Mt&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}},Pt=!1,Ft=!1,It=!1,N;(e=>{e.None=()=>j.None;function t(e){if(It){let{onDidAddListener:t}=e,n=Ht.create(),r=0;e.onDidAddListener=()=>{++r===2&&(console.warn(`snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here`),n.print()),t?.()}}}function n(e,t){return f(e,()=>{},0,void 0,!0,void 0,t)}e.defer=n;function r(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=r;function i(e,t,n){return u((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=i;function a(e,t,n){return u((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=a;function o(e,t,n){return u((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=o;function s(e){return e}e.signal=s;function c(...e){return(t,n=null,r)=>d(Tt(...e.map(e=>e(e=>t.call(n,e)))),r)}e.any=c;function l(e,t,n,r){let a=n;return i(e,e=>(a=t(a,e),a),r)}e.reduce=l;function u(e,n){let r,i={onWillAddFirstListener(){r=e(a.fire,a)},onDidRemoveLastListener(){r?.dispose()}};n||t(i);let a=new P(i);return n?.add(a),a.event}function d(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function f(e,n,r=100,i=!1,a=!1,o,s){let c,l,u,d=0,f,p={leakWarningThreshold:o,onWillAddFirstListener(){c=e(e=>{d++,l=n(l,e),i&&!u&&(m.fire(l),l=void 0),f=()=>{let e=l;l=void 0,u=void 0,(!i||d>1)&&m.fire(e),d=0},typeof r==`number`?(clearTimeout(u),u=setTimeout(f,r)):u===void 0&&(u=0,queueMicrotask(f))})},onWillRemoveListener(){a&&d>0&&f?.()},onDidRemoveLastListener(){f=void 0,c.dispose()}};s||t(p);let m=new P(p);return s?.add(m),m.event}e.debounce=f;function p(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=p;function m(e,t=(e,t)=>e===t,n){let r=!0,i;return o(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=m;function h(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=h;function g(e,t=!1,n=[],r){let i=n.slice(),a=e(e=>{i?i.push(e):s.fire(e)});r&&r.add(a);let o=()=>{i?.forEach(e=>s.fire(e)),i=null},s=new P({onWillAddFirstListener(){a||(a=e(e=>s.fire(e)),r&&r.add(a))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){a&&a.dispose(),a=null}});return r&&r.add(s),s.event}e.buffer=g;function _(e,t){return(n,r,i)=>{let a=t(new ee);return e(function(e){let t=a.evaluate(e);t!==v&&n.call(r,t)},void 0,i)}}e.chain=_;let v=Symbol(`HaltChainable`);class ee{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:v),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t=!0,n;return this.steps.push(r=>{let i=t||!e(r,n);return t=!1,n=r,i?r:v}),this}evaluate(e){for(let t of this.steps)if(e=t(e),e===v)break;return e}}function te(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new P({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=te;function ne(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new P({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=ne;function re(e){return new Promise(t=>r(e)(t))}e.toPromise=re;function ie(e){let t=new P;return e.then(e=>{t.fire(e)},()=>{t.fire(void 0)}).finally(()=>{t.dispose()}),t.event}e.fromPromise=ie;function ae(e,t){return e(e=>t.fire(e))}e.forward=ae;function oe(e,t,n){return t(n),e(e=>t(e))}e.runAndSubscribe=oe;class se{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;let r={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(r),this.emitter=new P(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function y(e,t){return new se(e,t).emitter.event}e.fromObservable=y;function ce(e){return(t,n,r)=>{let i=0,a=!1,o={beginUpdate(){i++},endUpdate(){i--,i===0&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();let s={dispose(){e.removeObserver(o)}};return r instanceof Dt?r.add(s):Array.isArray(r)&&r.push(s),s}}e.fromObservableLight=ce})(N||={});var Lt=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new Nt,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};Lt.all=new Set,Lt._idPool=0;var Rt=Lt,zt=-1,Bt=class e{constructor(t,n,r=(e._idPool++).toString(16).padStart(3,`0`)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,r]of this._stacks)(!e||t{if(e instanceof Kt)t(e);else for(let n=0;n{e.length!==0&&(console.warn(`[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:`),console.warn(e.join(` +`)),e.length=0)},3e3),Yt=new FinalizationRegistry(t=>{typeof t==`string`&&e.push(t)})}var P=class{constructor(e){this._size=0,this._options=e,this._leakageMon=zt>0||this._options?.leakWarningThreshold?new Vt(e?.onListenerError??Ze,this._options?.leakWarningThreshold??zt):void 0,this._perfMon=this._options?._profName?new Rt(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(Ft){let e=this._listeners;queueMicrotask(()=>{Jt(e,e=>e.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],n=new Wt(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||Ze)(n),j.None}if(this._disposed)return j.None;t&&(e=e.bind(t));let r=new Kt(e),i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=Ht.create(),i=this._leakageMon.check(r.stack,this._size+1)),Ft&&(r.stack=Ht.create()),this._listeners?this._listeners instanceof Kt?(this._deliveryQueue??=new Xt,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;let a=A(()=>{Yt?.unregister(a),i?.(),this._removeListener(r)});if(n instanceof Dt?n.add(a):Array.isArray(n)&&n.push(a),Yt){let e=Error().stack.split(` +`).slice(2,3).join(` +`).trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);Yt.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*qt<=t.length){let e=0;for(let n=0;n0}},Xt=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Zt=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new P,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new P,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(e){return this.mapWindowIdToZoomLevel.get(this.getWindowId(e))??0}setZoomLevel(e,t){if(this.getZoomLevel(t)===e)return;let n=this.getWindowId(t);this.mapWindowIdToZoomLevel.set(n,e),this._onDidChangeZoomLevel.fire(n)}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}setZoomFactor(e,t){this.mapWindowIdToZoomFactor.set(this.getWindowId(t),e)}setFullscreen(e,t){if(this.isFullscreen(t)===e)return;let n=this.getWindowId(t);this.mapWindowIdToFullScreen.set(n,e),this._onDidChangeFullscreen.fire(n)}isFullscreen(e){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(e))}getWindowId(e){return e.vscodeWindowId}};Zt.INSTANCE=new Zt;var Qt=Zt;function $t(e,t,n){typeof t==`string`&&(t=e.matchMedia(t)),t.addEventListener(`change`,n)}Qt.INSTANCE.onDidChangeZoomLevel;function en(e){return Qt.INSTANCE.getZoomFactor(e)}Qt.INSTANCE.onDidChangeFullscreen;var tn=typeof navigator==`object`?navigator.userAgent:``,nn=tn.indexOf(`Firefox`)>=0,rn=tn.indexOf(`AppleWebKit`)>=0,an=tn.indexOf(`Chrome`)>=0,on=!an&&tn.indexOf(`Safari`)>=0;tn.indexOf(`Electron/`),tn.indexOf(`Android`);var sn=!1;if(typeof kt.matchMedia==`function`){let e=kt.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=kt.matchMedia(`(display-mode: fullscreen)`);sn=e.matches,$t(kt,e,({matches:e})=>{sn&&t.matches||(sn=e)})}function cn(){return sn}var ln=`en`,un=!1,dn=!1,fn=!1,pn=!1,mn=!1,hn=ln,gn,_n=globalThis,vn;typeof _n.vscode<`u`&&typeof _n.vscode.process<`u`?vn=_n.vscode.process:typeof process<`u`&&typeof process?.versions?.node==`string`&&(vn=process);var yn=typeof vn?.versions?.electron==`string`&&vn?.type===`renderer`;if(typeof vn==`object`){un=vn.platform===`win32`,dn=vn.platform===`darwin`,fn=vn.platform===`linux`,fn&&vn.env.SNAP&&vn.env.SNAP_REVISION,vn.env.CI||vn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,hn=ln;let e=vn.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,hn=t.resolvedLanguage||ln,t.languagePack?.translationsConfigFile}catch{}pn=!0}else typeof navigator==`object`&&!yn?(gn=navigator.userAgent,un=gn.indexOf(`Windows`)>=0,dn=gn.indexOf(`Macintosh`)>=0,(gn.indexOf(`Macintosh`)>=0||gn.indexOf(`iPad`)>=0||gn.indexOf(`iPhone`)>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,fn=gn.indexOf(`Linux`)>=0,gn?.indexOf(`Mobi`),mn=!0,hn=globalThis._VSCODE_NLS_LANGUAGE||ln,navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);var bn=un,xn=dn,Sn=fn,Cn=pn;mn&&typeof _n.importScripts==`function`&&_n.origin;var wn=gn,Tn=hn,En;(e=>{function t(){return Tn}e.value=t;function n(){return Tn.length===2?Tn===`en`:Tn.length>=3?Tn[0]===`e`&&Tn[1]===`n`&&Tn[2]===`-`:!1}e.isDefaultVariant=n;function r(){return Tn===`en`}e.isDefault=r})(En||={});var Dn=typeof _n.postMessage==`function`&&!_n.importScripts;(()=>{if(Dn){let e=[];_n.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n{let r=++t;e.push({id:r,callback:n}),_n.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})();var On=!!(wn&&wn.indexOf(`Chrome`)>=0);wn&&wn.indexOf(`Firefox`),!On&&wn&&wn.indexOf(`Safari`),wn&&wn.indexOf(`Edg/`),wn&&wn.indexOf(`Android`);var kn=typeof navigator==`object`?navigator:{};Cn||document.queryCommandSupported&&document.queryCommandSupported(`copy`)||kn&&kn.clipboard&&kn.clipboard.writeText,Cn||kn&&kn.clipboard&&kn.clipboard.readText,Cn||cn()||kn.keyboard,`ontouchstart`in kt||kn.maxTouchPoints,kt.PointerEvent&&(`ontouchstart`in kt||navigator.maxTouchPoints);var An=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},jn=new An,Mn=new An,Nn=new An,Pn=Array(230),Fn;(e=>{function t(e){return jn.keyCodeToStr(e)}e.toString=t;function n(e){return jn.strToKeyCode(e)}e.fromString=n;function r(e){return Mn.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return Nn.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return Mn.strToKeyCode(e)||Nn.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`}return jn.keyCodeToStr(e)}e.toElectronAccelerator=o})(Fn||={});var In=class e{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(t){return t instanceof e&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){return`K${this.ctrlKey?`1`:`0`}${this.shiftKey?`1`:`0`}${this.altKey?`1`:`0`}${this.metaKey?`1`:`0`}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new Ln([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},Ln=class{constructor(e){if(e.length===0)throw tt(`chords`);this.chords=e}getHashCode(){let e=``;for(let t=0,n=this.chords.length;t{function t(t){return t===e.None||t===e.Cancelled||t instanceof Zn?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:N.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Yn})})(Xn||={});var Zn=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Yn:(this._emitter||=new P,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}},Qn=class{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e==`function`&&typeof t==`number`&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new rt(`Calling 'cancelAndSet' on a disposed TimeoutTimer`);this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new rt(`Calling 'setIfNotSet' on a disposed TimeoutTimer`);this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},$n=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new rt(`Calling 'cancelAndSet' on a disposed IntervalTimer`);this.cancel();let r=n.setInterval(()=>{e()},t);this.disposable=A(()=>{n.clearInterval(r),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}};(function(){typeof globalThis.requestIdleCallback!=`function`||globalThis.cancelIdleCallback})();var er;(e=>{async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(typeof t<`u`)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(er||={});var tr=class e{static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromises(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new P,queueMicrotask(async()=>{let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static async toPromise(e){let t=[];for await(let n of e)t.push(n);return t}toPromise(){return e.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};tr.EMPTY=tr.fromArray([]);function nr(e){return 55296<=e&&e<=56319}function rr(e){return 56320<=e&&e<=57343}function ir(e,t){return(e-55296<<10)+(t-56320)+65536}function ar(e){return or(e,0)}function or(e,t){switch(typeof e){case`object`:return e===null?sr(349,t):Array.isArray(e)?ur(e,t):dr(e,t);case`string`:return lr(e,t);case`boolean`:return cr(e,t);case`number`:return sr(e,t);case`undefined`:return sr(937,t);default:return sr(617,t)}}function sr(e,t){return(t<<5)-t+e|0}function cr(e,t){return sr(e?433:863,t)}function lr(e,t){t=sr(149417,t);for(let n=0,r=e.length;nor(t,e),t)}function dr(e,t){return t=sr(181387,t),Object.keys(e).sort().reduce((t,n)=>(t=lr(n,t),or(e[n],t)),t)}function fr(e,t,n=32){let r=n-t,i=~((1<>>r)>>>0}function pr(e,t=0,n=e.byteLength,r=0){for(let i=0;ie.toString(16).padStart(2,`0`)).join(``):mr((e>>>0).toString(16),t/4)}var gr=class e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t=e.length;if(t===0)return;let n=this._buff,r=this._buffLen,i=this._leftoverHighSurrogate,a,o;for(i===0?(a=e.charCodeAt(0),o=0):(a=i,o=-1,i=0);;){let s=a;if(nr(a))if(o+1>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),hr(this._h0)+hr(this._h1)+hr(this._h2)+hr(this._h3)+hr(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,pr(this._buff,this._buffLen),this._buffLen>56&&(this._step(),pr(this._buff));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,fr(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let r=this._h0,i=this._h1,a=this._h2,o=this._h3,s=this._h4,c,l,u;for(let e=0;e<80;e++)e<20?(c=i&a|~i&o,l=1518500249):e<40?(c=i^a^o,l=1859775393):e<60?(c=i&a|i&o|a&o,l=2400959708):(c=i^a^o,l=3395469782),u=fr(r,5)+c+s+l+t.getUint32(e*4,!1)&4294967295,s=o,o=a,a=fr(i,30),i=r,r=u;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+s&4294967295}};gr._bigBlock32=new DataView(new ArrayBuffer(320));var{registerWindow:_r,getWindow:vr,getDocument:yr,getWindows:br,getWindowsCount:xr,getWindowId:Sr,getWindowById:Cr,hasWindow:wr,onDidRegisterWindow:Tr,onWillUnregisterWindow:Er,onDidUnregisterWindow:Dr}=function(){let e=new Map,t={window:kt,disposables:new Dt};e.set(kt.vscodeWindowId,t);let n=new P,r=new P,i=new P;function a(n,r){return(typeof n==`number`?e.get(n):void 0)??(r?t:void 0)}return{onDidRegisterWindow:n.event,onWillUnregisterWindow:i.event,onDidUnregisterWindow:r.event,registerWindow(t){if(e.has(t.vscodeWindowId))return j.None;let a=new Dt,o={window:t,disposables:a.add(new Dt)};return e.set(t.vscodeWindowId,o),a.add(A(()=>{e.delete(t.vscodeWindowId),r.fire(t)})),a.add(F(t,I.BEFORE_UNLOAD,()=>{i.fire(t)})),n.fire(o),a},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(e){return e.vscodeWindowId},hasWindow(t){return e.has(t)},getWindowById:a,getWindow(e){let t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;let n=e;return n?.view?n.view.window:kt},getDocument(e){return vr(e).document}}}(),Or=class{constructor(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&=(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,null)}};function F(e,t,n,r){return new Or(e,t,n,r)}function kr(e,t){return function(n){return t(new qn(e,n))}}function Ar(e){return function(t){return e(new Un(t))}}var jr=function(e,t,n,r){let i=n;return t===`click`||t===`mousedown`||t===`contextmenu`?i=kr(vr(e),n):(t===`keydown`||t===`keypress`||t===`keyup`)&&(i=Ar(n)),F(e,t,i,r)},Mr,Nr=class extends $n{constructor(e){super(),this.defaultTarget=e&&vr(e)}cancelAndSet(e,t,n){return super.cancelAndSet(e,t,n??this.defaultTarget)}},Pr=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Ze(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,n=new Map,r=new Map,i=i=>{n.set(i,!1);let a=e.get(i)??[];for(t.set(i,a),e.set(i,[]),r.set(i,!0);a.length>0;)a.sort(Pr.sort),a.shift().execute();r.set(i,!1)};Mr=(t,r,a=0)=>{let o=Sr(t),s=new Pr(r,a),c=e.get(o);return c||(c=[],e.set(o,c)),c.push(s),n.get(o)||(n.set(o,!0),t.requestAnimationFrame(()=>i(o))),s}})();var Fr=class e{constructor(e,t){this.width=e,this.height=t}with(t=this.width,n=this.height){return t!==this.width||n!==this.height?new e(t,n):this}static is(e){return typeof e==`object`&&typeof e.height==`number`&&typeof e.width==`number`}static lift(t){return t instanceof e?t:new e(t.width,t.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};Fr.None=new Fr(0,0);function Ir(e){let t=e.getBoundingClientRect(),n=vr(e);return{left:t.left+n.scrollX,top:t.top+n.scrollY,width:t.width,height:t.height}}new class{constructor(){this.mutationObservers=new Map}observe(e,t,n){let r=this.mutationObservers.get(e);r||(r=new Map,this.mutationObservers.set(e,r));let i=ar(n),a=r.get(i);if(a)a.users+=1;else{let o=new P,s=new MutationObserver(e=>o.fire(e));s.observe(e,n);let c=a={users:1,observer:s,onDidMutate:o.event};t.add(A(()=>{--c.users,c.users===0&&(o.dispose(),s.disconnect(),r?.delete(i),r?.size===0&&this.mutationObservers.delete(e))})),r.set(i,a)}return a.onDidMutate}};var I={CLICK:`click`,AUXCLICK:`auxclick`,DBLCLICK:`dblclick`,MOUSE_UP:`mouseup`,MOUSE_DOWN:`mousedown`,MOUSE_OVER:`mouseover`,MOUSE_MOVE:`mousemove`,MOUSE_OUT:`mouseout`,MOUSE_ENTER:`mouseenter`,MOUSE_LEAVE:`mouseleave`,MOUSE_WHEEL:`wheel`,POINTER_UP:`pointerup`,POINTER_DOWN:`pointerdown`,POINTER_MOVE:`pointermove`,POINTER_LEAVE:`pointerleave`,CONTEXT_MENU:`contextmenu`,WHEEL:`wheel`,KEY_DOWN:`keydown`,KEY_PRESS:`keypress`,KEY_UP:`keyup`,LOAD:`load`,BEFORE_UNLOAD:`beforeunload`,UNLOAD:`unload`,PAGE_SHOW:`pageshow`,PAGE_HIDE:`pagehide`,PASTE:`paste`,ABORT:`abort`,ERROR:`error`,RESIZE:`resize`,SCROLL:`scroll`,FULLSCREEN_CHANGE:`fullscreenchange`,WK_FULLSCREEN_CHANGE:`webkitfullscreenchange`,SELECT:`select`,CHANGE:`change`,SUBMIT:`submit`,RESET:`reset`,FOCUS:`focus`,FOCUS_IN:`focusin`,FOCUS_OUT:`focusout`,BLUR:`blur`,INPUT:`input`,STORAGE:`storage`,DRAG_START:`dragstart`,DRAG:`drag`,DRAG_ENTER:`dragenter`,DRAG_LEAVE:`dragleave`,DRAG_OVER:`dragover`,DROP:`drop`,DRAG_END:`dragend`,ANIMATION_START:rn?`webkitAnimationStart`:`animationstart`,ANIMATION_END:rn?`webkitAnimationEnd`:`animationend`,ANIMATION_ITERATION:rn?`webkitAnimationIteration`:`animationiteration`},Lr=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function Rr(e,t,n,...r){let i=Lr.exec(t);if(!i)throw Error(`Bad use of emmet`);let a=i[1]||`div`,o;return o=e===`http://www.w3.org/1999/xhtml`?document.createElement(a):document.createElementNS(e,a),i[3]&&(o.id=i[3]),i[4]&&(o.className=i[4].replace(/\./g,` `).trim()),n&&Object.entries(n).forEach(([e,t])=>{typeof t>`u`||(/^on\w+$/.test(e)?o[e]=t:e===`selected`?t&&o.setAttribute(e,`true`):o.setAttribute(e,t))}),o.append(...r),o}function zr(e,t,...n){return Rr(`http://www.w3.org/1999/xhtml`,e,t,...n)}zr.SVG=function(e,t,...n){return Rr(`http://www.w3.org/2000/svg`,e,t,...n)};var Br=class{constructor(e){this.domNode=e,this._maxWidth=``,this._width=``,this._height=``,this._top=``,this._left=``,this._bottom=``,this._right=``,this._paddingTop=``,this._paddingLeft=``,this._paddingBottom=``,this._paddingRight=``,this._fontFamily=``,this._fontWeight=``,this._fontSize=``,this._fontStyle=``,this._fontFeatureSettings=``,this._fontVariationSettings=``,this._textDecoration=``,this._lineHeight=``,this._letterSpacing=``,this._className=``,this._display=``,this._position=``,this._visibility=``,this._color=``,this._backgroundColor=``,this._layerHint=!1,this._contain=`none`,this._boxShadow=``}setMaxWidth(e){let t=L(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=L(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=L(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=L(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=L(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=L(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=L(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=L(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=L(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=L(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=L(e);this._paddingRight!==t&&(this._paddingRight=t,this.domNode.style.paddingRight=this._paddingRight)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=L(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=L(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=L(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?`translate3d(0px, 0px, 0px)`:``)}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function L(e){return typeof e==`number`?`${e}px`:e}function Vr(e){return new Br(e)}var Hr=class{constructor(){this._hooks=new Dt,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,n,r,i){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=i;let a=e;try{e.setPointerCapture(t),this._hooks.add(A(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{a=vr(e)}this._hooks.add(F(a,I.POINTER_MOVE,e=>{if(e.buttons!==n){this.stopMonitoring(!0);return}e.preventDefault(),this._pointerMoveCallback(e)})),this._hooks.add(F(a,I.POINTER_UP,e=>this.stopMonitoring(!0)))}};function Ur(e,t,n){let r=null,i=null;if(typeof n.value==`function`?(r=`value`,i=n.value,i.length!==0&&console.warn(`Memoize should only be used in functions with zero parameters`)):typeof n.get==`function`&&(r=`get`,i=n.get),!i)throw Error(`not supported`);let a=`$memoize$${t}`;n[r]=function(...e){return this.hasOwnProperty(a)||Object.defineProperty(this,a,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,e)}),this[a]}}var Wr;(e=>(e.Tap=`-xterm-gesturetap`,e.Change=`-xterm-gesturechange`,e.Start=`-xterm-gesturestart`,e.End=`-xterm-gesturesend`,e.Contextmenu=`-xterm-gesturecontextmenu`))(Wr||={});var Gr=class e extends j{constructor(){super(),this.dispatched=!1,this.targets=new jt,this.ignoreTargets=new jt,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(N.runAndSubscribe(Tr,({window:e,disposables:t})=>{t.add(F(e.document,`touchstart`,e=>this.onTouchStart(e),{passive:!1})),t.add(F(e.document,`touchend`,t=>this.onTouchEnd(e,t))),t.add(F(e.document,`touchmove`,e=>this.onTouchMove(e),{passive:!1}))},{window:kt,disposables:this._store}))}static addTarget(t){return e.isTouchDevice()?(e.INSTANCE||=Ct(new e),A(e.INSTANCE.targets.push(t))):j.None}static ignoreTarget(t){return e.isTouchDevice()?(e.INSTANCE||=Ct(new e),A(e.INSTANCE.ignoreTargets.push(t))):j.None}static isTouchDevice(){return`ontouchstart`in kt||navigator.maxTouchPoints>0}dispose(){this.handle&&=(this.handle.dispose(),null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&=(this.handle.dispose(),null);for(let n=0,r=e.targetTouches.length;n=e.HOLD_DELAY&&Math.abs(s.initialPageX-ot(s.rollingPageX))<30&&Math.abs(s.initialPageY-ot(s.rollingPageY))<30){let e=this.newGestureEvent(Wr.Contextmenu,s.initialTarget);e.pageX=ot(s.rollingPageX),e.pageY=ot(s.rollingPageY),this.dispatchEvent(e)}else if(i===1){let e=ot(s.rollingPageX),n=ot(s.rollingPageY),i=ot(s.rollingTimestamps)-s.rollingTimestamps[0],a=e-s.rollingPageX[0],o=n-s.rollingPageY[0],c=[...this.targets].filter(e=>s.initialTarget instanceof Node&&e.contains(s.initialTarget));this.inertia(t,c,r,Math.abs(a)/i,a>0?1:-1,e,Math.abs(o)/i,o>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(Wr.End,s.initialTarget)),delete this.activeTouches[o.identifier]}this.dispatched&&=(n.preventDefault(),n.stopPropagation(),!1)}newGestureEvent(e,t){let n=document.createEvent(`CustomEvent`);return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n}dispatchEvent(t){if(t.type===Wr.Tap){let n=new Date().getTime(),r=0;r=n-this._lastSetTapCountTime>e.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=n,t.tapCount=r}else (t.type===Wr.Change||t.type===Wr.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let e of this.ignoreTargets)if(e.contains(t.initialTarget))return;let e=[];for(let n of this.targets)if(n.contains(t.initialTarget)){let r=0,i=t.initialTarget;for(;i&&i!==n;)r++,i=i.parentElement;e.push([r,n])}e.sort((e,t)=>e[0]-t[0]);for(let[n,r]of e)r.dispatchEvent(t),this.dispatched=!0}}inertia(t,n,r,i,a,o,s,c,l){this.handle=Mr(t,()=>{let u=Date.now(),d=u-r,f=0,p=0,m=!0;i+=e.SCROLL_FRICTION*d,s+=e.SCROLL_FRICTION*d,i>0&&(m=!1,f=a*i*d),s>0&&(m=!1,p=c*s*d);let h=this.newGestureEvent(Wr.Change);h.translationX=f,h.translationY=p,n.forEach(e=>e.dispatchEvent(h)),m||this.inertia(t,n,u,i,a,o+f,s,c,l+p)})}onTouchMove(e){let t=Date.now();for(let n=0,r=e.changedTouches.length;n3&&(i.rollingPageX.shift(),i.rollingPageY.shift(),i.rollingTimestamps.shift()),i.rollingPageX.push(r.pageX),i.rollingPageY.push(r.pageY),i.rollingTimestamps.push(t)}this.dispatched&&=(e.preventDefault(),e.stopPropagation(),!1)}};Gr.SCROLL_FRICTION=-.005,Gr.HOLD_DELAY=700,Gr.CLEAR_TAP_COUNT_TIME=400,x([Ur],Gr,`isTouchDevice`,1);var Kr=Gr,qr=class extends j{onclick(e,t){this._register(F(e,I.CLICK,n=>t(new qn(vr(e),n))))}onmousedown(e,t){this._register(F(e,I.MOUSE_DOWN,n=>t(new qn(vr(e),n))))}onmouseover(e,t){this._register(F(e,I.MOUSE_OVER,n=>t(new qn(vr(e),n))))}onmouseleave(e,t){this._register(F(e,I.MOUSE_LEAVE,n=>t(new qn(vr(e),n))))}onkeydown(e,t){this._register(F(e,I.KEY_DOWN,e=>t(new Un(e))))}onkeyup(e,t){this._register(F(e,I.KEY_UP,e=>t(new Un(e))))}oninput(e,t){this._register(F(e,I.INPUT,t))}onblur(e,t){this._register(F(e,I.BLUR,t))}onfocus(e,t){this._register(F(e,I.FOCUS,t))}onchange(e,t){this._register(F(e,I.CHANGE,t))}ignoreGesture(e){return Kr.ignoreTarget(e)}},Jr=11,Yr=class extends qr{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement(`div`),this.bgDomNode.className=`arrow-background`,this.bgDomNode.style.position=`absolute`,this.bgDomNode.style.width=e.bgWidth+`px`,this.bgDomNode.style.height=e.bgHeight+`px`,typeof e.top<`u`&&(this.bgDomNode.style.top=`0px`),typeof e.left<`u`&&(this.bgDomNode.style.left=`0px`),typeof e.bottom<`u`&&(this.bgDomNode.style.bottom=`0px`),typeof e.right<`u`&&(this.bgDomNode.style.right=`0px`),this.domNode=document.createElement(`div`),this.domNode.className=e.className,this.domNode.style.position=`absolute`,this.domNode.style.width=Jr+`px`,this.domNode.style.height=Jr+`px`,typeof e.top<`u`&&(this.domNode.style.top=e.top+`px`),typeof e.left<`u`&&(this.domNode.style.left=e.left+`px`),typeof e.bottom<`u`&&(this.domNode.style.bottom=e.bottom+`px`),typeof e.right<`u`&&(this.domNode.style.right=e.right+`px`),this._pointerMoveMonitor=this._register(new Hr),this._register(jr(this.bgDomNode,I.POINTER_DOWN,e=>this._arrowPointerDown(e))),this._register(jr(this.domNode,I.POINTER_DOWN,e=>this._arrowPointerDown(e))),this._pointerdownRepeatTimer=this._register(new Nr),this._pointerdownScheduleRepeatTimer=this._register(new Qn)}_arrowPointerDown(e){!e.target||!(e.target instanceof Element)||(this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,vr(e))},200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,e=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault())}},Xr=class e{constructor(e,t,n,r,i,a,o){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,n|=0,r|=0,i|=0,a|=0,o|=0),this.rawScrollLeft=r,this.rawScrollTop=o,t<0&&(t=0),r+t>n&&(r=n-t),r<0&&(r=0),i<0&&(i=0),o+i>a&&(o=a-i),o<0&&(o=0),this.width=t,this.scrollWidth=n,this.scrollLeft=r,this.height=i,this.scrollHeight=a,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(t,n){return new e(this._forceIntegerValues,typeof t.width<`u`?t.width:this.width,typeof t.scrollWidth<`u`?t.scrollWidth:this.scrollWidth,n?this.rawScrollLeft:this.scrollLeft,typeof t.height<`u`?t.height:this.height,typeof t.scrollHeight<`u`?t.scrollHeight:this.scrollHeight,n?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new e(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<`u`?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<`u`?t.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){let n=this.width!==e.width,r=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,a=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:n,scrollWidthChanged:r,scrollLeftChanged:i,heightChanged:a,scrollHeightChanged:o,scrollTopChanged:s}}},Zr=class extends j{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new P),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Xr(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&=(this._smoothScrolling.dispose(),null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){let n=this._state.withScrollDimensions(e,t);this._setState(n,!!this._smoothScrolling),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&=(this._smoothScrolling.dispose(),null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>`u`?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>`u`?this._smoothScrolling.to.scrollTop:e.scrollTop};let n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;let r;r=t?new ti(this._smoothScrolling.from,n,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=r}else{let t=this._state.withScrollPosition(e);this._smoothScrolling=ti.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let n=this._state;n.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(n,t)))}},Qr=class{constructor(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}};function $r(e,t){let n=t-e;return function(t){return e+n*ri(t)}}function ei(e,t,n){return function(r){return r2.5*n){let r,i;return e{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?` fade`:``)))}},ai=140,oi=class extends qr{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new ii(e.visibility,`visible scrollbar `+e.extraScrollbarClassName,`invisible scrollbar `+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new Hr),this._shouldRender=!0,this.domNode=Vr(document.createElement(`div`)),this.domNode.setAttribute(`role`,`presentation`),this.domNode.setAttribute(`aria-hidden`,`true`),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition(`absolute`),this._register(F(this.domNode.domNode,I.POINTER_DOWN,e=>this._domNodePointerDown(e)))}_createArrow(e){let t=this._register(new Yr(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,r){this.slider=Vr(document.createElement(`div`)),this.slider.setClassName(`slider`),this.slider.setPosition(`absolute`),this.slider.setTop(e),this.slider.setLeft(t),typeof n==`number`&&this.slider.setWidth(n),typeof r==`number`&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.slider.setContain(`strict`),this.domNode.domNode.appendChild(this.slider.domNode),this._register(F(this.slider.domNode,I.POINTER_DOWN,e=>{e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))})),this.onclick(this.slider.domNode,e=>{e.leftButton&&e.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderPointerPosition(e);n<=i&&i<=r?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,n;if(e.target===this.domNode.domNode&&typeof e.offsetX==`number`&&typeof e.offsetY==`number`)t=e.offsetX,n=e.offsetY;else{let r=Ir(this.domNode.domNode);t=e.pageX-r.left,n=e.pageY-r.top}let r=this._pointerDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),n=this._sliderOrthogonalPointerPosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName(`active`,!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,e=>{let i=this._sliderOrthogonalPointerPosition(e),a=Math.abs(i-n);if(bn&&a>ai){this._setDesiredScrollPositionNow(r.getScrollPosition());return}let o=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(o))},()=>{this.slider.toggleClassName(`active`,!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}},si=class e{constructor(e,t,n,r,i,a){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=r,this._scrollSize=i,this._scrollPosition=a,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){let t=Math.round(e);return this._visibleSize===t?!1:(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){let t=Math.round(e);return this._scrollSize===t?!1:(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){let t=Math.round(e);return this._scrollPosition===t?!1:(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,n,r,i){let a=Math.max(0,n-e),o=Math.max(0,a-2*t),s=r>0&&r>n;if(!s)return{computedAvailableSize:Math.round(a),computedIsNeeded:s,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};let c=Math.round(Math.max(20,Math.floor(n*o/r))),l=(o-c)/(r-n),u=i*l;return{computedAvailableSize:Math.round(a),computedIsNeeded:s,computedSliderSize:Math.round(c),computedSliderRatio:l,computedSliderPosition:Math.round(u)}}_refreshComputedValues(){let t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize,n=this._scrollPosition;return t0&&Math.abs(e.deltaY)>0)return 1;let n=.5;if((!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(n+=.25),t){let r=Math.abs(e.deltaX),i=Math.abs(e.deltaY),a=Math.abs(t.deltaX),o=Math.abs(t.deltaY),s=Math.max(Math.min(r,a),1),c=Math.max(Math.min(i,o),1),l=Math.max(r,a),u=Math.max(i,o);l%s===0&&u%c===0&&(n-=.5)}return Math.min(Math.max(n,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}};mi.INSTANCE=new mi;var hi=mi,gi=class extends qr{constructor(e,t,n){super(),this._onScroll=this._register(new P),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new P),this.onWillScroll=this._onWillScroll.event,this._options=vi(t),this._scrollable=n,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)}));let r={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new li(this._scrollable,this._options,r)),this._horizontalScrollbar=this._register(new ci(this._scrollable,this._options,r)),this._domNode=document.createElement(`div`),this._domNode.className=`xterm-scrollable-element `+this._options.className,this._domNode.setAttribute(`role`,`presentation`),this._domNode.style.position=`relative`,this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Vr(document.createElement(`div`)),this._leftShadowDomNode.setClassName(`shadow`),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Vr(document.createElement(`div`)),this._topShadowDomNode.setClassName(`shadow`),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Vr(document.createElement(`div`)),this._topLeftShadowDomNode.setClassName(`shadow`),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onmouseleave(this._listenOnDomNode,e=>this._onMouseLeave(e)),this._hideTimeout=this._register(new Qn),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=wt(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,xn&&(this._options.className+=` mac`),this._domNode.className=`xterm-scrollable-element `+this._options.className}updateOptions(e){typeof e.handleMouseWheel<`u`&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<`u`&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<`u`&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<`u`&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<`u`&&(this._options.horizontal=e.horizontal),typeof e.vertical<`u`&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<`u`&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<`u`&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<`u`&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}setRevealOnScroll(e){this._revealOnScroll=e}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new Jn(e))}_setListeningToMouseWheel(e){this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=wt(this._mouseWheelToDispose),e)&&this._mouseWheelToDispose.push(F(this._listenOnDomNode,I.MOUSE_WHEEL,e=>{this._onMouseWheel(new Jn(e))},{passive:!1}))}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;let t=hi.INSTANCE;fi&&t.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let r=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&i+r===0?i=r=0:Math.abs(r)>=Math.abs(i)?i=0:r=0),this._options.flipAxes&&([r,i]=[i,r]);let a=!xn&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||a)&&!i&&(i=r,r=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,r*=this._options.fastScrollSensitivity);let o=this._scrollable.getFutureScrollPosition(),s={};if(r){let e=di*r,t=o.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(s,t)}if(i){let e=di*i,t=o.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(s,t)}s=this._scrollable.validateScrollPosition(s),(o.scrollLeft!==s.scrollLeft||o.scrollTop!==s.scrollTop)&&(fi&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),n=!0)}let r=n;!r&&this._options.alwaysConsumeMouseWheel&&(r=!0),!r&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(r=!0),r&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0,r=n?` left`:``,i=t?` top`:``,a=n||t?` top-left-corner`:``;this._leftShadowDomNode.setClassName(`shadow${r}`),this._topShadowDomNode.setClassName(`shadow${i}`),this._topLeftShadowDomNode.setClassName(`shadow${a}${i}${r}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),ui)}},_i=class extends gi{constructor(e,t,n){super(e,t,n)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};function vi(e){let t={lazyRender:typeof e.lazyRender<`u`?e.lazyRender:!1,className:typeof e.className<`u`?e.className:``,useShadows:typeof e.useShadows<`u`?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<`u`?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<`u`?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<`u`?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<`u`?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<`u`?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<`u`?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<`u`?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<`u`?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<`u`?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<`u`?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<`u`?e.listenOnDomNode:null,horizontal:typeof e.horizontal<`u`?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<`u`?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<`u`?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<`u`?e.horizontalHasArrows:!1,vertical:typeof e.vertical<`u`?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<`u`?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<`u`?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<`u`?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<`u`?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<`u`?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<`u`?e.verticalSliderSize:t.verticalScrollbarSize,xn&&(t.className+=` mac`),t}var yi=class extends j{constructor(e,t,n,r,i,a,o,s){super(),this._bufferService=n,this._optionsService=o,this._renderService=s,this._onRequestScrollLines=this._register(new P),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let c=this._register(new Zr({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:e=>Mr(r.window,e)}));this._register(this._optionsService.onSpecificOptionChange(`smoothScrollDuration`,()=>{c.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new _i(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},c)),this._register(this._optionsService.onMultipleOptionChange([`scrollSensitivity`,`fastScrollSensitivity`,`overviewRuler`],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(i.onProtocolChange(e=>{this._scrollableElement.updateOptions({handleMouseWheel:!(e&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(N.runAndSubscribe(a.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=a.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(A(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=r.mainDocument.createElement(`style`),t.appendChild(this._styleElement),this._register(A(()=>this._styleElement.remove())),this._register(N.runAndSubscribe(a.onChangeColors,()=>{this._styleElement.textContent=[`.xterm .xterm-scrollable-element > .scrollbar > .slider {`,` background: ${a.colors.scrollbarSliderBackground.css};`,`}`,`.xterm .xterm-scrollable-element > .scrollbar > .slider:hover {`,` background: ${a.colors.scrollbarSliderHoverBackground.css};`,`}`,`.xterm .xterm-scrollable-element > .scrollbar > .slider.active {`,` background: ${a.colors.scrollbarSliderActiveBackground.css};`,`}`].join(` +`)})),this._register(this._bufferService.onResize(()=>this.queueSync())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._latestYDisp=void 0,this.queueSync()})),this._register(this._bufferService.onScroll(()=>this._sync())),this._register(this._scrollableElement.onScroll(e=>this._handleScroll(e)))}scrollLines(e){let t=this._scrollableElement.getScrollPosition();this._scrollableElement.setScrollPosition({reuseAnimation:!0,scrollTop:t.scrollTop+e*this._renderService.dimensions.css.cell.height})}scrollToLine(e,t){t&&(this._latestYDisp=e),this._scrollableElement.setScrollPosition({reuseAnimation:!t,scrollTop:e*this._renderService.dimensions.css.cell.height})}_getChangeOptions(){return{mouseWheelScrollSensitivity:this._optionsService.rawOptions.scrollSensitivity,fastScrollSensitivity:this._optionsService.rawOptions.fastScrollSensitivity,verticalScrollbarSize:this._optionsService.rawOptions.overviewRuler?.width||14}}queueSync(e){e!==void 0&&(this._latestYDisp=e),this._queuedAnimationFrame===void 0&&(this._queuedAnimationFrame=this._renderService.addRefreshCallback(()=>{this._queuedAnimationFrame=void 0,this._sync(this._latestYDisp)}))}_sync(e=this._bufferService.buffer.ydisp){!this._renderService||this._isSyncing||(this._isSyncing=!0,this._suppressOnScrollHandler=!0,this._scrollableElement.setScrollDimensions({height:this._renderService.dimensions.css.canvas.height,scrollHeight:this._renderService.dimensions.css.cell.height*this._bufferService.buffer.lines.length}),this._suppressOnScrollHandler=!1,e!==this._latestYDisp&&this._scrollableElement.setScrollPosition({scrollTop:e*this._renderService.dimensions.css.cell.height}),this._isSyncing=!1)}_handleScroll(e){if(!this._renderService||this._isHandlingScroll||this._suppressOnScrollHandler)return;this._isHandlingScroll=!0;let t=Math.round(e.scrollTop/this._renderService.dimensions.css.cell.height),n=t-this._bufferService.buffer.ydisp;n!==0&&(this._latestYDisp=t,this._onRequestScrollLines.fire(n)),this._isHandlingScroll=!1}};yi=x([S(2,O),S(3,Ue),S(4,Me),S(5,Je),S(6,k),S(7,Ge)],yi);var bi=class extends j{constructor(e,t,n,r,i){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=n,this._decorationService=r,this._renderService=i,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement(`div`),this._container.classList.add(`xterm-decoration-container`),this._screenElement.appendChild(this._container),this._register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this._register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this._register(this._decorationService.onDecorationRemoved(e=>this._removeDecoration(e))),this._register(A(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){let t=this._coreBrowserService.mainDocument.createElement(`div`);t.classList.add(`xterm-decoration`),t.classList.toggle(`xterm-decoration-top-layer`,e?.options?.layer===`top`),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,t.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,t.style.top=`${(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height}px`,t.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let n=e.options.x??0;return n&&n>this._bufferService.cols&&(t.style.display=`none`),this._refreshXPosition(e,t),t}_refreshStyle(e){let t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display=`none`,e.onRenderEmitter.fire(e.element));else{let n=this._decorationElements.get(e);n||(n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n),e.onDispose(()=>{this._decorationElements.delete(e),n.remove()})),n.style.display=this._altBufferIsActive?`none`:`block`,this._altBufferIsActive||(n.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,n.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,n.style.top=`${t*this._renderService.dimensions.css.cell.height}px`,n.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`),e.onRenderEmitter.fire(n)}}_refreshXPosition(e,t=e.element){if(!t)return;let n=e.options.x??0;(e.options.anchor||`left`)===`right`?t.style.right=n?`${n*this._renderService.dimensions.css.cell.width}px`:``:t.style.left=n?`${n*this._renderService.dimensions.css.cell.width}px`:``}_removeDecoration(e){this._decorationElements.get(e)?.remove(),this._decorationElements.delete(e),e.dispose()}};bi=x([S(1,O),S(2,Ue),S(3,ze),S(4,Ge)],bi);var xi=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(let t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position)){this._addLineToZone(t,e.marker.line);return}}if(this._zonePoolIndex=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,n){return t>=e.startBufferLine-this._linePadding[n||`full`]&&t<=e.endBufferLine+this._linePadding[n||`full`]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}},Si={full:0,left:0,center:0,right:0},Ci={full:0,left:0,center:0,right:0},wi={full:0,left:0,center:0,right:0},Ti=class extends j{constructor(e,t,n,r,i,a,o,s){super(),this._viewportElement=e,this._screenElement=t,this._bufferService=n,this._decorationService=r,this._renderService=i,this._optionsService=a,this._themeService=o,this._coreBrowserService=s,this._colorZoneStore=new xi,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement(`canvas`),this._canvas.classList.add(`xterm-decoration-overview-ruler`),this._refreshCanvasDimensions(),this._viewportElement.parentElement?.insertBefore(this._canvas,this._viewportElement),this._register(A(()=>this._canvas?.remove()));let c=this._canvas.getContext(`2d`);if(c)this._ctx=c;else throw Error(`Ctx cannot be null`);this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this._register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0))),this._register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?`none`:`block`})),this._register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})),this._register(this._renderService.onRender(()=>{(!this._containerHeight||this._containerHeight!==this._screenElement.clientHeight)&&(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._register(this._optionsService.onSpecificOptionChange(`overviewRuler`,()=>this._queueRefresh(!0))),this._register(this._themeService.onChangeColors(()=>this._queueRefresh())),this._queueRefresh(!0)}get _width(){return this._optionsService.options.overviewRuler?.width||0}_refreshDrawConstants(){let e=Math.floor((this._canvas.width-1)/3),t=Math.ceil((this._canvas.width-1)/3);Ci.full=this._canvas.width,Ci.left=e,Ci.center=t,Ci.right=e,this._refreshDrawHeightConstants(),wi.full=1,wi.left=1,wi.center=1+Ci.left,wi.right=1+Ci.left+Ci.center}_refreshDrawHeightConstants(){Si.full=Math.round(2*this._coreBrowserService.dpr);let e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowserService.dpr);Si.left=t,Si.center=t,Si.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Si.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Si.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Si.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Si.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let e of this._decorationService.decorations)this._colorZoneStore.addDecoration(e);this._ctx.lineWidth=1,this._renderRulerOutline();let e=this._colorZoneStore.zones;for(let t of e)t.position!==`full`&&this._renderColorZone(t);for(let t of e)t.position===`full`&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderRulerOutline(){this._ctx.fillStyle=this._themeService.colors.overviewRulerBorder.css,this._ctx.fillRect(0,0,1,this._canvas.height),this._optionsService.rawOptions.overviewRuler.showTopBorder&&this._ctx.fillRect(1,0,this._canvas.width-1,1),this._optionsService.rawOptions.overviewRuler.showBottomBorder&&this._ctx.fillRect(1,this._canvas.height-1,this._canvas.width-1,this._canvas.height)}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(wi[e.position||`full`],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-Si[e.position||`full`]/2),Ci[e.position||`full`],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+Si[e.position||`full`]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};Ti=x([S(2,O),S(3,ze),S(4,Ge),S(5,k),S(6,Je),S(7,Ue)],Ti);var R;(e=>(e.NUL=`\0`,e.SOH=``,e.STX=``,e.ETX=``,e.EOT=``,e.ENQ=``,e.ACK=``,e.BEL=`\x07`,e.BS=`\b`,e.HT=` `,e.LF=` +`,e.VT=`\v`,e.FF=`\f`,e.CR=`\r`,e.SO=``,e.SI=``,e.DLE=``,e.DC1=``,e.DC2=``,e.DC3=``,e.DC4=``,e.NAK=``,e.SYN=``,e.ETB=``,e.CAN=``,e.EM=``,e.SUB=``,e.ESC=`\x1B`,e.FS=``,e.GS=``,e.RS=``,e.US=``,e.SP=` `,e.DEL=``))(R||={});var Ei;(e=>(e.PAD=`€`,e.HOP=``,e.BPH=`‚`,e.NBH=`ƒ`,e.IND=`„`,e.NEL=`…`,e.SSA=`†`,e.ESA=`‡`,e.HTS=`ˆ`,e.HTJ=`‰`,e.VTS=`Š`,e.PLD=`‹`,e.PLU=`Œ`,e.RI=``,e.SS2=`Ž`,e.SS3=``,e.DCS=``,e.PU1=`‘`,e.PU2=`’`,e.STS=`“`,e.CCH=`”`,e.MW=`•`,e.SPA=`–`,e.EPA=`—`,e.SOS=`˜`,e.SGCI=`™`,e.SCI=`š`,e.CSI=`›`,e.ST=`œ`,e.OSC=``,e.PM=`ž`,e.APC=`Ÿ`))(Ei||={});var Di;(e=>e.ST=`${R.ESC}\\`)(Di||={});var Oi=class{constructor(e,t,n,r,i,a){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=r,this._coreService=i,this._renderService=a,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=``}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent=``,this._dataAlreadySent=``,this._compositionView.classList.add(`active`)}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(e.keyCode===20||e.keyCode===229||e.keyCode===16||e.keyCode===17||e.keyCode===18)return!1;this._finalizeComposition(!1)}return e.keyCode===229?(this._handleAnyTextareaChanges(),!1):!0}_finalizeComposition(e){if(this._compositionView.classList.remove(`active`),this._isComposing=!1,e){let e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){this._isSendingComposition=!1;let t;e.start+=this._dataAlreadySent.length,t=this._isComposing?this._textarea.value.substring(e.start,this._compositionPosition.start):this._textarea.value.substring(e.start),t.length>0&&this._coreService.triggerDataEvent(t,!0)}},0)}else{this._isSendingComposition=!1;let e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){let e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let t=this._textarea.value,n=t.replace(e,``);this._dataAlreadySent=n,t.length>e.length?this._coreService.triggerDataEvent(n,!0):t.lengththis.updateCompositionElements(!0),0)}}};Oi=x([S(2,O),S(3,k),S(4,Ne),S(5,Ge)],Oi);var z=0,B=0,V=0,H=0,ki={css:`#00000000`,rgba:0},U;(e=>{function t(e,t,n,r){return r===void 0?`#${ji(e)}${ji(t)}${ji(n)}`:`#${ji(e)}${ji(t)}${ji(n)}${ji(r)}`}e.toCss=t;function n(e,t,n,r=255){return(e<<24|t<<16|n<<8|r)>>>0}e.toRgba=n;function r(t,n,r,i){return{css:e.toCss(t,n,r,i),rgba:e.toRgba(t,n,r,i)}}e.toColor=r})(U||={});var W;(e=>{function t(e,t){if(H=(t.rgba&255)/255,H===1)return{css:t.css,rgba:t.rgba};let n=t.rgba>>24&255,r=t.rgba>>16&255,i=t.rgba>>8&255,a=e.rgba>>24&255,o=e.rgba>>16&255,s=e.rgba>>8&255;return z=a+Math.round((n-a)*H),B=o+Math.round((r-o)*H),V=s+Math.round((i-s)*H),{css:U.toCss(z,B,V),rgba:U.toRgba(z,B,V)}}e.blend=t;function n(e){return(e.rgba&255)==255}e.isOpaque=n;function r(e,t,n){let r=Ai.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return U.toColor(r>>24&255,r>>16&255,r>>8&255)}e.ensureContrastRatio=r;function i(e){let t=(e.rgba|255)>>>0;return[z,B,V]=Ai.toChannels(t),{css:U.toCss(z,B,V),rgba:t}}e.opaque=i;function a(e,t){return H=Math.round(t*255),[z,B,V]=Ai.toChannels(e.rgba),{css:U.toCss(z,B,V,H),rgba:U.toRgba(z,B,V,H)}}e.opacity=a;function o(e,t){return H=e.rgba&255,a(e,H*t/255)}e.multiplyOpacity=o;function s(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}e.toColorRGB=s})(W||={});var G;(e=>{let t,n;try{let e=document.createElement(`canvas`);e.width=1,e.height=1;let r=e.getContext(`2d`,{willReadFrequently:!0});r&&(t=r,t.globalCompositeOperation=`copy`,n=t.createLinearGradient(0,0,1,1))}catch{}function r(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return z=parseInt(e.slice(1,2).repeat(2),16),B=parseInt(e.slice(2,3).repeat(2),16),V=parseInt(e.slice(3,4).repeat(2),16),U.toColor(z,B,V);case 5:return z=parseInt(e.slice(1,2).repeat(2),16),B=parseInt(e.slice(2,3).repeat(2),16),V=parseInt(e.slice(3,4).repeat(2),16),H=parseInt(e.slice(4,5).repeat(2),16),U.toColor(z,B,V,H);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}let r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return z=parseInt(r[1]),B=parseInt(r[2]),V=parseInt(r[3]),H=Math.round((r[5]===void 0?1:parseFloat(r[5]))*255),U.toColor(z,B,V,H);if(!t||!n||(t.fillStyle=n,t.fillStyle=e,typeof t.fillStyle!=`string`)||(t.fillRect(0,0,1,1),[z,B,V,H]=t.getImageData(0,0,1,1).data,H!==255))throw Error(`css.toColor: Unsupported css format`);return{rgba:U.toRgba(z,B,V,H),css:e}}e.toColor=r})(G||={});var K;(e=>{function t(e){return n(e>>16&255,e>>8&255,e&255)}e.relativeLuminance=t;function n(e,t,n){let r=e/255,i=t/255,a=n/255,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4,s=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,c=a<=.03928?a/12.92:((a+.055)/1.055)**2.4;return o*.2126+s*.7152+c*.0722}e.relativeLuminance2=n})(K||={});var Ai;(e=>{function t(e,t){if(H=(t&255)/255,H===1)return t;let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=e>>24&255,o=e>>16&255,s=e>>8&255;return z=a+Math.round((n-a)*H),B=o+Math.round((r-o)*H),V=s+Math.round((i-s)*H),U.toRgba(z,B,V)}e.blend=t;function n(e,t,n){let a=K.relativeLuminance(e>>8),o=K.relativeLuminance(t>>8);if(Mi(a,o)>8));if(sMi(a,K.relativeLuminance(r>>8))?o:r}return o}let s=i(e,t,n),c=Mi(a,K.relativeLuminance(s>>8));if(cMi(a,K.relativeLuminance(i>>8))?s:i}return s}}e.ensureContrastRatio=n;function r(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=Mi(K.relativeLuminance2(o,s,c),K.relativeLuminance2(r,i,a));for(;l0||s>0||c>0);)o-=Math.max(0,Math.ceil(o*.1)),s-=Math.max(0,Math.ceil(s*.1)),c-=Math.max(0,Math.ceil(c*.1)),l=Mi(K.relativeLuminance2(o,s,c),K.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.reduceLuminance=r;function i(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=Mi(K.relativeLuminance2(o,s,c),K.relativeLuminance2(r,i,a));for(;l>>0}e.increaseLuminance=i;function a(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}e.toChannels=a})(Ai||={});function ji(e){let t=e.toString(16);return t.length<2?`0`+t:t}function Mi(e,t){return e1){let e=this._getJoinedRanges(r,o,a,t,i);for(let t=0;t1){let e=this._getJoinedRanges(r,o,a,t,i);for(let t=0;t=se,x=b,S=this._workCell;if(f.length>0&&b===f[0][0]&&ue){let r=f.shift(),i=this._isCellInSelection(r[0],t);for(v=r[0]+1;v=r[1],ue?(le=!0,S=new Ni(this._workCell,e.translateToString(!0,r[0],r[1]),r[1]-r[0]),x=r[1]-1,m=S.getWidth()):se=r[1]}let C=this._isCellInSelection(b,t),de=n&&b===a,w=ce&&b>=l&&b<=u,fe=!1;this._decorationService.forEachDecorationAtCell(b,t,void 0,e=>{fe=!0});let pe=S.getChars()||Ce;if(pe===` `&&(S.isUnderline()||S.isOverline())&&(pe=`\xA0`),oe=m*s-c.get(pe,S.isBold(),S.isItalic()),!h)h=this._document.createElement(`span`);else if(g&&(C&&ae||!C&&!ae&&S.bg===ee)&&(C&&ae&&p.selectionForeground||S.fg===te)&&S.extended.ext===ne&&w===re&&oe===ie&&!de&&!le&&!fe&&ue){S.isInvisible()?_+=Ce:_+=pe,g++;continue}else g&&(h.textContent=_),h=this._document.createElement(`span`),g=0,_=``;if(ee=S.bg,te=S.fg,ne=S.extended.ext,re=w,ie=oe,ae=C,le&&a>=b&&a<=x&&(a=b),!this._coreService.isCursorHidden&&de&&this._coreService.isCursorInitialized){if(y.push(`xterm-cursor`),this._coreBrowserService.isFocused)o&&y.push(`xterm-cursor-blink`),y.push(r===`bar`?`xterm-cursor-bar`:r===`underline`?`xterm-cursor-underline`:`xterm-cursor-block`);else if(i)switch(i){case`outline`:y.push(`xterm-cursor-outline`);break;case`block`:y.push(`xterm-cursor-block`);break;case`bar`:y.push(`xterm-cursor-bar`);break;case`underline`:y.push(`xterm-cursor-underline`);break;default:break}}if(S.isBold()&&y.push(`xterm-bold`),S.isItalic()&&y.push(`xterm-italic`),S.isDim()&&y.push(`xterm-dim`),_=S.isInvisible()?Ce:S.getChars()||Ce,S.isUnderline()&&(y.push(`xterm-underline-${S.extended.underlineStyle}`),_===` `&&(_=`\xA0`),!S.isUnderlineColorDefault()))if(S.isUnderlineColorRGB())h.style.textDecorationColor=`rgb(${we.toColorRGB(S.getUnderlineColor()).join(`,`)})`;else{let e=S.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&S.isBold()&&e<8&&(e+=8),h.style.textDecorationColor=p.ansi[e].css}S.isOverline()&&(y.push(`xterm-overline`),_===` `&&(_=`\xA0`)),S.isStrikethrough()&&y.push(`xterm-strikethrough`),w&&(h.style.textDecoration=`underline`);let T=S.getFgColor(),me=S.getFgColorMode(),E=S.getBgColor(),he=S.getBgColorMode(),ge=!!S.isInverse();if(ge){let e=T;T=E,E=e;let t=me;me=he,he=t}let _e,ve,ye=!1;this._decorationService.forEachDecorationAtCell(b,t,void 0,e=>{e.options.layer!==`top`&&ye||(e.backgroundColorRGB&&(he=50331648,E=e.backgroundColorRGB.rgba>>8&16777215,_e=e.backgroundColorRGB),e.foregroundColorRGB&&(me=50331648,T=e.foregroundColorRGB.rgba>>8&16777215,ve=e.foregroundColorRGB),ye=e.options.layer===`top`)}),!ye&&C&&(_e=this._coreBrowserService.isFocused?p.selectionBackgroundOpaque:p.selectionInactiveBackgroundOpaque,E=_e.rgba>>8&16777215,he=50331648,ye=!0,p.selectionForeground&&(me=50331648,T=p.selectionForeground.rgba>>8&16777215,ve=p.selectionForeground)),ye&&y.push(`xterm-decoration-top`);let be;switch(he){case 16777216:case 33554432:be=p.ansi[E],y.push(`xterm-bg-${E}`);break;case 50331648:be=U.toColor(E>>16,E>>8&255,E&255),this._addStyle(h,`background-color:#${Vi((E>>>0).toString(16),`0`,6)}`);break;default:ge?(be=p.foreground,y.push(`xterm-bg-257`)):be=p.background}switch(_e||S.isDim()&&(_e=W.multiplyOpacity(be,.5)),me){case 16777216:case 33554432:S.isBold()&&T<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(T+=8),this._applyMinimumContrast(h,be,p.ansi[T],S,_e,void 0)||y.push(`xterm-fg-${T}`);break;case 50331648:let e=U.toColor(T>>16&255,T>>8&255,T&255);this._applyMinimumContrast(h,be,e,S,_e,ve)||this._addStyle(h,`color:#${Vi(T.toString(16),`0`,6)}`);break;default:this._applyMinimumContrast(h,be,p.foreground,S,_e,ve)||ge&&y.push(`xterm-fg-257`)}y.length&&=(h.className=y.join(` `),0),!de&&!le&&!fe&&ue?g++:h.textContent=_,oe!==this.defaultSpacing&&(h.style.letterSpacing=`${oe}px`),d.push(h),b=x}return h&&g&&(h.textContent=_),d}_applyMinimumContrast(e,t,n,r,i,a){if(this._optionsService.rawOptions.minimumContrastRatio===1||Li(r.getCode()))return!1;let o=this._getContrastCache(r),s;if(!i&&!a&&(s=o.getColor(t.rgba,n.rgba)),s===void 0){let e=this._optionsService.rawOptions.minimumContrastRatio/(r.isDim()?2:1);s=W.ensureContrastRatio(i||t,a||n,e),o.setColor((i||t).rgba,(a||n).rgba,s??null)}return s?(this._addStyle(e,`color:${s.css}`),!0):!1}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute(`style`,`${e.getAttribute(`style`)||``}${t};`)}_isCellInSelection(e,t){let n=this._selectionStart,r=this._selectionEnd;return!n||!r?!1:this._columnSelectMode?n[0]<=r[0]?e>=n[0]&&t>=n[1]&&e=n[1]&&e>=r[0]&&t<=r[1]:t>n[1]&&t=n[0]&&e=n[0]}};Bi=x([S(1,qe),S(2,k),S(3,Ue),S(4,Ne),S(5,ze),S(6,Je)],Bi);function Vi(e,t,n){for(;e.length0&&(this._flat[r]=t),t}let i=e;t&&(i+=`B`),n&&(i+=`I`);let a=this._holey.get(i);if(a===void 0){let r=0;t&&(r|=1),n&&(r|=2),a=this._measure(e,r),a>0&&this._holey.set(i,a)}return a}_measure(e,t){let n=this._measureElements[t];return n.textContent=e.repeat(32),n.offsetWidth/32}},Ui=class{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,n,r=!1){if(this.selectionStart=t,this.selectionEnd=n,!t||!n||t[0]===n[0]&&t[1]===n[1]){this.clear();return}let i=e.buffers.active.ydisp,a=t[1]-i,o=n[1]-i,s=Math.max(a,0),c=Math.min(o,e.rows-1);if(s>=e.rows||c<0){this.clear();return}this.hasSelection=!0,this.columnSelectMode=r,this.viewportStartRow=a,this.viewportEndRow=o,this.viewportCappedStartRow=s,this.viewportCappedEndRow=c,this.startCol=t[0],this.endCol=n[0]}isCellSelected(e,t,n){return this.hasSelection?(n-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&n>=this.viewportCappedStartRow&&t=this.viewportCappedStartRow&&t>=this.endCol&&n<=this.viewportCappedEndRow:n>this.viewportStartRow&&n=this.startCol&&t=this.startCol):!1}};function Wi(){return new Ui}var Gi=`xterm-dom-renderer-owner-`,Ki=`xterm-rows`,qi=`xterm-fg-`,Ji=`xterm-bg-`,Yi=`xterm-focus`,Xi=`xterm-selection`,Zi=1,Qi=class extends j{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p){super(),this._terminal=e,this._document=t,this._element=n,this._screenElement=r,this._viewportElement=i,this._helperContainer=a,this._linkifier2=o,this._charSizeService=c,this._optionsService=l,this._bufferService=u,this._coreService=d,this._coreBrowserService=f,this._themeService=p,this._terminalClass=Zi++,this._rowElements=[],this._selectionRenderModel=Wi(),this.onRequestRedraw=this._register(new P).event,this._rowContainer=this._document.createElement(`div`),this._rowContainer.classList.add(Ki),this._rowContainer.style.lineHeight=`normal`,this._rowContainer.setAttribute(`aria-hidden`,`true`),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement(`div`),this._selectionContainer.classList.add(Xi),this._selectionContainer.setAttribute(`aria-hidden`,`true`),this.dimensions=Ri(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(e=>this._injectCss(e))),this._injectCss(this._themeService.colors),this._rowFactory=s.createInstance(Bi,document),this._element.classList.add(Gi+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(e=>this._handleLinkHover(e))),this._register(this._linkifier2.onHideLinkUnderline(e=>this._handleLinkLeave(e))),this._register(A(()=>{this._element.classList.remove(Gi+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new Hi(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let e of this._rowElements)e.style.width=`${this.dimensions.css.canvas.width}px`,e.style.height=`${this.dimensions.css.cell.height}px`,e.style.lineHeight=`${this.dimensions.css.cell.height}px`,e.style.overflow=`hidden`;this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement(`style`),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${Ki} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=this._document.createElement(`style`),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${Ki} { pointer-events: none; color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${Ki} .xterm-dim { color: ${W.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let n=`blink_underline_${this._terminalClass}`,r=`blink_bar_${this._terminalClass}`,i=`blink_block_${this._terminalClass}`;t+=`@keyframes ${n} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${r} { 50% { box-shadow: none; }}`,t+=`@keyframes ${i} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${Ki}.${Yi} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${Ki}.${Yi} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${Ki}.${Yi} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${i} 1s step-end infinite;}${this._terminalSelector} .${Ki} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${Ki} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${Ki} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${Ki} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${Ki} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${Xi} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${Xi} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${Xi} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[n,r]of e.ansi.entries())t+=`${this._terminalSelector} .${qi}${n} { color: ${r.css}; }${this._terminalSelector} .${qi}${n}.xterm-dim { color: ${W.multiplyOpacity(r,.5).css}; }${this._terminalSelector} .${Ji}${n} { background-color: ${r.css}; }`;t+=`${this._terminalSelector} .${qi}257 { color: ${W.opaque(e.background).css}; }${this._terminalSelector} .${qi}257.xterm-dim { color: ${W.multiplyOpacity(W.opaque(e.background),.5).css}; }${this._terminalSelector} .${Ji}257 { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){let e=this.dimensions.css.cell.width-this._widthCache.get(`W`,!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let e=this._rowElements.length;e<=t;e++){let e=this._document.createElement(`div`);this._rowContainer.appendChild(e),this._rowElements.push(e)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(Yi),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(Yi),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,n){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,n),this.renderRows(0,this._bufferService.rows-1),!e||!t||(this._selectionRenderModel.update(this._terminal,e,t,n),!this._selectionRenderModel.hasSelection))return;let r=this._selectionRenderModel.viewportStartRow,i=this._selectionRenderModel.viewportEndRow,a=this._selectionRenderModel.viewportCappedStartRow,o=this._selectionRenderModel.viewportCappedEndRow,s=this._document.createDocumentFragment();if(n){let n=e[0]>t[0];s.appendChild(this._createSelectionElement(a,n?t[0]:e[0],n?e[0]:t[0],o-a+1))}else{let n=r===a?e[0]:0,c=a===i?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(a,n,c));let l=o-a-1;if(s.appendChild(this._createSelectionElement(a+1,0,this._bufferService.cols,l)),a!==o){let e=i===o?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(s)}_createSelectionElement(e,t,n,r=1){let i=this._document.createElement(`div`),a=t*this.dimensions.css.cell.width,o=this.dimensions.css.cell.width*(n-t);return a+o>this.dimensions.css.canvas.width&&(o=this.dimensions.css.canvas.width-a),i.style.height=`${r*this.dimensions.css.cell.height}px`,i.style.top=`${e*this.dimensions.css.cell.height}px`,i.style.left=`${a}px`,i.style.width=`${o}px`,i}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let e of this._rowElements)e.replaceChildren()}renderRows(e,t){let n=this._bufferService.buffer,r=n.ybase+n.y,i=Math.min(n.x,this._bufferService.cols-1),a=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,o=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,s=this._optionsService.rawOptions.cursorInactiveStyle;for(let c=e;c<=t;c++){let e=c+n.ydisp,t=this._rowElements[c],l=n.lines.get(e);if(!t||!l)break;t.replaceChildren(...this._rowFactory.createRow(l,e,e===r,o,s,i,a,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${Gi}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,n,r,i,a){n<0&&(e=0),r<0&&(t=0);let o=this._bufferService.rows-1;n=Math.max(Math.min(n,o),0),r=Math.max(Math.min(r,o),0),i=Math.min(i,this._bufferService.cols);let s=this._bufferService.buffer,c=s.ybase+s.y,l=Math.min(s.x,i-1),u=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,f=this._optionsService.rawOptions.cursorInactiveStyle;for(let o=n;o<=r;++o){let p=o+s.ydisp,m=this._rowElements[o],h=s.lines.get(p);if(!m||!h)break;m.replaceChildren(...this._rowFactory.createRow(h,p,p===c,d,f,l,u,this.dimensions.css.cell.width,this._widthCache,a?o===n?e:0:-1,a?(o===r?t:i)-1:-1))}}};Qi=x([S(7,Fe),S(8,He),S(9,k),S(10,O),S(11,Ne),S(12,Ue),S(13,Je)],Qi);var $i=class extends j{constructor(e,t,n){super(),this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=this._register(new P),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new na(this._optionsService))}catch{this._measureStrategy=this._register(new ta(e,t,this._optionsService))}this._register(this._optionsService.onMultipleOptionChange([`fontFamily`,`fontSize`],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){let e=this._measureStrategy.measure();(e.width!==this.width||e.height!==this.height)&&(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};$i=x([S(2,k)],$i);var ea=class extends j{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(e,t){e!==void 0&&e>0&&t!==void 0&&t>0&&(this._result.width=e,this._result.height=t)}},ta=class extends ea{constructor(e,t,n){super(),this._document=e,this._parentElement=t,this._optionsService=n,this._measureElement=this._document.createElement(`span`),this._measureElement.classList.add(`xterm-char-measure-element`),this._measureElement.textContent=`W`.repeat(32),this._measureElement.setAttribute(`aria-hidden`,`true`),this._measureElement.style.whiteSpace=`pre`,this._measureElement.style.fontKerning=`none`,this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}},na=class extends ea{constructor(e){super(),this._optionsService=e,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext(`2d`);let t=this._ctx.measureText(`W`);if(!(`width`in t&&`fontBoundingBoxAscent`in t&&`fontBoundingBoxDescent`in t))throw Error(`Required font metrics not supported`)}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let e=this._ctx.measureText(`W`);return this._validateAndSet(e.width,e.fontBoundingBoxAscent+e.fontBoundingBoxDescent),this._result}},ra=class extends j{constructor(e,t,n){super(),this._textarea=e,this._window=t,this.mainDocument=n,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=this._register(new ia(this._window)),this._onDprChange=this._register(new P),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new P),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(e=>this._screenDprMonitor.setWindow(e))),this._register(N.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(F(this._textarea,`focus`,()=>this._isFocused=!0)),this._register(F(this._textarea,`blur`,()=>this._isFocused=!1))}get window(){return this._window}set window(e){this._window!==e&&(this._window=e,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}},ia=class extends j{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new Ot),this._onDprChange=this._register(new P),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(A(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=F(this._parentWindow,`resize`,()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){this._outerListener&&(this._resolutionMediaMatchList?.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){!this._resolutionMediaMatchList||!this._outerListener||(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}},aa=class extends j{constructor(){super(),this.linkProviders=[],this._register(A(()=>this.linkProviders.length=0))}registerLinkProvider(e){return this.linkProviders.push(e),{dispose:()=>{let t=this.linkProviders.indexOf(e);t!==-1&&this.linkProviders.splice(t,1)}}}};function oa(e,t,n){let r=n.getBoundingClientRect(),i=e.getComputedStyle(n),a=parseInt(i.getPropertyValue(`padding-left`)),o=parseInt(i.getPropertyValue(`padding-top`));return[t.clientX-r.left-a,t.clientY-r.top-o]}function sa(e,t,n,r,i,a,o,s,c){if(!a)return;let l=oa(e,t,n);if(l)return l[0]=Math.ceil((l[0]+(c?o/2:0))/o),l[1]=Math.ceil(l[1]/s),l[0]=Math.min(Math.max(l[0],1),r+ +!!c),l[1]=Math.min(Math.max(l[1],1),i),l}var ca=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,n,r,i){return sa(window,e,t,n,r,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,i)}getMouseReportCoords(e,t){let n=oa(window,e,t);if(this._charSizeService.hasValidSize)return n[0]=Math.min(Math.max(n[0],0),this._renderService.dimensions.css.canvas.width-1),n[1]=Math.min(Math.max(n[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(n[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(n[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(n[0]),y:Math.floor(n[1])}}};ca=x([S(0,Ge),S(1,He)],ca);var la=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&=(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()),this._animationFrame}refresh(e,t,n){this._rowCount=n,e=e===void 0?0:e,t=t===void 0?this._rowCount-1:t,this._rowStart=this._rowStart===void 0?e:Math.min(this._rowStart,e),this._rowEnd=this._rowEnd===void 0?t:Math.max(this._rowEnd,t),!this._animationFrame&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0){this._runRefreshCallbacks();return}let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}},ua={};ue(ua,{getSafariVersion:()=>_a,isChromeOS:()=>Ca,isFirefox:()=>ma,isIpad:()=>ya,isIphone:()=>ba,isLegacyEdge:()=>ha,isLinux:()=>Sa,isMac:()=>va,isNode:()=>da,isSafari:()=>ga,isWindows:()=>xa});var da=typeof process<`u`&&`title`in process,fa=da?`node`:navigator.userAgent,pa=da?`node`:navigator.platform,ma=fa.includes(`Firefox`),ha=fa.includes(`Edge`),ga=/^((?!chrome|android).)*safari/i.test(fa);function _a(){if(!ga)return 0;let e=fa.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}var va=[`Macintosh`,`MacIntel`,`MacPPC`,`Mac68K`].includes(pa),ya=pa===`iPad`,ba=pa===`iPhone`,xa=[`Windows`,`Win16`,`Win32`,`WinCE`].includes(pa),Sa=pa.indexOf(`Linux`)>=0,Ca=/\bCrOS\b/.test(fa),wa=class{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._ii){r-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(r-t))}ms`),this._start();return}r=i}this.clear()}},Ta=class extends wa{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=performance.now()+e;return{timeRemaining:()=>Math.max(0,t-performance.now())}}},Ea=class extends wa{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},Da=!da&&`requestIdleCallback`in window?Ea:Ta,Oa=class{constructor(){this._queue=new Da}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},ka=class extends j{constructor(e,t,n,r,i,a,o,s,c){super(),this._rowCount=e,this._optionsService=n,this._charSizeService=r,this._coreService=i,this._coreBrowserService=s,this._renderer=this._register(new Ot),this._pausedResizeTask=new Oa,this._observerDisposable=this._register(new Ot),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this._register(new P),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new P),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new P),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new P),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new la((e,t)=>this._renderRows(e,t),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new Aa(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(A(()=>this._syncOutputHandler.dispose())),this._register(this._coreBrowserService.onDprChange(()=>this.handleDevicePixelRatioChange())),this._register(o.onResize(()=>this._fullRefresh())),this._register(o.buffers.onBufferActivate(()=>this._renderer.value?.clear())),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this._register(a.onDecorationRegistered(()=>this._fullRefresh())),this._register(a.onDecorationRemoved(()=>this._fullRefresh())),this._register(this._optionsService.onMultipleOptionChange([`customGlyphs`,`drawBoldTextInBrightColors`,`letterSpacing`,`lineHeight`,`fontFamily`,`fontSize`,`fontWeight`,`fontWeightBold`,`minimumContrastRatio`,`rescaleOverlappingGlyphs`],()=>{this.clear(),this.handleResize(o.cols,o.rows),this._fullRefresh()})),this._register(this._optionsService.onMultipleOptionChange([`cursorBlink`,`cursorStyle`],()=>this.refreshRows(o.buffer.y,o.buffer.y,!0))),this._register(c.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(this._coreBrowserService.window,t),this._register(this._coreBrowserService.onWindowChange(e=>this._registerIntersectionObserver(e,t)))}get dimensions(){return this._renderer.value.dimensions}_registerIntersectionObserver(e,t){if(`IntersectionObserver`in e){let n=new e.IntersectionObserver(e=>this._handleIntersectionChange(e[e.length-1]),{threshold:0});n.observe(t),this._observerDisposable.value=A(()=>n.disconnect())}}_handleIntersectionChange(e){this._isPaused=e.isIntersecting===void 0?e.intersectionRatio===0:!e.isIntersecting,!this._isPaused&&!this._charSizeService.hasValidSize&&this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,n=!1){if(this._isPaused){this._needsFullRefresh=!0;return}if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}let r=this._syncOutputHandler.flush();r&&(e=Math.min(e,r.start),t=Math.max(t,r.end)),n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount)}_renderRows(e,t){if(this._renderer.value){if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&=(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value&&(this._renderer.value.onRequestRedraw(e=>this.refreshRows(e.start,e.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){this._renderer.value&&(this._renderer.value.clearTextureAtlas?.(),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value?.handleResize(e,t)):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){this._renderer.value?.handleCharSizeChanged()}handleBlur(){this._renderer.value?.handleBlur()}handleFocus(){this._renderer.value?.handleFocus()}handleSelectionChanged(e,t,n){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,this._renderer.value?.handleSelectionChanged(e,t,n)}handleCursorMove(){this._renderer.value?.handleCursorMove()}clear(){this._renderer.value?.clear()}};ka=x([S(2,k),S(3,He),S(4,Ne),S(5,ze),S(6,O),S(7,Ue),S(8,Je)],ka);var Aa=class{constructor(e,t,n){this._coreBrowserService=e,this._coreService=t,this._onTimeout=n,this._start=0,this._end=0,this._isBuffering=!1}bufferRows(e,t){this._isBuffering?(this._start=Math.min(this._start,e),this._end=Math.max(this._end,t)):(this._start=e,this._end=t,this._isBuffering=!0),this._timeout===void 0&&(this._timeout=this._coreBrowserService.window.setTimeout(()=>{this._timeout=void 0,this._coreService.decPrivateModes.synchronizedOutput=!1,this._onTimeout()},1e3))}flush(){if(this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0),!this._isBuffering)return;let e={start:this._start,end:this._end};return this._isBuffering=!1,e}dispose(){this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0)}};function ja(e,t,n,r){let i=n.buffer.x,a=n.buffer.y;if(!n.buffer.hasScrollback)return Pa(i,a,e,t,n,r)+Fa(a,t,n,r)+Ia(i,a,e,t,n,r);let o;if(a===t)return o=i>e?`D`:`C`,Ua(Math.abs(i-e),Ha(o,r));o=a>t?`D`:`C`;let s=Math.abs(a-t);return Ua(Na(a>t?e:i,n)+(s-1)*n.cols+1+Ma(a>t?i:e,n),Ha(o,r))}function Ma(e,t){return e-1}function Na(e,t){return t.cols-e}function Pa(e,t,n,r,i,a){return Fa(t,r,i,a).length===0?``:Ua(Va(e,t,e,t-Ra(t,i),!1,i).length,Ha(`D`,a))}function Fa(e,t,n,r){let i=e-Ra(e,n),a=t-Ra(t,n);return Ua(Math.abs(i-a)-La(e,t,n),Ha(Ba(e,t),r))}function Ia(e,t,n,r,i,a){let o;o=Fa(t,r,i,a).length>0?r-Ra(r,i):t;let s=r,c=za(e,t,n,r,i,a);return Ua(Va(e,o,n,s,c===`C`,i).length,Ha(c,a))}function La(e,t,n){let r=0,i=e-Ra(e,n),a=t-Ra(t,n);for(let o=0;o=0&&e0?r-Ra(r,i):t,e=n&&ot?`A`:`B`}function Va(e,t,n,r,i,a){let o=e,s=t,c=``;for(;(o!==n||s!==r)&&s>=0&&sa.cols-1?(c+=a.buffer.translateBufferLineToString(s,!1,e,o),o=0,e=0,s++):!i&&o<0&&(c+=a.buffer.translateBufferLineToString(s,!1,0,e+1),o=a.cols-1,e=o,s--);return c+a.buffer.translateBufferLineToString(s,!1,e,o)}function Ha(e,t){let n=t?`O`:`[`;return R.ESC+n+e}function Ua(e,t){e=Math.floor(e);let n=``;for(let r=0;rthis._bufferService.cols?e%this._bufferService.cols===0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let e=this.selectionStart,t=this.selectionEnd;return!e||!t?!1:e[1]>t[1]||e[1]===t[1]&&e[0]>t[0]}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}};function Ga(e,t){if(e.start.y>e.end.y)throw Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}var Ka=50,qa=15,Ja=50,Ya=500,Xa=RegExp(`\xA0`,`g`),Za=class extends j{constructor(e,t,n,r,i,a,o,s,c){super(),this._element=e,this._screenElement=t,this._linkifier=n,this._bufferService=r,this._coreService=i,this._mouseService=a,this._optionsService=o,this._renderService=s,this._coreBrowserService=c,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new Ee,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new P),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new P),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new P),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new P),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=e=>this._handleMouseMove(e),this._mouseUpListener=e=>this._handleMouseUp(e),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(e=>this._handleTrim(e)),this._register(this._bufferService.buffers.onBufferActivate(e=>this._handleBufferActivate(e))),this.enable(),this._model=new Wa(this._bufferService),this._activeSelectionMode=0,this._register(A(()=>{this._removeMouseDownListeners()})),this._register(this._bufferService.onResize(e=>{e.rowsChanged&&this.clearSelection()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!e||!t?!1:e[0]!==t[0]||e[1]!==t[1]}get selectionText(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return``;let n=this._bufferService.buffer,r=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return``;let i=e[0]e.replace(Xa,` `)).join(xa?`\r +`:` +`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh()),Sa&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!n||!r||!t?!1:this._areCoordsInSelection(t,n,r)}isCellInSelection(e,t){let n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!n||!r?!1:this._areCoordsInSelection([e,t],n,r)}_areCoordsInSelection(e,t,n){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]}_selectWordAtCursor(e,t){let n=this._linkifier.currentLink?.link?.range;if(n)return this._model.selectionStart=[n.start.x-1,n.start.y-1],this._model.selectionStartLength=Ga(n,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let r=this._getMouseBufferCoords(e);return r?(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0):!1}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=oa(this._coreBrowserService.window,e,this._screenElement)[1],n=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-Ka),Ka),t/=Ka,t/Math.abs(t)+Math.round(t*(qa-1)))}shouldForceSelection(e){return va?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,!(e.button===2&&this.hasSelection)&&e.button===0){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):e.detail===1?this._handleSingleClick(e):e.detail===2?this._handleDoubleClick(e):e.detail===3&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener(`mousemove`,this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener(`mouseup`,this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),Ja)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener(`mousemove`,this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener(`mouseup`,this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&t.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(va&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd){this.refresh(!0);return}this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let n=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&tthis._handleTrim(e))}_convertViewportColToCharacterIndex(e,t){let n=t;for(let r=0;t>=r;r++){let i=e.loadCell(r,this._workCell).getChars().length;this._workCell.getWidth()===0?n--:i>1&&t!==r&&(n+=i-1)}return n}setSelection(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,n=!0,r=!0){if(e[0]>=this._bufferService.cols)return;let i=this._bufferService.buffer,a=i.lines.get(e[1]);if(!a)return;let o=i.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(a,e[0]),c=s,l=e[0]-s,u=0,d=0,f=0,p=0;if(o.charAt(s)===` `){for(;s>0&&o.charAt(s-1)===` `;)s--;for(;c1&&(p+=r-1,c+=r-1);t>0&&s>0&&!this._isCharWordSeparator(a.loadCell(t-1,this._workCell));){a.loadCell(t-1,this._workCell);let e=this._workCell.getChars().length;this._workCell.getWidth()===0?(u++,t--):e>1&&(f+=e-1,s-=e-1),s--,t--}for(;n1&&(p+=e-1,c+=e-1),c++,n++}}c++;let m=s+l-u+f,h=Math.min(this._bufferService.cols,c-s+u+d-f-p);if(!(!t&&o.slice(s,c).trim()===``)){if(n&&m===0&&a.getCodePoint(0)!==32){let t=i.lines.get(e[1]-1);if(t&&a.isWrapped&&t.getCodePoint(this._bufferService.cols-1)!==32){let t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){let e=this._bufferService.cols-t.start;m-=e,h+=e}}}if(r&&m+h===this._bufferService.cols&&a.getCodePoint(this._bufferService.cols-1)!==32){let t=i.lines.get(e[1]+1);if(t?.isWrapped&&t.getCodePoint(0)!==32){let t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(h+=t.length)}}return{start:m,length:h}}}_selectWordAt(e,t){let n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let n=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}}_isCharWordSeparator(e){return e.getWidth()===0?!1:this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),n={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=Ga(n,this._bufferService.cols)}};Za=x([S(3,O),S(4,Ne),S(5,We),S(6,k),S(7,Ge),S(8,Ue)],Za);var Qa=class{constructor(){this._data={}}set(e,t,n){this._data[e]||(this._data[e]={}),this._data[e][t]=n}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},$a=class{constructor(){this._color=new Qa,this._css=new Qa}setCss(e,t,n){this._css.set(e,t,n)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,n){this._color.set(e,t,n)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}},q=Object.freeze((()=>{let e=[G.toColor(`#2e3436`),G.toColor(`#cc0000`),G.toColor(`#4e9a06`),G.toColor(`#c4a000`),G.toColor(`#3465a4`),G.toColor(`#75507b`),G.toColor(`#06989a`),G.toColor(`#d3d7cf`),G.toColor(`#555753`),G.toColor(`#ef2929`),G.toColor(`#8ae234`),G.toColor(`#fce94f`),G.toColor(`#729fcf`),G.toColor(`#ad7fa8`),G.toColor(`#34e2e2`),G.toColor(`#eeeeec`)],t=[0,95,135,175,215,255];for(let n=0;n<216;n++){let r=t[n/36%6|0],i=t[n/6%6|0],a=t[n%6];e.push({css:U.toCss(r,i,a),rgba:U.toRgba(r,i,a)})}for(let t=0;t<24;t++){let n=8+t*10;e.push({css:U.toCss(n,n,n),rgba:U.toRgba(n,n,n)})}return e})()),eo=G.toColor(`#ffffff`),to=G.toColor(`#000000`),no=G.toColor(`#ffffff`),ro=to,io={css:`rgba(255, 255, 255, 0.3)`,rgba:4294967117},ao=eo,oo=class extends j{constructor(e){super(),this._optionsService=e,this._contrastCache=new $a,this._halfContrastCache=new $a,this._onChangeColors=this._register(new P),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:eo,background:to,cursor:no,cursorAccent:ro,selectionForeground:void 0,selectionBackgroundTransparent:io,selectionBackgroundOpaque:W.blend(to,io),selectionInactiveBackgroundTransparent:io,selectionInactiveBackgroundOpaque:W.blend(to,io),scrollbarSliderBackground:W.opacity(eo,.2),scrollbarSliderHoverBackground:W.opacity(eo,.4),scrollbarSliderActiveBackground:W.opacity(eo,.5),overviewRulerBorder:eo,ansi:q.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this._register(this._optionsService.onSpecificOptionChange(`minimumContrastRatio`,()=>this._contrastCache.clear())),this._register(this._optionsService.onSpecificOptionChange(`theme`,()=>this._setTheme(this._optionsService.rawOptions.theme)))}get colors(){return this._colors}_setTheme(e={}){let t=this._colors;if(t.foreground=J(e.foreground,eo),t.background=J(e.background,to),t.cursor=W.blend(t.background,J(e.cursor,no)),t.cursorAccent=W.blend(t.background,J(e.cursorAccent,ro)),t.selectionBackgroundTransparent=J(e.selectionBackground,io),t.selectionBackgroundOpaque=W.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=J(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=W.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?J(e.selectionForeground,ki):void 0,t.selectionForeground===ki&&(t.selectionForeground=void 0),W.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=W.opacity(t.selectionBackgroundTransparent,.3)),W.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=W.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=J(e.scrollbarSliderBackground,W.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=J(e.scrollbarSliderHoverBackground,W.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=J(e.scrollbarSliderActiveBackground,W.opacity(t.foreground,.5)),t.overviewRulerBorder=J(e.overviewRulerBorder,ao),t.ansi=q.slice(),t.ansi[0]=J(e.black,q[0]),t.ansi[1]=J(e.red,q[1]),t.ansi[2]=J(e.green,q[2]),t.ansi[3]=J(e.yellow,q[3]),t.ansi[4]=J(e.blue,q[4]),t.ansi[5]=J(e.magenta,q[5]),t.ansi[6]=J(e.cyan,q[6]),t.ansi[7]=J(e.white,q[7]),t.ansi[8]=J(e.brightBlack,q[8]),t.ansi[9]=J(e.brightRed,q[9]),t.ansi[10]=J(e.brightGreen,q[10]),t.ansi[11]=J(e.brightYellow,q[11]),t.ansi[12]=J(e.brightBlue,q[12]),t.ansi[13]=J(e.brightMagenta,q[13]),t.ansi[14]=J(e.brightCyan,q[14]),t.ansi[15]=J(e.brightWhite,q[15]),e.extendedAnsi){let n=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let r=0;re.index-t.index),r=[];for(let t of n){let n=this._services.get(t.id);if(!n)throw Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id._id}.`);r.push(n)}let i=n.length>0?n[0].index:t.length;if(t.length!==i)throw Error(`[createInstance] First service dependency of ${e.name} at position ${i+1} conflicts with ${t.length} static arguments`);return new e(...t,...r)}},lo={trace:0,debug:1,info:2,warn:3,error:4,off:5},uo=`xterm.js: `,fo=class extends j{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange(`logLevel`,()=>this._updateLogLevel())),po=this}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=lo[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;tthis._length)for(let t=this._length;t=e;t--)this._array[this._getCyclicIndex(t+n.length)]=this._array[this._getCyclicIndex(t)];for(let t=0;tthis._maxLength){let e=this._length+n.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=n.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw Error(`start argument out of range`);if(e+n<0)throw Error(`Cannot shift elements in list beyond index 0`);if(n>0){for(let r=t-1;r>=0;r--)this.set(e+r+n,this.get(e+r));let r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let r=0;r>22,t&2097152?this._combined[e].charCodeAt(this._combined[e].length-1):n]}set(e,t){this._data[e*Y+1]=t[0],t[1].length>1?(this._combined[e]=t[1],this._data[e*Y+0]=e|2097152|t[2]<<22):this._data[e*Y+0]=t[1].charCodeAt(0)|t[2]<<22}getWidth(e){return this._data[e*Y+0]>>22}hasWidth(e){return this._data[e*Y+0]&12582912}getFg(e){return this._data[e*Y+1]}getBg(e){return this._data[e*Y+2]}hasContent(e){return this._data[e*Y+0]&4194303}getCodePoint(e){let t=this._data[e*Y+0];return t&2097152?this._combined[e].charCodeAt(this._combined[e].length-1):t&2097151}isCombined(e){return this._data[e*Y+0]&2097152}getString(e){let t=this._data[e*Y+0];return t&2097152?this._combined[e]:t&2097151?ve(t&2097151):``}isProtected(e){return this._data[e*Y+2]&536870912}loadCell(e,t){return ho=e*Y,t.content=this._data[ho+0],t.fg=this._data[ho+1],t.bg=this._data[ho+2],t.content&2097152&&(t.combinedData=this._combined[e]),t.bg&268435456&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){t.content&2097152&&(this._combined[e]=t.combinedData),t.bg&268435456&&(this._extendedAttrs[e]=t.extended),this._data[e*Y+0]=t.content,this._data[e*Y+1]=t.fg,this._data[e*Y+2]=t.bg}setCellFromCodepoint(e,t,n,r){r.bg&268435456&&(this._extendedAttrs[e]=r.extended),this._data[e*Y+0]=t|n<<22,this._data[e*Y+1]=r.fg,this._data[e*Y+2]=r.bg}addCodepointToCell(e,t,n){let r=this._data[e*Y+0];r&2097152?this._combined[e]+=ve(t):r&2097151?(this._combined[e]=ve(r&2097151)+ve(t),r&=-2097152,r|=2097152):r=t|1<<22,n&&(r&=-12582913,r|=n<<22),this._data[e*Y+0]=r}insertCells(e,t,n){if(e%=this.length,e&&this.getWidth(e-1)===2&&this.setCellFromCodepoint(e-1,0,1,n),t=0;--n)this.setCell(e+t+n,this.loadCell(e+n,r));for(let r=0;rthis.length){if(this._data.buffer.byteLength>=n*4)this._data=new Uint32Array(this._data.buffer,0,n);else{let e=new Uint32Array(n);e.set(this._data),this._data=e}for(let n=this.length;n=e&&delete this._combined[r]}let r=Object.keys(this._extendedAttrs);for(let t=0;t=e&&delete this._extendedAttrs[n]}}return this.length=e,n*4*go=0;--e)if(this._data[e*Y+0]&4194303)return e+(this._data[e*Y+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(this._data[e*Y+0]&4194303||this._data[e*Y+2]&50331648)return e+(this._data[e*Y+0]>>22);return 0}copyCellsFrom(e,t,n,r,i){let a=e._data;if(i)for(let i=r-1;i>=0;i--){for(let e=0;e=t&&(this._combined[i-t+n]=e._combined[i])}}translateToString(e,t,n,r){t??=0,n??=this.length,e&&(n=Math.min(n,this.getTrimmedLength())),r&&(r.length=0);let i=``;for(;t>22||1}return r&&r.push(t),i}};function vo(e,t,n,r,i,a){let o=[];for(let s=0;s=s&&r0&&(e>d||u[e].getTrimmedLength()===0);e--)h++;h>0&&(o.push(s+u.length-h),o.push(h)),s+=u.length-1}return o}function yo(e,t){let n=[],r=0,i=t[r],a=0;for(let o=0;oSo(e,r,t)).reduce((e,t)=>e+t),a=0,o=0,s=0;for(;sc&&(a-=c,o++);let l=e[o].getWidth(a-1)===2;l&&a--;let u=l?n-1:n;r.push(u),s+=u}return r}function So(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();let r=!e[t].hasContent(n-1)&&e[t].getWidth(n-1)===1,i=e[t+1].getWidth(0)===2;return r&&i?n-1:n}var Co=class e{constructor(t){this.line=t,this.isDisposed=!1,this._disposables=[],this._id=e._nextId++,this._onDispose=this.register(new P),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),wt(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}};Co._nextId=1;var wo=Co,Z={},To=Z.B;Z[0]={"`":`◆`,a:`▒`,b:`␉`,c:`␌`,d:`␍`,e:`␊`,f:`°`,g:`±`,h:`␤`,i:`␋`,j:`┘`,k:`┐`,l:`┌`,m:`└`,n:`┼`,o:`⎺`,p:`⎻`,q:`─`,r:`⎼`,s:`⎽`,t:`├`,u:`┤`,v:`┴`,w:`┬`,x:`│`,y:`≤`,z:`≥`,"{":`π`,"|":`≠`,"}":`£`,"~":`·`},Z.A={"#":`£`},Z.B=void 0,Z[4]={"#":`£`,"@":`¾`,"[":`ij`,"\\":`½`,"]":`|`,"{":`¨`,"|":`f`,"}":`¼`,"~":`´`},Z.C=Z[5]={"[":`Ä`,"\\":`Ö`,"]":`Å`,"^":`Ü`,"`":`é`,"{":`ä`,"|":`ö`,"}":`å`,"~":`ü`},Z.R={"#":`£`,"@":`à`,"[":`°`,"\\":`ç`,"]":`§`,"{":`é`,"|":`ù`,"}":`è`,"~":`¨`},Z.Q={"@":`à`,"[":`â`,"\\":`ç`,"]":`ê`,"^":`î`,"`":`ô`,"{":`é`,"|":`ù`,"}":`è`,"~":`û`},Z.K={"@":`§`,"[":`Ä`,"\\":`Ö`,"]":`Ü`,"{":`ä`,"|":`ö`,"}":`ü`,"~":`ß`},Z.Y={"#":`£`,"@":`§`,"[":`°`,"\\":`ç`,"]":`é`,"`":`ù`,"{":`à`,"|":`ò`,"}":`è`,"~":`ì`},Z.E=Z[6]={"@":`Ä`,"[":`Æ`,"\\":`Ø`,"]":`Å`,"^":`Ü`,"`":`ä`,"{":`æ`,"|":`ø`,"}":`å`,"~":`ü`},Z.Z={"#":`£`,"@":`§`,"[":`¡`,"\\":`Ñ`,"]":`¿`,"{":`°`,"|":`ñ`,"}":`ç`},Z.H=Z[7]={"@":`É`,"[":`Ä`,"\\":`Ö`,"]":`Å`,"^":`Ü`,"`":`é`,"{":`ä`,"|":`ö`,"}":`å`,"~":`ü`},Z[`=`]={"#":`ù`,"@":`à`,"[":`é`,"\\":`ç`,"]":`ê`,"^":`î`,_:`è`,"`":`ô`,"{":`ä`,"|":`ö`,"}":`ü`,"~":`û`};var Eo=4294967295,Do=class{constructor(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=X.clone(),this.savedCharset=To,this.markers=[],this._nullCell=Ee.fromCharData([0,Se,1,0]),this._whitespaceCell=Ee.fromCharData([0,Ce,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new Da,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new mo(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new Te),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new Te),this._whitespaceCell}getBlankLine(e,t){return new _o(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&eEo?Eo:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=X);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new mo(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let n=this.getNullCell(X),r=0,i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+a+1?(this.ybase--,a++,this.ydisp>0&&this.ydisp--):this.lines.push(new _o(e,n)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),a&&(this.y+=a),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let t=0;t.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend===`conpty`&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let n=this._optionsService.rawOptions.reflowCursorLine,r=vo(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(X),n);if(r.length>0){let n=yo(this.lines,r);bo(this.lines,n.layout),this._reflowLargerAdjustViewport(e,t,n.countRemoved)}}_reflowLargerAdjustViewport(e,t,n){let r=this.getNullCell(X),i=n;for(;i-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;o--){let s=this.lines.get(o);if(!s||!s.isWrapped&&s.getTrimmedLength()<=e)continue;let c=[s];for(;s.isWrapped&&o>0;)s=this.lines.get(--o),c.unshift(s);if(!n){let e=this.ybase+this.y;if(e>=o&&e0&&(i.push({start:o+c.length+a,newLines:p}),a+=p.length),c.push(...p);let m=u.length-1,h=u[m];h===0&&(m--,h=u[m]);let g=c.length-d-1,_=l;for(;g>=0;){let e=Math.min(_,h);if(c[m]===void 0)break;c[m].copyCellsFrom(c[g],_-e,h-e,e,!0),h-=e,h===0&&(m--,h=u[m]),_-=e,_===0&&(g--,_=So(c,Math.max(g,0),this._cols))}for(let t=0;t0;)this.ybase===0?this.y0){let e=[],t=[];for(let e=0;e=0;l--)if(s&&s.start>r+c){for(let e=s.newLines.length-1;e>=0;e--)this.lines.set(l--,s.newLines[e]);l++,e.push({index:r+1,amount:s.newLines.length}),c+=s.newLines.length,s=i[++o]}else this.lines.set(l,t[r--]);let l=0;for(let t=e.length-1;t>=0;t--)e[t].index+=l,this.lines.onInsertEmitter.fire(e[t]),l+=e[t].amount;let u=Math.max(0,n+a-this.lines.maxLength);u>0&&this.lines.onTrimEmitter.fire(u)}}translateBufferLineToString(e,t,n=0,r){let i=this.lines.get(e);return i?i.translateToString(t,n,r):``}getWrappedRangeForLine(e){let t=e,n=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+10;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(e??=this.x;!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t{t.line-=e,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(e=>{t.line>=e.index&&(t.line+=e.amount)})),t.register(this.lines.onDelete(e=>{t.line>=e.index&&t.linee.index&&(t.line-=e.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}},Oo=class extends j{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new P),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this._register(this._optionsService.onSpecificOptionChange(`scrollback`,()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this._register(this._optionsService.onSpecificOptionChange(`tabStopWidth`,()=>this.setupTabStops()))}reset(){this._normal=new Do(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new Do(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}},ko=2,Ao=1,jo=class extends j{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new P),this.onResize=this._onResize.event,this._onScroll=this._register(new P),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,ko),this.rows=Math.max(e.rawOptions.rows||0,Ao),this.buffers=this._register(new Oo(e,this)),this._register(this.buffers.onBufferActivate(e=>{this._onScroll.fire(e.activeBuffer.ydisp)}))}get buffer(){return this.buffers.active}resize(e,t){let n=this.cols!==e,r=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:n,rowsChanged:r})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let n=this.buffer,r;r=this._cachedBlankLine,(!r||r.length!==this.cols||r.getFg(0)!==e.fg||r.getBg(0)!==e.bg)&&(r=n.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;let i=n.ybase+n.scrollTop,a=n.ybase+n.scrollBottom;if(n.scrollTop===0){let e=n.lines.isFull;a===n.lines.length-1?e?n.lines.recycle().copyFrom(r):n.lines.push(r.clone()):n.lines.splice(a+1,0,r.clone()),e?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{let e=a-i+1;n.lines.shiftElements(i+1,e-1,-1),n.lines.set(a,r.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)}scrollLines(e,t){let n=this.buffer;if(e<0){if(n.ydisp===0)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);let r=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),r!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))}};jo=x([S(0,k)],jo);var Mo={cols:80,rows:24,cursorBlink:!1,cursorStyle:`block`,cursorWidth:1,cursorInactiveStyle:`outline`,customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:`alt`,fastScrollSensitivity:5,fontFamily:`monospace`,fontSize:15,fontWeight:`normal`,fontWeightBold:`bold`,ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:`info`,logger:null,scrollback:1e3,scrollOnEraseInDisplay:!1,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},reflowCursorLine:!1,rescaleOverlappingGlyphs:!1,rightClickSelectsWord:va,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:` ()[]{}',"\``,altClickMovesCursor:!0,convertEol:!1,termName:`xterm`,cancelEvents:!1,overviewRuler:{}},No=[`normal`,`bold`,`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`],Po=class extends j{constructor(e){super(),this._onOptionChange=this._register(new P),this.onOptionChange=this._onOptionChange.event;let t={...Mo};for(let n in e)if(n in t)try{let r=e[n];t[n]=this._sanitizeAndValidateOption(n,r)}catch(e){console.error(e)}this.rawOptions=t,this.options={...t},this._setupOptions(),this._register(A(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(e,t){return this.onOptionChange(n=>{n===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(n=>{e.indexOf(n)!==-1&&t()})}_setupOptions(){let e=e=>{if(!(e in Mo))throw Error(`No option with key "${e}"`);return this.rawOptions[e]},t=(e,t)=>{if(!(e in Mo))throw Error(`No option with key "${e}"`);t=this._sanitizeAndValidateOption(e,t),this.rawOptions[e]!==t&&(this.rawOptions[e]=t,this._onOptionChange.fire(e))};for(let n in this.rawOptions){let r={get:e.bind(this,n),set:t.bind(this,n)};Object.defineProperty(this.options,n,r)}}_sanitizeAndValidateOption(e,t){switch(e){case`cursorStyle`:if(t||=Mo[e],!Fo(t))throw Error(`"${t}" is not a valid value for ${e}`);break;case`wordSeparator`:t||=Mo[e];break;case`fontWeight`:case`fontWeightBold`:if(typeof t==`number`&&1<=t&&t<=1e3)break;t=No.includes(t)?t:Mo[e];break;case`cursorWidth`:t=Math.floor(t);case`lineHeight`:case`tabStopWidth`:if(t<1)throw Error(`${e} cannot be less than 1, value: ${t}`);break;case`minimumContrastRatio`:t=Math.max(1,Math.min(21,Math.round(t*10)/10));break;case`scrollback`:if(t=Math.min(t,4294967295),t<0)throw Error(`${e} cannot be less than 0, value: ${t}`);break;case`fastScrollSensitivity`:case`scrollSensitivity`:if(t<=0)throw Error(`${e} cannot be less than or equal to 0, value: ${t}`);break;case`rows`:case`cols`:if(!t&&t!==0)throw Error(`${e} must be numeric, value: ${t}`);break;case`windowsPty`:t??={};break}return t}};function Fo(e){return e===`block`||e===`underline`||e===`bar`}function Io(e,t=5){if(typeof e!=`object`)return e;let n=Array.isArray(e)?[]:{};for(let r in e)n[r]=t<=1?e[r]:e[r]&&Io(e[r],t-1);return n}var Lo=Object.freeze({insertMode:!1}),Ro=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),zo=class extends j{constructor(e,t,n){super(),this._bufferService=e,this._logService=t,this._optionsService=n,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this._register(new P),this.onData=this._onData.event,this._onUserInput=this._register(new P),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new P),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new P),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=Io(Lo),this.decPrivateModes=Io(Ro)}reset(){this.modes=Io(Lo),this.decPrivateModes=Io(Ro)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let n=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&n.ybase!==n.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`),this._logService.trace(`sending data (codes)`,()=>e.split(``).map(e=>e.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`),this._logService.trace(`sending binary (codes)`,()=>e.split(``).map(e=>e.charCodeAt(0))),this._onBinary.fire(e))}};zo=x([S(0,O),S(1,Ie),S(2,k)],zo);var Bo={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button===4||e.action!==1?!1:(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>!(e.action===32&&e.button===3)},ANY:{events:31,restrict:e=>!0}};function Vo(e,t){let n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(n|=64,n|=e.action):(n|=e.button&3,e.button&4&&(n|=64),e.button&8&&(n|=128),e.action===32?n|=32:e.action===0&&!t&&(n|=3)),n}var Ho=String.fromCharCode,Uo={DEFAULT:e=>{let t=[Vo(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?``:`\x1B[M${Ho(t[0])}${Ho(t[1])}${Ho(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?`m`:`M`;return`\x1B[<${Vo(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?`m`:`M`;return`\x1B[<${Vo(e,!0)};${e.x};${e.y}${t}`}},Wo=class extends j{constructor(e,t,n){super(),this._bufferService=e,this._coreService=t,this._optionsService=n,this._protocols={},this._encodings={},this._activeProtocol=``,this._activeEncoding=``,this._lastEvent=null,this._wheelPartialScroll=0,this._onProtocolChange=this._register(new P),this.onProtocolChange=this._onProtocolChange.event;for(let e of Object.keys(Bo))this.addProtocol(e,Bo[e]);for(let e of Object.keys(Uo))this.addEncoding(e,Uo[e]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol=`NONE`,this.activeEncoding=`DEFAULT`,this._lastEvent=null,this._wheelPartialScroll=0}consumeWheelEvent(e,t,n){if(e.deltaY===0||e.shiftKey||t===void 0||n===void 0)return 0;let r=t/n,i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(i/=r+0,Math.abs(e.deltaY)<50&&(i*=.3),this._wheelPartialScroll+=i,i=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._bufferService.rows),i}_applyScrollModifier(e,t){return t.altKey||t.ctrlKey||t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding===`SGR_PIXELS`))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&(this._activeEncoding===`DEFAULT`?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(e&1),up:!!(e&2),drag:!!(e&4),move:!!(e&8),wheel:!!(e&16)}}_equalEvents(e,t,n){if(n){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return!(e.button!==t.button||e.action!==t.action||e.ctrl!==t.ctrl||e.alt!==t.alt||e.shift!==t.shift)}};Wo=x([S(0,O),S(1,Ne),S(2,k)],Wo);var Go=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],Ko=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],Q;function qo(e,t){let n=0,r=t.length-1,i;if(et[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let e=Yo.extractWidth(t);e===0?r=!1:e>n&&(n=e)}return Yo.createPropertyValue(0,n,r)}},Yo=class e{constructor(){this._providers=Object.create(null),this._active=``,this._onChange=new P,this.onChange=this._onChange.event;let e=new Jo;this.register(e),this._active=e.version,this._activeProvider=e}static extractShouldJoin(e){return(e&1)!=0}static extractWidth(e){return e>>1&3}static extractCharKind(e){return e>>3}static createPropertyValue(e,t,n=!1){return(e&16777215)<<3|(t&3)<<1|!!n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(t){let n=0,r=0,i=t.length;for(let a=0;a=i)return n+this.wcwidth(o);let e=t.charCodeAt(a);56320<=e&&e<=57343?o=(o-55296)*1024+e-56320+65536:n+=this.wcwidth(e)}let s=this.charProperties(o,r),c=e.extractWidth(s);e.extractShouldJoin(s)&&(c-=e.extractWidth(r)),n+=c,r=s}return n}charProperties(e,t){return this._activeProvider.charProperties(e,t)}},Xo=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}};function Zo(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)?.get(e.cols-1),n=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);n&&t&&(n.isWrapped=t[3]!==0&&t[3]!==32)}var Qo=2147483647,$o=256,es=class e{constructor(e=32,t=32){if(this.maxLength=e,this.maxSubParamsLength=t,t>$o)throw Error(`maxSubParamsLength must not be greater than 256`);this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){let n=new e;if(!t.length)return n;for(let e=+!!Array.isArray(t[0]);e>8,r=this._subParamsIdx[t]&255;r-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,r))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength){this._rejectDigits=!0;return}if(e<-1)throw Error(`values lesser than -1 are not allowed`);this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>Qo?Qo:e}addSubParam(e){if(this._digitIsSub=!0,this.length){if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength){this._rejectSubDigits=!0;return}if(e<-1)throw Error(`values lesser than -1 are not allowed`);this._subParams[this._subParamsLength++]=e>Qo?Qo:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return(this._subParamsIdx[e]&255)-(this._subParamsIdx[e]>>8)>0}getSubParams(e){let t=this._subParamsIdx[e]>>8,n=this._subParamsIdx[e]&255;return n-t>0?this._subParams.subarray(t,n):null}getSubParamsAll(){let e={};for(let t=0;t>8,r=this._subParamsIdx[t]&255;r-n>0&&(e[t]=this._subParams.slice(n,r))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let n=this._digitIsSub?this._subParams:this.params,r=n[t-1];n[t-1]=~r?Math.min(r*10+e,Qo):e}},ts=[],ns=class{constructor(){this._state=0,this._active=ts,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=ts}reset(){if(this._state===2)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=ts,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||ts,!this._active.length)this._handlerFb(this._id,`START`);else for(let e=this._active.length-1;e>=0;e--)this._active[e].start()}_put(e,t,n){if(!this._active.length)this._handlerFb(this._id,`PUT`,ye(e,t,n));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n)}start(){this.reset(),this._state=1}put(e,t,n){if(this._state!==3){if(this._state===1)for(;t0&&this._put(e,t,n)}}end(e,t=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),!this._active.length)this._handlerFb(this._id,`END`,e);else{let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&n===!1){for(;r>=0&&(n=this._active[r].end(e),n!==!0);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].end(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}this._active=ts,this._id=-1,this._state=0}}},rs=class{constructor(e){this._handler=e,this._data=``,this._hitLimit=!1}start(){this._data=``,this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=ye(e,t,n),this._data.length>1e7&&(this._data=``,this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then(e=>(this._data=``,this._hitLimit=!1,e));return this._data=``,this._hitLimit=!1,t}},is=[],as=class{constructor(){this._handlers=Object.create(null),this._active=is,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=is}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=is,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||is,!this._active.length)this._handlerFb(this._ident,`HOOK`,t);else for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(t)}put(e,t,n){if(!this._active.length)this._handlerFb(this._ident,`PUT`,ye(e,t,n));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,`UNHOOK`,e);else{let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&n===!1){for(;r>=0&&(n=this._active[r].unhook(e),n!==!0);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].unhook(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}this._active=is,this._ident=0}},os=new es;os.addParam(0);var ss=class{constructor(e){this._handler=e,this._data=``,this._params=os,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():os,this._data=``,this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=ye(e,t,n),this._data.length>1e7&&(this._data=``,this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then(e=>(this._params=os,this._data=``,this._hitLimit=!1,e));return this._params=os,this._data=``,this._hitLimit=!1,t}},cs=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,n,r){this.table[t<<8|e]=n<<4|r}addMany(e,t,n,r){for(let i=0;it),n=(e,n)=>t.slice(e,n),r=n(32,127),i=n(0,24);i.push(25),i.push.apply(i,n(28,32));let a=n(0,14),o;for(o in e.setDefault(1,0),e.addMany(r,0,2,0),a)e.addMany([24,26,153,154],o,3,0),e.addMany(n(128,144),o,3,0),e.addMany(n(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(r,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(ls,0,2,0),e.add(ls,8,5,8),e.add(ls,6,0,6),e.add(ls,11,0,11),e.add(ls,13,13,13),e}(),ds=class extends j{constructor(e=us){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new es,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(e,t,n)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._register(A(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new ns),this._dcsParser=this._register(new as),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:`\\`},()=>!0)}_identifier(e,t=[64,126]){let n=0;if(e.prefix){if(e.prefix.length>1)throw Error(`only one byte as prefix supported`);if(n=e.prefix.charCodeAt(0),n&&60>n||n>63)throw Error(`prefix must be in range 0x3c .. 0x3f`)}if(e.intermediates){if(e.intermediates.length>2)throw Error(`only two bytes as intermediates are supported`);for(let t=0;tr||r>47)throw Error(`intermediate must be in range 0x20 .. 0x2f`);n<<=8,n|=r}}if(e.final.length!==1)throw Error(`final must be a single byte`);let r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw Error(`final must be in range ${t[0]} .. ${t[1]}`);return n<<=8,n|=r,n}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(e&255)),e>>=8;return t.reverse().join(``)}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let n=this._identifier(e,[48,126]);this._escHandlers[n]===void 0&&(this._escHandlers[n]=[]);let r=this._escHandlers[n];return r.push(t),{dispose:()=>{let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let n=this._identifier(e);this._csiHandlers[n]===void 0&&(this._csiHandlers[n]=[]);let r=this._csiHandlers[n];return r.push(t),{dispose:()=>{let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,n,r,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=r,this._parseStack.chunkPos=i}parse(e,t,n){let r=0,i=0,a=0,o;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,a=this._parseStack.chunkPos+1;else{if(n===void 0||this._parseStack.state===1)throw this._parseStack.state=1,Error(`improper continuation due to previous async handler, giving up parsing`);let t=this._parseStack.handlers,i=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(n===!1&&i>-1){for(;i>=0&&(o=t[i](this._params),o!==!0);i--)if(o instanceof Promise)return this._parseStack.handlerPos=i,o}this._parseStack.handlers=[];break;case 4:if(n===!1&&i>-1){for(;i>=0&&(o=t[i](),o!==!0);i--)if(o instanceof Promise)return this._parseStack.handlerPos=i,o}this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],o=this._dcsParser.unhook(r!==24&&r!==26,n),o)return o;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],o=this._oscParser.end(r!==24&&r!==26,n),o)return o;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break}this._parseStack.state=0,a=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=this._parseStack.transition&15}for(let n=a;n>4){case 2:for(let i=n+1;;++i){if(i>=t||(r=e[i])<32||r>126&&r=t||(r=e[i])<32||r>126&&r=t||(r=e[i])<32||r>126&&r=t||(r=e[i])<32||r>126&&r=0&&(o=a[s](this._params),o!==!0);s--)if(o instanceof Promise)return this._preserveStack(3,a,s,i,n),o;s<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingJoinState=0;break;case 8:do switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}while(++n47&&r<60);n--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:let c=this._escHandlers[this._collect<<8|r],l=c?c.length-1:-1;for(;l>=0&&(o=c[l](),o!==!0);l--)if(o instanceof Promise)return this._preserveStack(4,c,l,i,n),o;l<0&&this._escHandlerFb(this._collect<<8|r),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let i=n+1;;++i)if(i>=t||(r=e[i])===24||r===26||r===27||r>127&&r=t||(r=e[i])<32||r>127&&r>4:i>>8}return n}}function hs(e,t){let n=e.toString(16),r=n.length<2?`0`+n:n;switch(t){case 4:return n[0];case 8:return r;case 12:return(r+r).slice(0,3);default:return r+r}}function gs(e,t=16){let[n,r,i]=e;return`rgb:${hs(n,t)}/${hs(r,t)}/${hs(i,t)}`}var _s={"(":0,")":1,"*":2,"+":3,"-":1,".":2},vs=131072,ys=10;function bs(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var xs=5e3,Ss=0,Cs=class extends j{constructor(e,t,n,r,i,a,o,s,c=new ds){super(),this._bufferService=e,this._charsetService=t,this._coreService=n,this._logService=r,this._optionsService=i,this._oscLinkService=a,this._coreMouseService=o,this._unicodeService=s,this._parser=c,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new be,this._utf8Decoder=new xe,this._windowTitle=``,this._iconName=``,this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=X.clone(),this._eraseAttrDataInternal=X.clone(),this._onRequestBell=this._register(new P),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new P),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new P),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new P),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new P),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new P),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new P),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new P),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new P),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new P),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new P),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new P),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new P),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this._register(this._parser),this._dirtyRowTracker=new ws(this._bufferService),this._activeBuffer=this._bufferService.buffer,this._register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._parser.setCsiHandlerFallback((e,t)=>{this._logService.debug(`Unknown CSI code: `,{identifier:this._parser.identToString(e),params:t.toArray()})}),this._parser.setEscHandlerFallback(e=>{this._logService.debug(`Unknown ESC code: `,{identifier:this._parser.identToString(e)})}),this._parser.setExecuteHandlerFallback(e=>{this._logService.debug(`Unknown EXECUTE code: `,{code:e})}),this._parser.setOscHandlerFallback((e,t,n)=>{this._logService.debug(`Unknown OSC code: `,{identifier:e,action:t,data:n})}),this._parser.setDcsHandlerFallback((e,t,n)=>{t===`HOOK`&&(n=n.toArray()),this._logService.debug(`Unknown DCS code: `,{identifier:this._parser.identToString(e),action:t,payload:n})}),this._parser.setPrintHandler((e,t,n)=>this.print(e,t,n)),this._parser.registerCsiHandler({final:`@`},e=>this.insertChars(e)),this._parser.registerCsiHandler({intermediates:` `,final:`@`},e=>this.scrollLeft(e)),this._parser.registerCsiHandler({final:`A`},e=>this.cursorUp(e)),this._parser.registerCsiHandler({intermediates:` `,final:`A`},e=>this.scrollRight(e)),this._parser.registerCsiHandler({final:`B`},e=>this.cursorDown(e)),this._parser.registerCsiHandler({final:`C`},e=>this.cursorForward(e)),this._parser.registerCsiHandler({final:`D`},e=>this.cursorBackward(e)),this._parser.registerCsiHandler({final:`E`},e=>this.cursorNextLine(e)),this._parser.registerCsiHandler({final:`F`},e=>this.cursorPrecedingLine(e)),this._parser.registerCsiHandler({final:`G`},e=>this.cursorCharAbsolute(e)),this._parser.registerCsiHandler({final:`H`},e=>this.cursorPosition(e)),this._parser.registerCsiHandler({final:`I`},e=>this.cursorForwardTab(e)),this._parser.registerCsiHandler({final:`J`},e=>this.eraseInDisplay(e,!1)),this._parser.registerCsiHandler({prefix:`?`,final:`J`},e=>this.eraseInDisplay(e,!0)),this._parser.registerCsiHandler({final:`K`},e=>this.eraseInLine(e,!1)),this._parser.registerCsiHandler({prefix:`?`,final:`K`},e=>this.eraseInLine(e,!0)),this._parser.registerCsiHandler({final:`L`},e=>this.insertLines(e)),this._parser.registerCsiHandler({final:`M`},e=>this.deleteLines(e)),this._parser.registerCsiHandler({final:`P`},e=>this.deleteChars(e)),this._parser.registerCsiHandler({final:`S`},e=>this.scrollUp(e)),this._parser.registerCsiHandler({final:`T`},e=>this.scrollDown(e)),this._parser.registerCsiHandler({final:`X`},e=>this.eraseChars(e)),this._parser.registerCsiHandler({final:`Z`},e=>this.cursorBackwardTab(e)),this._parser.registerCsiHandler({final:"`"},e=>this.charPosAbsolute(e)),this._parser.registerCsiHandler({final:`a`},e=>this.hPositionRelative(e)),this._parser.registerCsiHandler({final:`b`},e=>this.repeatPrecedingCharacter(e)),this._parser.registerCsiHandler({final:`c`},e=>this.sendDeviceAttributesPrimary(e)),this._parser.registerCsiHandler({prefix:`>`,final:`c`},e=>this.sendDeviceAttributesSecondary(e)),this._parser.registerCsiHandler({final:`d`},e=>this.linePosAbsolute(e)),this._parser.registerCsiHandler({final:`e`},e=>this.vPositionRelative(e)),this._parser.registerCsiHandler({final:`f`},e=>this.hVPosition(e)),this._parser.registerCsiHandler({final:`g`},e=>this.tabClear(e)),this._parser.registerCsiHandler({final:`h`},e=>this.setMode(e)),this._parser.registerCsiHandler({prefix:`?`,final:`h`},e=>this.setModePrivate(e)),this._parser.registerCsiHandler({final:`l`},e=>this.resetMode(e)),this._parser.registerCsiHandler({prefix:`?`,final:`l`},e=>this.resetModePrivate(e)),this._parser.registerCsiHandler({final:`m`},e=>this.charAttributes(e)),this._parser.registerCsiHandler({final:`n`},e=>this.deviceStatus(e)),this._parser.registerCsiHandler({prefix:`?`,final:`n`},e=>this.deviceStatusPrivate(e)),this._parser.registerCsiHandler({intermediates:`!`,final:`p`},e=>this.softReset(e)),this._parser.registerCsiHandler({intermediates:` `,final:`q`},e=>this.setCursorStyle(e)),this._parser.registerCsiHandler({final:`r`},e=>this.setScrollRegion(e)),this._parser.registerCsiHandler({final:`s`},e=>this.saveCursor(e)),this._parser.registerCsiHandler({final:`t`},e=>this.windowOptions(e)),this._parser.registerCsiHandler({final:`u`},e=>this.restoreCursor(e)),this._parser.registerCsiHandler({intermediates:`'`,final:`}`},e=>this.insertColumns(e)),this._parser.registerCsiHandler({intermediates:`'`,final:`~`},e=>this.deleteColumns(e)),this._parser.registerCsiHandler({intermediates:`"`,final:`q`},e=>this.selectProtected(e)),this._parser.registerCsiHandler({intermediates:`$`,final:`p`},e=>this.requestMode(e,!0)),this._parser.registerCsiHandler({prefix:`?`,intermediates:`$`,final:`p`},e=>this.requestMode(e,!1)),this._parser.setExecuteHandler(R.BEL,()=>this.bell()),this._parser.setExecuteHandler(R.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(R.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(R.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(R.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(R.BS,()=>this.backspace()),this._parser.setExecuteHandler(R.HT,()=>this.tab()),this._parser.setExecuteHandler(R.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(R.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(Ei.IND,()=>this.index()),this._parser.setExecuteHandler(Ei.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(Ei.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new rs(e=>(this.setTitle(e),this.setIconName(e),!0))),this._parser.registerOscHandler(1,new rs(e=>this.setIconName(e))),this._parser.registerOscHandler(2,new rs(e=>this.setTitle(e))),this._parser.registerOscHandler(4,new rs(e=>this.setOrReportIndexedColor(e))),this._parser.registerOscHandler(8,new rs(e=>this.setHyperlink(e))),this._parser.registerOscHandler(10,new rs(e=>this.setOrReportFgColor(e))),this._parser.registerOscHandler(11,new rs(e=>this.setOrReportBgColor(e))),this._parser.registerOscHandler(12,new rs(e=>this.setOrReportCursorColor(e))),this._parser.registerOscHandler(104,new rs(e=>this.restoreIndexedColor(e))),this._parser.registerOscHandler(110,new rs(e=>this.restoreFgColor(e))),this._parser.registerOscHandler(111,new rs(e=>this.restoreBgColor(e))),this._parser.registerOscHandler(112,new rs(e=>this.restoreCursorColor(e))),this._parser.registerEscHandler({final:`7`},()=>this.saveCursor()),this._parser.registerEscHandler({final:`8`},()=>this.restoreCursor()),this._parser.registerEscHandler({final:`D`},()=>this.index()),this._parser.registerEscHandler({final:`E`},()=>this.nextLine()),this._parser.registerEscHandler({final:`H`},()=>this.tabSet()),this._parser.registerEscHandler({final:`M`},()=>this.reverseIndex()),this._parser.registerEscHandler({final:`=`},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:`>`},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:`c`},()=>this.fullReset()),this._parser.registerEscHandler({final:`n`},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:`o`},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:`|`},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:`}`},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:`~`},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:`%`,final:`@`},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:`%`,final:`G`},()=>this.selectDefaultCharset());for(let e in Z)this._parser.registerEscHandler({intermediates:`(`,final:e},()=>this.selectCharset(`(`+e)),this._parser.registerEscHandler({intermediates:`)`,final:e},()=>this.selectCharset(`)`+e)),this._parser.registerEscHandler({intermediates:`*`,final:e},()=>this.selectCharset(`*`+e)),this._parser.registerEscHandler({intermediates:`+`,final:e},()=>this.selectCharset(`+`+e)),this._parser.registerEscHandler({intermediates:`-`,final:e},()=>this.selectCharset(`-`+e)),this._parser.registerEscHandler({intermediates:`.`,final:e},()=>this.selectCharset(`.`+e)),this._parser.registerEscHandler({intermediates:`/`,final:e},()=>this.selectCharset(`/`+e));this._parser.registerEscHandler({intermediates:`#`,final:`8`},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(e=>(this._logService.error(`Parsing error: `,e),e)),this._parser.registerDcsHandler({intermediates:`$`,final:`q`},new ss((e,t)=>this.requestStatusString(e,t)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,n,r){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=r}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((e,t)=>setTimeout(()=>t(`#SLOW_TIMEOUT`),xs))]).catch(e=>{if(e!==`#SLOW_TIMEOUT`)throw e;console.warn(`async parser handler taking longer than ${xs} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let n,r=this._activeBuffer.x,i=this._activeBuffer.y,a=0,o=this._parseStack.paused;if(o){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;r=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>vs&&(a=this._parseStack.position+vs)}if(this._logService.logLevel<=1&&this._logService.debug(`parsing data ${typeof e==`string`?` "${e}"`:` "${Array.prototype.map.call(e,e=>String.fromCharCode(e)).join(``)}"`}`),this._logService.logLevel===0&&this._logService.trace(`parsing data (codes)`,typeof e==`string`?e.split(``).map(e=>e.charCodeAt(0)):e),this._parseBuffer.lengthvs)for(let t=a;t0&&d.getWidth(this._activeBuffer.x-1)===2&&d.setCellFromCodepoint(this._activeBuffer.x-1,0,1,u);let f=this._parser.precedingJoinState;for(let p=t;ps){if(c){let e=d,t=this._activeBuffer.x-m;for(this._activeBuffer.x=m,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),m>0&&d instanceof _o&&d.copyCellsFrom(e,t,0,m,!1);t=0;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u);continue}if(l&&(d.insertCells(this._activeBuffer.x,i-m,this._activeBuffer.getNullCell(u)),d.getWidth(s-1)===2&&d.setCellFromCodepoint(s-1,0,1,u)),d.setCellFromCodepoint(this._activeBuffer.x++,r,i,u),i>0)for(;--i;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}this._parser.precedingJoinState=f,this._activeBuffer.x0&&d.getWidth(this._activeBuffer.x)===0&&!d.hasContent(this._activeBuffer.x)&&d.setCellFromCodepoint(this._activeBuffer.x,0,1,u),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return e.final===`t`&&!e.prefix&&!e.intermediates?this._parser.registerCsiHandler(e,e=>bs(e.params[0],this._optionsService.rawOptions.windowOptions)?t(e):!0):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new ss(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new rs(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)?.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return t===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:t===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return t===1&&(this._curAttrData.bg|=536870912),(t===2||t===0)&&(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,n,r=!1,i=!1){let a=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);a.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),i),r&&(a.isWrapped=!1)}_resetBufferLine(e,t=!1){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n&&(n.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),n.isWrapped=!1)}eraseInDisplay(e,t=!1){this._restrictCursor(this._bufferService.cols);let n;switch(e.params[0]){case 0:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);n=this._bufferService.cols&&(this._activeBuffer.lines.get(n+1).isWrapped=!1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0);break;case 2:if(this._optionsService.rawOptions.scrollOnEraseInDisplay){for(n=this._bufferService.rows,this._dirtyRowTracker.markRangeDirty(0,n-1);n--&&!this._activeBuffer.lines.get(this._activeBuffer.ybase+n)?.getTrimmedLength(););for(;n>=0;n--)this._bufferService.scroll(this._eraseAttrData())}else{for(n=this._bufferService.rows,this._dirtyRowTracker.markDirty(n-1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0)}break;case 3:let e=this._activeBuffer.lines.length-this._bufferService.rows;e>0&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0));break}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t);break}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y65535?2:1}let c=s;for(let e=1;e0||(this._is(`xterm`)||this._is(`rxvt-unicode`)||this._is(`screen`)?this._coreService.triggerDataEvent(R.ESC+`[?1;2c`):this._is(`linux`)&&this._coreService.triggerDataEvent(R.ESC+`[?6c`)),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is(`xterm`)?this._coreService.triggerDataEvent(R.ESC+`[>0;276;0c`):this._is(`rxvt-unicode`)?this._coreService.triggerDataEvent(R.ESC+`[>85;95;0c`):this._is(`linux`)?this._coreService.triggerDataEvent(e.params[0]+`c`):this._is(`screen`)&&this._coreService.triggerDataEvent(R.ESC+`[>83;40003;0c`)),!0}_is(e){return(this._optionsService.rawOptions.termName+``).indexOf(e)===0}setMode(e){for(let t=0;t(e[e.NOT_RECOGNIZED=0]=`NOT_RECOGNIZED`,e[e.SET=1]=`SET`,e[e.RESET=2]=`RESET`,e[e.PERMANENTLY_SET=3]=`PERMANENTLY_SET`,e[e.PERMANENTLY_RESET=4]=`PERMANENTLY_RESET`))(n||={});let r=this._coreService.decPrivateModes,{activeProtocol:i,activeEncoding:a}=this._coreMouseService,o=this._coreService,{buffers:s,cols:c}=this._bufferService,{active:l,alt:u}=s,d=this._optionsService.rawOptions,f=(e,n)=>(o.triggerDataEvent(`${R.ESC}[${t?``:`?`}${e};${n}$y`),!0),p=e=>e?1:2,m=e.params[0];return t?m===2?f(m,4):m===4?f(m,p(o.modes.insertMode)):m===12?f(m,3):m===20?f(m,p(d.convertEol)):f(m,0):m===1?f(m,p(r.applicationCursorKeys)):m===3?f(m,d.windowOptions.setWinLines?c===80?2:+(c===132):0):m===6?f(m,p(r.origin)):m===7?f(m,p(r.wraparound)):m===8?f(m,3):m===9?f(m,p(i===`X10`)):m===12?f(m,p(d.cursorBlink)):m===25?f(m,p(!o.isCursorHidden)):m===45?f(m,p(r.reverseWraparound)):m===66?f(m,p(r.applicationKeypad)):m===67?f(m,4):m===1e3?f(m,p(i===`VT200`)):m===1002?f(m,p(i===`DRAG`)):m===1003?f(m,p(i===`ANY`)):m===1004?f(m,p(r.sendFocus)):m===1005?f(m,4):m===1006?f(m,p(a===`SGR`)):m===1015?f(m,4):m===1016?f(m,p(a===`SGR_PIXELS`)):m===1048?f(m,1):m===47||m===1047||m===1049?f(m,p(l===u)):m===2004?f(m,p(r.bracketedPasteMode)):m===2026?f(m,p(r.synchronizedOutput)):f(m,0)}_updateAttrColor(e,t,n,r,i){return t===2?(e|=50331648,e&=-16777216,e|=we.fromColorRGB([n,r,i])):t===5&&(e&=-50331904,e|=33554432|n&255),e}_extractColor(e,t,n){let r=[0,0,-1,0,0,0],i=0,a=0;do{if(r[a+i]=e.params[t+a],e.hasSubParams(t+a)){let n=e.getSubParams(t+a),o=0;do r[1]===5&&(i=1),r[a+o+1+i]=n[o];while(++o=2||r[1]===2&&a+i>=5)break;r[1]&&(i=1)}while(++a+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,e===0&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=X.fg,e.bg=X.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(e.length===1&&e.params[0]===0)return this._processSGR0(this._curAttrData),!0;let t=e.length,n,r=this._curAttrData;for(let i=0;i=30&&n<=37?(r.fg&=-50331904,r.fg|=16777216|n-30):n>=40&&n<=47?(r.bg&=-50331904,r.bg|=16777216|n-40):n>=90&&n<=97?(r.fg&=-50331904,r.fg|=n-90|16777224):n>=100&&n<=107?(r.bg&=-50331904,r.bg|=n-100|16777224):n===0?this._processSGR0(r):n===1?r.fg|=134217728:n===3?r.bg|=67108864:n===4?(r.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,r)):n===5?r.fg|=536870912:n===7?r.fg|=67108864:n===8?r.fg|=1073741824:n===9?r.fg|=2147483648:n===2?r.bg|=134217728:n===21?this._processUnderline(2,r):n===22?(r.fg&=-134217729,r.bg&=-134217729):n===23?r.bg&=-67108865:n===24?(r.fg&=-268435457,this._processUnderline(0,r)):n===25?r.fg&=-536870913:n===27?r.fg&=-67108865:n===28?r.fg&=-1073741825:n===29?r.fg&=2147483647:n===39?(r.fg&=-67108864,r.fg|=X.fg&16777215):n===49?(r.bg&=-67108864,r.bg|=X.bg&16777215):n===38||n===48||n===58?i+=this._extractColor(e,i,r):n===53?r.bg|=1073741824:n===55?r.bg&=-1073741825:n===59?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):n===100?(r.fg&=-67108864,r.fg|=X.fg&16777215,r.bg&=-67108864,r.bg|=X.bg&16777215):this._logService.debug(`Unknown SGR attribute: %d.`,n);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${R.ESC}[0n`);break;case 6:let e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${R.ESC}[${e};${t}R`);break}return!0}deviceStatusPrivate(e){switch(e.params[0]){case 6:let e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${R.ESC}[?${e};${t}R`);break;case 15:break;case 25:break;case 26:break;case 53:break}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=X.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.length===0?1:e.params[0];if(t===0)this._coreService.decPrivateModes.cursorStyle=void 0,this._coreService.decPrivateModes.cursorBlink=void 0;else{switch(t){case 1:case 2:this._coreService.decPrivateModes.cursorStyle=`block`;break;case 3:case 4:this._coreService.decPrivateModes.cursorStyle=`underline`;break;case 5:case 6:this._coreService.decPrivateModes.cursorStyle=`bar`;break}let e=t%2==1;this._coreService.decPrivateModes.cursorBlink=e}return!0}setScrollRegion(e){let t=e.params[0]||1,n;return(e.length<2||(n=e.params[1])>this._bufferService.rows||n===0)&&(n=this._bufferService.rows),n>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=n-1,this._setCursor(0,0)),!0}windowOptions(e){if(!bs(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:t!==2&&this._onRequestWindowsOptionsReport.fire(0);break;case 16:this._onRequestWindowsOptionsReport.fire(1);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${R.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>ys&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>ys&&this._iconNameStack.shift());break;case 23:(t===0||t===2)&&this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),(t===0||t===1)&&this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop());break}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],n=e.split(`;`);for(;n.length>1;){let e=n.shift(),r=n.shift();if(/^\d+$/.exec(e)){let n=parseInt(e);if(Ts(n))if(r===`?`)t.push({type:0,index:n});else{let e=ms(r);e&&t.push({type:1,index:n,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.indexOf(`;`);if(t===-1)return!0;let n=e.slice(0,t).trim(),r=e.slice(t+1);return r?this._createHyperlink(n,r):n.trim()?!1:this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let n=e.split(`:`),r,i=n.findIndex(e=>e.startsWith(`id=`));return i!==-1&&(r=n[i].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:r,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let n=e.split(`;`);for(let e=0;e=this._specialColors.length);++e,++t)if(n[e]===`?`)this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let r=ms(n[e]);r&&this._onColor.fire([{type:1,index:this._specialColors[t],color:r}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],n=e.split(`;`);for(let e=0;e=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=X.clone(),this._eraseAttrDataInternal=X.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=this._curAttrData.bg&67108863,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new Ee;e.content=4194373,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t(this._coreService.triggerDataEvent(`${R.ESC}${e}${R.ESC}\\`),!0),r=this._bufferService.buffer,i=this._optionsService.rawOptions;return n(e===`"q`?`P1$r${+!!this._curAttrData.isProtected()}"q`:e===`"p`?`P1$r61;1"p`:e===`r`?`P1$r${r.scrollTop+1};${r.scrollBottom+1}r`:e===`m`?`P1$r0m`:e===` q`?`P1$r${{block:2,underline:4,bar:6}[i.cursorStyle]-+!!i.cursorBlink} q`:`P0$r`)}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},ws=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){ethis.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(Ss=e,e=t,t=Ss),ethis.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};ws=x([S(0,O)],ws);function Ts(e){return 0<=e&&e<256}var Es=5e7,Ds=12,Os=50,ks=class extends j{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this._register(new P),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(t!==void 0&&this._syncCalls>t){this._syncCalls=0;return}if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;this._isSyncWriting=!0;let n;for(;n=this._writeBuffer.shift();){this._action(n);let e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>Es)throw Error(`write data discarded, use flow control to avoid losing data`);if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput){this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),this._innerWrite();return}setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let n=e||performance.now();for(;this._writeBuffer.length>this._bufferOffset;){let e=this._writeBuffer[this._bufferOffset],r=this._action(e,t);if(r){r.catch(e=>(queueMicrotask(()=>{throw e}),Promise.resolve(!1))).then(e=>performance.now()-n>=Ds?setTimeout(()=>this._innerWrite(0,e)):this._innerWrite(n,e));return}let i=this._callbacks[this._bufferOffset];if(i&&i(),this._bufferOffset++,this._pendingData-=e.length,performance.now()-n>=Ds)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>Os&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}},As=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(e.id===void 0){let n=t.addMarker(t.ybase+t.y),r={data:e,id:this._nextId++,lines:[n]};return n.onDispose(()=>this._removeMarkerFromLink(r,n)),this._dataByLinkId.set(r.id,r),r.id}let n=e,r=this._getEntryIdKey(n),i=this._entriesWithId.get(r);if(i)return this.addLineToLink(i.id,t.ybase+t.y),i.id;let a=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(n),data:n,lines:[a]};return a.onDispose(()=>this._removeMarkerFromLink(o,a)),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){let n=this._dataByLinkId.get(e);if(n&&n.lines.every(e=>e.line!==t)){let e=this._bufferService.buffer.addMarker(t);n.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(n,e))}}getLinkData(e){return this._dataByLinkId.get(e)?.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let n=e.lines.indexOf(t);n!==-1&&(e.lines.splice(n,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};As=x([S(0,O)],As);var js=!1,Ms=class extends j{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new Ot),this._onBinary=this._register(new P),this.onBinary=this._onBinary.event,this._onData=this._register(new P),this.onData=this._onData.event,this._onLineFeed=this._register(new P),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new P),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new P),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new P),this._instantiationService=new co,this.optionsService=this._register(new Po(e)),this._instantiationService.setService(k,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance(jo)),this._instantiationService.setService(O,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(fo)),this._instantiationService.setService(Ie,this._logService),this.coreService=this._register(this._instantiationService.createInstance(zo)),this._instantiationService.setService(Ne,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(Wo)),this._instantiationService.setService(Me,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance(Yo)),this._instantiationService.setService(Re,this.unicodeService),this._charsetService=this._instantiationService.createInstance(Xo),this._instantiationService.setService(Pe,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(As),this._instantiationService.setService(Le,this._oscLinkService),this._inputHandler=this._register(new Cs(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(N.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(N.forward(this._bufferService.onResize,this._onResize)),this._register(N.forward(this.coreService.onData,this._onData)),this._register(N.forward(this.coreService.onBinary,this._onBinary)),this._register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom(!0))),this._register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this._register(this.optionsService.onMultipleOptionChange([`windowsMode`,`windowsPty`],()=>this._handleWindowsPtyOptionChange())),this._register(this._bufferService.onScroll(()=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this._register(new ks((e,t)=>this._inputHandler.parse(e,t))),this._register(N.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new P),this._onScroll.event(e=>{this._onScrollApi?.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=3&&!js&&(this._logService.warn(`writeSync is unreliable and will be removed soon.`),js=!0),this._writeBuffer.writeSync(e,t)}input(e,t=!0){this.coreService.triggerDataEvent(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,ko),t=Math.max(t,Ao),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t){this._bufferService.scrollLines(e,t)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&t.buildNumber!==void 0&&t.buildNumber!==void 0?e=t.backend===`conpty`&&t.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(Zo.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:`H`},()=>(Zo(this._bufferService),!1))),this._windowsWrappingHeuristics.value=A(()=>{for(let t of e)t.dispose()})}}},Ns={48:[`0`,`)`],49:[`1`,`!`],50:[`2`,`@`],51:[`3`,`#`],52:[`4`,`$`],53:[`5`,`%`],54:[`6`,`^`],55:[`7`,`&`],56:[`8`,`*`],57:[`9`,`(`],186:[`;`,`:`],187:[`=`,`+`],188:[`,`,`<`],189:[`-`,`_`],190:[`.`,`>`],191:[`/`,`?`],192:["`",`~`],219:[`[`,`{`],220:[`\\`,`|`],221:[`]`,`}`],222:[`'`,`"`]};function Ps(e,t,n,r){let i={type:0,cancel:!1,key:void 0},a=!!e.shiftKey|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key===`UIKeyInputUpArrow`?t?i.key=R.ESC+`OA`:i.key=R.ESC+`[A`:e.key===`UIKeyInputLeftArrow`?t?i.key=R.ESC+`OD`:i.key=R.ESC+`[D`:e.key===`UIKeyInputRightArrow`?t?i.key=R.ESC+`OC`:i.key=R.ESC+`[C`:e.key===`UIKeyInputDownArrow`&&(t?i.key=R.ESC+`OB`:i.key=R.ESC+`[B`);break;case 8:i.key=e.ctrlKey?`\b`:R.DEL,e.altKey&&(i.key=R.ESC+i.key);break;case 9:if(e.shiftKey){i.key=R.ESC+`[Z`;break}i.key=R.HT,i.cancel=!0;break;case 13:i.key=e.altKey?R.ESC+R.CR:R.CR,i.cancel=!0;break;case 27:i.key=R.ESC,e.altKey&&(i.key=R.ESC+R.ESC),i.cancel=!0;break;case 37:if(e.metaKey)break;a?i.key=R.ESC+`[1;`+(a+1)+`D`:t?i.key=R.ESC+`OD`:i.key=R.ESC+`[D`;break;case 39:if(e.metaKey)break;a?i.key=R.ESC+`[1;`+(a+1)+`C`:t?i.key=R.ESC+`OC`:i.key=R.ESC+`[C`;break;case 38:if(e.metaKey)break;a?i.key=R.ESC+`[1;`+(a+1)+`A`:t?i.key=R.ESC+`OA`:i.key=R.ESC+`[A`;break;case 40:if(e.metaKey)break;a?i.key=R.ESC+`[1;`+(a+1)+`B`:t?i.key=R.ESC+`OB`:i.key=R.ESC+`[B`;break;case 45:!e.shiftKey&&!e.ctrlKey&&(i.key=R.ESC+`[2~`);break;case 46:a?i.key=R.ESC+`[3;`+(a+1)+`~`:i.key=R.ESC+`[3~`;break;case 36:a?i.key=R.ESC+`[1;`+(a+1)+`H`:t?i.key=R.ESC+`OH`:i.key=R.ESC+`[H`;break;case 35:a?i.key=R.ESC+`[1;`+(a+1)+`F`:t?i.key=R.ESC+`OF`:i.key=R.ESC+`[F`;break;case 33:e.shiftKey?i.type=2:e.ctrlKey?i.key=R.ESC+`[5;`+(a+1)+`~`:i.key=R.ESC+`[5~`;break;case 34:e.shiftKey?i.type=3:e.ctrlKey?i.key=R.ESC+`[6;`+(a+1)+`~`:i.key=R.ESC+`[6~`;break;case 112:a?i.key=R.ESC+`[1;`+(a+1)+`P`:i.key=R.ESC+`OP`;break;case 113:a?i.key=R.ESC+`[1;`+(a+1)+`Q`:i.key=R.ESC+`OQ`;break;case 114:a?i.key=R.ESC+`[1;`+(a+1)+`R`:i.key=R.ESC+`OR`;break;case 115:a?i.key=R.ESC+`[1;`+(a+1)+`S`:i.key=R.ESC+`OS`;break;case 116:a?i.key=R.ESC+`[15;`+(a+1)+`~`:i.key=R.ESC+`[15~`;break;case 117:a?i.key=R.ESC+`[17;`+(a+1)+`~`:i.key=R.ESC+`[17~`;break;case 118:a?i.key=R.ESC+`[18;`+(a+1)+`~`:i.key=R.ESC+`[18~`;break;case 119:a?i.key=R.ESC+`[19;`+(a+1)+`~`:i.key=R.ESC+`[19~`;break;case 120:a?i.key=R.ESC+`[20;`+(a+1)+`~`:i.key=R.ESC+`[20~`;break;case 121:a?i.key=R.ESC+`[21;`+(a+1)+`~`:i.key=R.ESC+`[21~`;break;case 122:a?i.key=R.ESC+`[23;`+(a+1)+`~`:i.key=R.ESC+`[23~`;break;case 123:a?i.key=R.ESC+`[24;`+(a+1)+`~`:i.key=R.ESC+`[24~`;break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?i.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?i.key=R.NUL:e.keyCode>=51&&e.keyCode<=55?i.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?i.key=R.DEL:e.keyCode===219?i.key=R.ESC:e.keyCode===220?i.key=R.FS:e.keyCode===221&&(i.key=R.GS);else if((!n||r)&&e.altKey&&!e.metaKey){let t=Ns[e.keyCode]?.[+!!e.shiftKey];if(t)i.key=R.ESC+t;else if(e.keyCode>=65&&e.keyCode<=90){let t=e.ctrlKey?e.keyCode-64:e.keyCode+32,n=String.fromCharCode(t);e.shiftKey&&(n=n.toUpperCase()),i.key=R.ESC+n}else if(e.keyCode===32)i.key=R.ESC+(e.ctrlKey?R.NUL:` `);else if(e.key===`Dead`&&e.code.startsWith(`Key`)){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),i.key=R.ESC+t,i.cancel=!0}}else n&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(i.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?i.key=e.key:e.key&&e.ctrlKey&&(e.key===`_`&&(i.key=R.US),e.key===`@`&&(i.key=R.NUL));break}return i}var $=0,Fs=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new Da,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new Da,this._isFlushingDeleted=!1}clear(){this._array.length=0,this._insertedValues.length=0,this._flushInsertedTask.clear(),this._isFlushingInserted=!1,this._deletedIndices.length=0,this._flushDeletedTask.clear(),this._isFlushingDeleted=!1}insert(e){this._flushCleanupDeleted(),this._insertedValues.length===0&&this._flushInsertedTask.enqueue(()=>this._flushInserted()),this._insertedValues.push(e)}_flushInserted(){let e=this._insertedValues.sort((e,t)=>this._getKey(e)-this._getKey(t)),t=0,n=0,r=Array(this._array.length+this._insertedValues.length);for(let i=0;i=this._array.length||this._getKey(e[t])<=this._getKey(this._array[n])?(r[i]=e[t],t++):r[i]=this._array[n++];this._array=r,this._insertedValues.length=0}_flushCleanupInserted(){!this._isFlushingInserted&&this._insertedValues.length>0&&this._flushInsertedTask.flush()}delete(e){if(this._flushCleanupInserted(),this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||($=this._search(t),$===-1)||this._getKey(this._array[$])!==t)return!1;do if(this._array[$]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push($),!0;while(++$e-t),t=0,n=Array(this._array.length-e.length),r=0;for(let i=0;i0&&this._flushDeletedTask.flush()}*getKeyIterator(e){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&($=this._search(e),!($<0||$>=this._array.length)&&this._getKey(this._array[$])===e))do yield this._array[$];while(++$=this._array.length)&&this._getKey(this._array[$])===e))do t(this._array[$]);while(++$=t;){let r=t+n>>1,i=this._getKey(this._array[r]);if(i>e)n=r-1;else if(i0&&this._getKey(this._array[r-1])===e;)r--;return r}}return t}},Is=0,Ls=0,Rs=class extends j{constructor(){super(),this._decorations=new Fs(e=>e?.marker.line),this._onDecorationRegistered=this._register(new P),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new P),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(A(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new zs(e);if(t){let e=t.marker.onDispose(()=>t.dispose()),n=t.onDispose(()=>{n.dispose(),t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())});this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,n){let r=0,i=0;for(let a of this._decorations.getKeyIterator(t))r=a.options.x??0,i=r+(a.options.width??1),e>=r&&e{Is=t.options.x??0,Ls=Is+(t.options.width??1),e>=Is&&e=this._debounceThresholdMS)this._lastRefreshMs=r,this._innerRefresh();else if(!this._additionalRefreshRequested){let e=r-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=performance.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},t)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},Hs=20,Us=!1,Ws=class extends j{constructor(e,t,n,r){super(),this._terminal=e,this._coreBrowserService=n,this._renderService=r,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce=``;let i=this._coreBrowserService.mainDocument;this._accessibilityContainer=i.createElement(`div`),this._accessibilityContainer.classList.add(`xterm-accessibility`),this._rowContainer=i.createElement(`div`),this._rowContainer.setAttribute(`role`,`list`),this._rowContainer.classList.add(`xterm-accessibility-tree`),this._rowElements=[];for(let e=0;ethis._handleBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._handleBoundaryFocus(e,1),this._rowElements[0].addEventListener(`focus`,this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener(`focus`,this._bottomBoundaryFocusListener),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=i.createElement(`div`),this._liveRegion.classList.add(`live-region`),this._liveRegion.setAttribute(`aria-live`,`assertive`),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new Vs(this._renderRows.bind(this))),!this._terminal.element)throw Error(`Cannot enable accessibility before Terminal.open`);Us?(this._accessibilityContainer.classList.add(`debug`),this._rowContainer.classList.add(`debug`),this._debugRootContainer=i.createElement(`div`),this._debugRootContainer.classList.add(`xterm`),this._debugRootContainer.appendChild(i.createTextNode(`------start a11y------`)),this._debugRootContainer.appendChild(this._accessibilityContainer),this._debugRootContainer.appendChild(i.createTextNode(`------end a11y------`)),this._terminal.element.insertAdjacentElement(`afterend`,this._debugRootContainer)):this._terminal.element.insertAdjacentElement(`afterbegin`,this._accessibilityContainer),this._register(this._terminal.onResize(e=>this._handleResize(e.rows))),this._register(this._terminal.onRender(e=>this._refreshRows(e.start,e.end))),this._register(this._terminal.onScroll(()=>this._refreshRows())),this._register(this._terminal.onA11yChar(e=>this._handleChar(e))),this._register(this._terminal.onLineFeed(()=>this._handleChar(` +`))),this._register(this._terminal.onA11yTab(e=>this._handleTab(e))),this._register(this._terminal.onKey(e=>this._handleKey(e.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(F(i,`selectionchange`,()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(A(()=>{Us?this._debugRootContainer.remove():this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===Hs+1&&(this._liveRegion.textContent+=fe.get())))}_clearLiveRegion(){this._liveRegion.textContent=``,this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let n=this._terminal.buffer,r=n.lines.length.toString();for(let i=e;i<=t;i++){let e=n.lines.get(n.ydisp+i),t=[],a=e?.translateToString(!0,void 0,void 0,t)||``,o=(n.ydisp+i+1).toString(),s=this._rowElements[i];s&&(a.length===0?(s.textContent=`\xA0`,this._rowColumns.set(s,[0,1])):(s.textContent=a,this._rowColumns.set(s,t)),s.setAttribute(`aria-posinset`,o),s.setAttribute(`aria-setsize`,r),this._alignRowWidth(s))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce=``)}_handleBoundaryFocus(e,t){let n=e.target,r=this._rowElements[t===0?1:this._rowElements.length-2];if(n.getAttribute(`aria-posinset`)===(t===0?`1`:`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==r)return;let i,a;if(t===0?(i=n,a=this._rowElements.pop(),this._rowContainer.removeChild(a)):(i=this._rowElements.shift(),a=n,this._rowContainer.removeChild(i)),i.removeEventListener(`focus`,this._topBoundaryFocusListener),a.removeEventListener(`focus`,this._bottomBoundaryFocusListener),t===0){let e=this._createAccessibilityTreeNode();this._rowElements.unshift(e),this._rowContainer.insertAdjacentElement(`afterbegin`,e)}else{let e=this._createAccessibilityTreeNode();this._rowElements.push(e),this._rowContainer.appendChild(e)}this._rowElements[0].addEventListener(`focus`,this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener(`focus`,this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;let e=this._coreBrowserService.mainDocument.getSelection();if(!e)return;if(e.isCollapsed){this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection();return}if(!e.anchorNode||!e.focusNode){console.error(`anchorNode and/or focusNode are null`);return}let t={node:e.anchorNode,offset:e.anchorOffset},n={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(n.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===n.node&&t.offset>n.offset)&&([t,n]=[n,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let r=this._rowElements.slice(-1)[0];if(n.node.compareDocumentPosition(r)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(n={node:r,offset:r.textContent?.length??0}),!this._rowContainer.contains(n.node))return;let i=({node:e,offset:t})=>{let n=e instanceof Text?e.parentNode:e,r=parseInt(n?.getAttribute(`aria-posinset`),10)-1;if(isNaN(r))return console.warn(`row is invalid. Race condition?`),null;let i=this._rowColumns.get(n);if(!i)return console.warn(`columns is null. Race condition?`),null;let a=t=this._terminal.cols&&(++r,a=0),{row:r,column:a}},a=i(t),o=i(n);if(!(!a||!o)){if(a.row>o.row||a.row===o.row&&a.column>=o.column)throw Error(`invalid range`);this._terminal.select(a.column,a.row,(o.row-a.row)*this._terminal.cols-a.column+o.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener(`focus`,this._bottomBoundaryFocusListener);for(let e=this._rowContainer.children.length;ee;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener(`focus`,this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement(`div`);return e.setAttribute(`role`,`listitem`),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){Object.assign(this._accessibilityContainer.style,{width:`${this._renderService.dimensions.css.canvas.width}px`,fontSize:`${this._terminal.options.fontSize}px`}),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e{wt(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(F(this._element,`mouseleave`,()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(F(this._element,`mousemove`,this._handleMouseMove.bind(this))),this._register(F(this._element,`mousedown`,this._handleMouseDown.bind(this))),this._register(F(this._element,`mouseup`,this._handleMouseUp.bind(this)))}get currentLink(){return this._currentLink}_handleMouseMove(e){this._lastMouseEvent=e;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let n=e.composedPath();for(let e=0;e{e?.forEach(e=>{e.link.dispose&&e.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let n=!1;for(let[r,i]of this._linkProviderService.linkProviders.entries())t?this._activeProviderReplies?.get(r)&&(n=this._checkLinkProviderResult(r,e,n)):i.provideLinks(e.y,t=>{if(this._isMouseOut)return;let i=t?.map(e=>({link:e}));this._activeProviderReplies?.set(r,i),n=this._checkLinkProviderResult(r,e,n),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let n=new Set;for(let r=0;re?this._bufferService.cols:r.link.range.end.x;for(let e=a;e<=o;e++){if(n.has(e)){i.splice(t--,1);break}n.add(e)}}}}_checkLinkProviderResult(e,t,n){if(!this._activeProviderReplies)return n;let r=this._activeProviderReplies.get(e),i=!1;for(let t=0;tthis._linkAtPosition(e.link,t));e&&(n=!0,this._handleNewLink(e))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!n)for(let e=0;ethis._linkAtPosition(e.link,t));if(r){n=!0,this._handleNewLink(r);break}}return n}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&Ks(this._mouseDownLink.link,this._currentLink.link)&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){!this._currentLink||!this._lastMouseEvent||(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,wt(this._linkCacheDisposables),this._linkCacheDisposables.length=0)}_handleNewLink(e){if(!this._lastMouseEvent)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0?!0:e.link.decorations.underline,pointerCursor:e.link.decorations===void 0?!0:e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:e=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&this._element.classList.toggle(`xterm-cursor-pointer`,e))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:t=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(e=>{if(!this._currentLink)return;let t=e.start===0?0:e.start+1+this._bufferService.buffer.ydisp,n=this._bufferService.buffer.ydisp+1+e.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=n&&(this._clearCurrentLink(t,n),this._lastMouseEvent)){let e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._askForLink(e,!1)}})))}_linkHover(e,t,n){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add(`xterm-cursor-pointer`)),t.hover&&t.hover(n,t.text)}_fireUnderlineEvent(e,t){let n=e.range,r=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-r-1,n.end.x,n.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)}_linkLeave(e,t,n){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove(`xterm-cursor-pointer`)),t.leave&&t.leave(n,t.text)}_linkAtPosition(e,t){let n=e.range.start.y*this._bufferService.cols+e.range.start.x,r=e.range.end.y*this._bufferService.cols+e.range.end.x,i=t.y*this._bufferService.cols+t.x;return n<=i&&i<=r}_positionFromMouseEvent(e,t,n){let r=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}}};Gs=x([S(1,We),S(2,Ge),S(3,O),S(4,Ye)],Gs);function Ks(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}var qs=class extends Ms{constructor(e={}){super(e),this._linkifier=this._register(new Ot),this.browser=ua,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new Ot),this._onCursorMove=this._register(new P),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new P),this.onKey=this._onKey.event,this._onRender=this._register(new P),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new P),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new P),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new P),this.onBell=this._onBell.event,this._onFocus=this._register(new P),this._onBlur=this._register(new P),this._onA11yCharEmitter=this._register(new P),this._onA11yTabEmitter=this._register(new P),this._onWillOpen=this._register(new P),this._setup(),this._decorationService=this._instantiationService.createInstance(Rs),this._instantiationService.setService(ze,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(aa),this._instantiationService.setService(Ye,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(Be)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(e=>this.refresh(e?.start??0,e?.end??this.rows-1))),this._register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this._register(this._inputHandler.onRequestReset(()=>this.reset())),this._register(this._inputHandler.onRequestWindowsOptionsReport(e=>this._reportWindowsOptions(e))),this._register(this._inputHandler.onColor(e=>this._handleColorEvent(e))),this._register(N.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(N.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(N.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(N.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(e=>this._afterResize(e.cols,e.rows))),this._register(A(()=>{this._customKeyEventHandler=void 0,this.element?.parentNode?.removeChild(this.element)}))}get linkifier(){return this._linkifier.value}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(let t of e){let e,n=``;switch(t.index){case 256:e=`foreground`,n=`10`;break;case 257:e=`background`,n=`11`;break;case 258:e=`cursor`,n=`12`;break;default:e=`ansi`,n=`4;`+t.index}switch(t.type){case 0:let r=W.toColorRGB(e===`ansi`?this._themeService.colors.ansi[t.index]:this._themeService.colors[e]);this.coreService.triggerDataEvent(`${R.ESC}]${n};${gs(r)}${Di.ST}`);break;case 1:if(e===`ansi`)this._themeService.modifyColors(e=>e.ansi[t.index]=U.toColor(...t.color));else{let n=e;this._themeService.modifyColors(e=>e[n]=U.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index);break}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(Ws,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(R.ESC+`[I`),this.element.classList.add(`focus`),this._showCursor(),this._onFocus.fire()}blur(){return this.textarea?.blur()}_handleTextAreaBlur(){this.textarea.value=``,this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(R.ESC+`[O`),this.element.classList.remove(`focus`),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let n=Math.min(this.buffer.x,this.cols-1),r=this._renderService.dimensions.css.cell.height,i=t.getWidth(n),a=this._renderService.dimensions.css.cell.width*i,o=this.buffer.y*this._renderService.dimensions.css.cell.height,s=n*this._renderService.dimensions.css.cell.width;this.textarea.style.left=s+`px`,this.textarea.style.top=o+`px`,this.textarea.style.width=a+`px`,this.textarea.style.height=r+`px`,this.textarea.style.lineHeight=r+`px`,this.textarea.style.zIndex=`-5`}_initGlobal(){this._bindKeys(),this._register(F(this.element,`copy`,e=>{this.hasSelection()&&me(e,this._selectionService)}));let e=e=>E(e,this.textarea,this.coreService,this.optionsService);this._register(F(this.textarea,`paste`,e)),this._register(F(this.element,`paste`,e)),ma?this._register(F(this.element,`mousedown`,e=>{e.button===2&&_e(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(F(this.element,`contextmenu`,e=>{_e(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),Sa&&this._register(F(this.element,`auxclick`,e=>{e.button===1&&ge(e,this.textarea,this.screenElement)}))}_bindKeys(){this._register(F(this.textarea,`keyup`,e=>this._keyUp(e),!0)),this._register(F(this.textarea,`keydown`,e=>this._keyDown(e),!0)),this._register(F(this.textarea,`keypress`,e=>this._keyPress(e),!0)),this._register(F(this.textarea,`compositionstart`,()=>this._compositionHelper.compositionstart())),this._register(F(this.textarea,`compositionupdate`,e=>this._compositionHelper.compositionupdate(e))),this._register(F(this.textarea,`compositionend`,()=>this._compositionHelper.compositionend())),this._register(F(this.textarea,`input`,e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){if(!e)throw Error(`Terminal requires a parent element.`);if(e.isConnected||this._logService.debug(`Terminal.open was called on an element that was not attached to the DOM`),this.element?.ownerDocument.defaultView&&this._coreBrowserService){this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView);return}this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement(`div`),this.element.dir=`ltr`,this.element.classList.add(`terminal`),this.element.classList.add(`xterm`),e.appendChild(this.element);let t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement(`div`),this._viewportElement.classList.add(`xterm-viewport`),t.appendChild(this._viewportElement),this.screenElement=this._document.createElement(`div`),this.screenElement.classList.add(`xterm-screen`),this._register(F(this.screenElement,`mousemove`,e=>this.updateCursorStyle(e))),this._helperContainer=this._document.createElement(`div`),this._helperContainer.classList.add(`xterm-helpers`),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let n=this.textarea=this._document.createElement(`textarea`);this.textarea.classList.add(`xterm-helper-textarea`),this.textarea.setAttribute(`aria-label`,de.get()),Ca||this.textarea.setAttribute(`aria-multiline`,`false`),this.textarea.setAttribute(`autocorrect`,`off`),this.textarea.setAttribute(`autocapitalize`,`off`),this.textarea.setAttribute(`spellcheck`,`false`),this.textarea.tabIndex=0,this._register(this.optionsService.onSpecificOptionChange(`disableStdin`,()=>n.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance(ra,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<`u`?window.document:null)),this._instantiationService.setService(Ue,this._coreBrowserService),this._register(F(this.textarea,`focus`,e=>this._handleTextAreaFocus(e))),this._register(F(this.textarea,`blur`,()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance($i,this._document,this._helperContainer),this._instantiationService.setService(He,this._charSizeService),this._themeService=this._instantiationService.createInstance(oo),this._instantiationService.setService(Je,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(Pi),this._instantiationService.setService(qe,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(ka,this.rows,this.screenElement)),this._instantiationService.setService(Ge,this._renderService),this._register(this._renderService.onRenderedViewportChange(e=>this._onRender.fire(e))),this.onResize(e=>this._renderService.resize(e.cols,e.rows)),this._compositionView=this._document.createElement(`div`),this._compositionView.classList.add(`composition-view`),this._compositionHelper=this._instantiationService.createInstance(Oi,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(ca),this._instantiationService.setService(We,this._mouseService);let r=this._linkifier.value=this._register(this._instantiationService.createInstance(Gs,this.screenElement));this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this._register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this._register(this.onBlur(()=>this._renderService.handleBlur())),this._register(this.onFocus(()=>this._renderService.handleFocus())),this._viewport=this._register(this._instantiationService.createInstance(yi,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(e=>{super.scrollLines(e,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(Za,this.element,this.screenElement,r)),this._instantiationService.setService(Ke,this._selectionService),this._register(this._selectionService.onRequestScrollLines(e=>this.scrollLines(e.amount,e.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(e=>this._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()})),this._register(N.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{this._selectionService.refresh(),this._viewport?.queueSync()})),this._register(this._instantiationService.createInstance(bi,this.screenElement)),this._register(F(this.element,`mousedown`,e=>this._selectionService.handleMouseDown(e))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add(`enable-mouse-events`)):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(Ws,this)),this._register(this.optionsService.onSpecificOptionChange(`screenReaderMode`,e=>this._handleScreenReaderModeOptionChange(e))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(Ti,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange(`overviewRuler`,e=>{!this._overviewRulerRenderer&&e&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(Ti,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(Qi,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function n(t){let n=e._mouseService.getMouseReportCoords(t,e.screenElement);if(!n)return!1;let r,i;switch(t.overrideType||t.type){case`mousemove`:i=32,t.buttons===void 0?(r=3,t.button!==void 0&&(r=t.button<3?t.button:3)):r=t.buttons&1?0:t.buttons&4?1:t.buttons&2?2:3;break;case`mouseup`:i=0,r=t.button<3?t.button:3;break;case`mousedown`:i=1,r=t.button<3?t.button:3;break;case`wheel`:if(e._customWheelEventHandler&&e._customWheelEventHandler(t)===!1)return!1;let n=t.deltaY;if(n===0||e.coreMouseService.consumeWheelEvent(t,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return!1;i=n<0?0:1,r=4;break;default:return!1}return i===void 0||r===void 0||r>4?!1:e.coreMouseService.triggerMouseEvent({col:n.col,row:n.row,x:n.x,y:n.y,button:r,action:i,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}let r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},i={mouseup:e=>(n(e),e.buttons||(this._document.removeEventListener(`mouseup`,r.mouseup),r.mousedrag&&this._document.removeEventListener(`mousemove`,r.mousedrag)),this.cancel(e)),wheel:e=>(n(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&n(e)},mousemove:e=>{e.buttons||n(e)}};this._register(this.coreMouseService.onProtocolChange(e=>{e?(this.optionsService.rawOptions.logLevel===`debug`&&this._logService.debug(`Binding to mouse events:`,this.coreMouseService.explainEvents(e)),this.element.classList.add(`enable-mouse-events`),this._selectionService.disable()):(this._logService.debug(`Unbinding from mouse events.`),this.element.classList.remove(`enable-mouse-events`),this._selectionService.enable()),e&8?r.mousemove||=(t.addEventListener(`mousemove`,i.mousemove),i.mousemove):(t.removeEventListener(`mousemove`,r.mousemove),r.mousemove=null),e&16?r.wheel||=(t.addEventListener(`wheel`,i.wheel,{passive:!1}),i.wheel):(t.removeEventListener(`wheel`,r.wheel),r.wheel=null),e&2?r.mouseup||=i.mouseup:(this._document.removeEventListener(`mouseup`,r.mouseup),r.mouseup=null),e&4?r.mousedrag||=i.mousedrag:(this._document.removeEventListener(`mousemove`,r.mousedrag),r.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(F(t,`mousedown`,e=>{if(e.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(e)))return n(e),r.mouseup&&this._document.addEventListener(`mouseup`,r.mouseup),r.mousedrag&&this._document.addEventListener(`mousemove`,r.mousedrag),this.cancel(e)})),this._register(F(t,`wheel`,t=>{if(!r.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(t)===!1)return!1;if(!this.buffer.hasScrollback){if(t.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(t,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return this.cancel(t,!0);let n=R.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?`O`:`[`)+(t.deltaY<0?`A`:`B`);return this.coreService.triggerDataEvent(n,!0),this.cancel(t,!0)}}},{passive:!1}))}refresh(e,t){this._renderService?.refreshRows(e,t)}updateCursorStyle(e){this._selectionService?.shouldColumnSelect(e)?this.element.classList.add(`column-select`):this.element.classList.remove(`column-select`)}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t){this._viewport?this._viewport.scrollLines(e):super.scrollLines(e,t),this.refresh(0,this.rows-1)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){e&&this._viewport?this._viewport.scrollToLine(this.buffer.ybase,!0):this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}paste(e){he(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw Error(`Terminal must be opened first`);let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw Error(`Terminal must be opened first`);this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return this._selectionService?this._selectionService.hasSelection:!1}select(e,t,n){this._selectionService.setSelection(e,t,n)}getSelection(){return this._selectionService?this._selectionService.selectionText:``}getSelectionPosition(){if(!(!this._selectionService||!this._selectionService.hasSelection))return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){this._selectionService?.clearSelection()}selectAll(){this._selectionService?.selectAll()}selectLines(e,t){this._selectionService?.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(!0),!1;!t&&(e.key===`Dead`||e.key===`AltGraph`)&&(this._unprocessedDeadKey=!0);let n=Ps(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),n.type===3||n.type===2){let t=this.rows-1;return this.scrollLines(n.type===2?-t:t),this.cancel(e,!0)}if(n.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(n.cancel&&this.cancel(e,!0),!n.key)||e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.key.length===1&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)return!0;if(this._unprocessedDeadKey)return this._unprocessedDeadKey=!1,!0;if((n.key===R.ETX||n.key===R.CR)&&(this.textarea.value=``),this._onKey.fire({key:n.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(n.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let n=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState(`AltGraph`);return t.type===`keypress`?n:n&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(Js(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(e.which===null||e.which===void 0)t=e.keyCode;else if(e.which!==0&&e.charCode!==0)t=e.which;else return!1;return!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)?!1:(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,!0)}_inputEvent(e){if(e.data&&e.inputType===`insertText`&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){if(e===this.cols&&t===this.rows){this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure();return}super.resize(e,t)}_afterResize(e,t){this._charSizeService?.measure()}clear(){if(!(this.buffer.ybase===0&&this.buffer.y===0)){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=()=>this._wrappedAddonDispose(n),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let n=0;n=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new Ee)}translateToString(e,t,n){return this._line.translateToString(e,t,n)}},Zs=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new Xs(t)}getNullCell(){return new Ee}},Qs=class extends j{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new P),this.onBufferChange=this._onBufferChange.event,this._normal=new Zs(this._core.buffers.normal,`normal`),this._alternate=new Zs(this._core.buffers.alt,`alternate`),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw Error(`Active buffer is neither normal nor alternate`)}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}},$s=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,e=>t(e.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(e,n)=>t(e,n.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},ec=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}},tc=[`cols`,`rows`],nc=0,rc=class extends j{constructor(e){super(),this._core=this._register(new qs(e)),this._addonManager=this._register(new Ys),this._publicOptions={...this._core.options};let t=e=>this._core.options[e],n=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(let e in this._core.options){let r={get:t.bind(this,e),set:n.bind(this,e)};Object.defineProperty(this._publicOptions,e,r)}}_checkReadonlyOptions(e){if(tc.includes(e))throw Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw Error(`You must set the allowProposedApi option to true to use proposed API`)}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||=new $s(this._core),this._parser}get unicode(){return this._checkProposedApi(),new ec(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||=this._register(new Qs(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t=`none`;switch(this._core.coreMouseService.activeProtocol){case`X10`:t=`x10`;break;case`VT200`:t=`vt200`;break;case`DRAG`:t=`drag`;break;case`ANY`:t=`any`;break}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,synchronizedOutputMode:e.synchronizedOutput,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,n){this._verifyIntegers(e,t,n),this._core.select(e,t,n)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r +`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return de.get()},set promptLabel(e){de.set(e)},get tooMuchOutput(){return fe.get()},set tooMuchOutput(e){fe.set(e)}}}_verifyIntegers(...e){for(nc of e)if(nc===1/0||isNaN(nc)||nc%1!=0)throw Error(`This API only accepts integers`)}_verifyPositiveIntegers(...e){for(nc of e)if(nc&&(nc===1/0||isNaN(nc)||nc%1!=0||nc<0))throw Error(`This API only accepts positive integers`)}},ic=2,ac=1,oc=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,u=i-c-t;return{cols:Math.max(ic,Math.floor(u/e.css.cell.width)),rows:Math.max(ac,Math.floor(l/e.css.cell.height))}}},sc=class{constructor(e,t,n,r={}){this._terminal=e,this._regex=t,this._handler=n,this._options=r}provideLinks(e,t){let n=lc.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(n))}_addCallbacks(e){return e.map(e=>(e.leave=this._options.leave,e.hover=(t,n)=>{if(this._options.hover){let{range:r}=e;this._options.hover(t,n,r)}},e))}};function cc(e){try{let t=new URL(e),n=t.password&&t.username?`${t.protocol}//${t.username}:${t.password}@${t.host}`:t.username?`${t.protocol}//${t.username}@${t.host}`:`${t.protocol}//${t.host}`;return e.toLocaleLowerCase().startsWith(n.toLocaleLowerCase())}catch{return!1}}var lc=class e{static computeLink(t,n,r,i){let a=new RegExp(n.source,(n.flags||``)+`g`),[o,s]=e._getWindowedLineStrings(t-1,r),c=o.join(``),l,u=[];for(;l=a.exec(c);){let t=l[0];if(!cc(t))continue;let[n,a]=e._mapStrIdx(r,s,0,l.index),[o,c]=e._mapStrIdx(r,n,a,t.length);if(n===-1||a===-1||o===-1||c===-1)continue;let d={start:{x:a+1,y:n+1},end:{x:c,y:o+1}};u.push({range:d,text:t,activate:i})}return u}static _getWindowedLineStrings(e,t){let n,r=e,i=e,a=0,o=``,s=[];if(n=t.buffer.active.getLine(e)){let e=n.translateToString(!0);if(n.isWrapped&&e[0]!==` `){for(a=0;(n=t.buffer.active.getLine(--r))&&a<2048&&(o=n.translateToString(!0),a+=o.length,s.push(o),!(!n.isWrapped||o.indexOf(` `)!==-1)););s.reverse()}for(s.push(e),a=0;(n=t.buffer.active.getLine(++i))&&n.isWrapped&&a<2048&&(o=n.translateToString(!0),a+=o.length,s.push(o),o.indexOf(` `)===-1););}return[s,r]}static _mapStrIdx(e,t,n,r){let i=e.buffer.active,a=i.getNullCell(),o=n;for(;r;){let e=i.getLine(t);if(!e)return[-1,-1];for(let n=o;n`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function dc(e,t){let n=window.open();if(n){try{n.opener=null}catch{}n.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}var fc=class{constructor(e=dc,t={}){this._handler=e,this._options=t}activate(e){this._terminal=e;let t=this._options,n=t.urlRegex||uc;this._linkProvider=this._terminal.registerLinkProvider(new sc(this._terminal,n,this._handler,t))}dispose(){this._linkProvider?.dispose()}},pc={class:`terminal-panel`},mc={class:`session-list-header`},hc={key:0,class:`session-list-title`},gc={class:`session-list-actions`},_c={key:0,class:`session-items`},vc={key:0,class:`session-empty`},yc=[`onClick`],bc={class:`session-item-content`},xc={class:`session-item-title`},Sc={class:`session-item-meta`},Cc={class:`session-item-shell`},wc={key:0,class:`session-item-status`},Tc={key:1,class:`session-item-time`},Ec={class:`terminal-main`},Dc={class:`terminal-header`},Oc={class:`header-left`},kc={key:0,class:`header-session-title`},Ac={class:`header-actions`},jc={class:`terminal-container`},Mc=`hermes_terminal_theme`,Nc=h(a({__name:`TerminalView`,setup(a){let{t:h}=ne(),b=ce(),le={default:{label:`Default`,theme:{background:`#1a1a2e`,foreground:`#e0e0e0`,cursor:`#4cc9f0`,cursorAccent:`#1a1a2e`,selectionBackground:`rgba(76, 201, 240, 0.3)`,black:`#000000`,red:`#e06c75`,green:`#98c379`,yellow:`#e5c07b`,blue:`#61afef`,magenta:`#c678dd`,cyan:`#56b6c2`,white:`#abb2bf`,brightBlack:`#5c6370`,brightRed:`#e06c75`,brightGreen:`#98c379`,brightYellow:`#e5c07b`,brightBlue:`#61afef`,brightMagenta:`#c678dd`,brightCyan:`#56b6c2`,brightWhite:`#ffffff`}},"solarized-dark":{label:`Solarized Dark`,theme:{background:`#002b36`,foreground:`#839496`,cursor:`#93a1a1`,cursorAccent:`#002b36`,selectionBackground:`rgba(147, 161, 161, 0.3)`,black:`#073642`,red:`#dc322f`,green:`#859900`,yellow:`#b58900`,blue:`#268bd2`,magenta:`#d33682`,cyan:`#2aa198`,white:`#eee8d5`,brightBlack:`#002b36`,brightRed:`#cb4b16`,brightGreen:`#586e75`,brightYellow:`#657b83`,brightBlue:`#839496`,brightMagenta:`#6c71c4`,brightCyan:`#93a1a1`,brightWhite:`#fdf6e3`}},"solarized-light":{label:`Solarized Light`,theme:{background:`#fdf6e3`,foreground:`#657b83`,cursor:`#586e75`,cursorAccent:`#fdf6e3`,selectionBackground:`rgba(88, 110, 117, 0.3)`,black:`#073642`,red:`#dc322f`,green:`#859900`,yellow:`#b58900`,blue:`#268bd2`,magenta:`#d33682`,cyan:`#2aa198`,white:`#eee8d5`,brightBlack:`#002b36`,brightRed:`#cb4b16`,brightGreen:`#586e75`,brightYellow:`#657b83`,brightBlue:`#839496`,brightMagenta:`#6c71c4`,brightCyan:`#93a1a1`,brightWhite:`#fdf6e3`}},monokai:{label:`Monokai`,theme:{background:`#272822`,foreground:`#f8f8f2`,cursor:`#f8f8f0`,cursorAccent:`#272822`,selectionBackground:`rgba(248, 248, 242, 0.2)`,black:`#272822`,red:`#f92672`,green:`#a6e22e`,yellow:`#f4bf75`,blue:`#66d9ef`,magenta:`#ae81ff`,cyan:`#a1efe4`,white:`#f8f8f2`,brightBlack:`#75715e`,brightRed:`#fd971f`,brightGreen:`#a6e22e`,brightYellow:`#e6db74`,brightBlue:`#66d9ef`,brightMagenta:`#ae81ff`,brightCyan:`#a1efe4`,brightWhite:`#f9f8f5`}},dracula:{label:`Dracula`,theme:{background:`#282a36`,foreground:`#f8f8f2`,cursor:`#f8f8f2`,cursorAccent:`#282a36`,selectionBackground:`rgba(248, 248, 242, 0.2)`,black:`#21222c`,red:`#ff5555`,green:`#50fa7b`,yellow:`#f1fa8c`,blue:`#bd93f9`,magenta:`#ff79c6`,cyan:`#8be9fd`,white:`#f8f8f2`,brightBlack:`#6272a4`,brightRed:`#ff6e6e`,brightGreen:`#69ff94`,brightYellow:`#ffffa5`,brightBlue:`#d6acff`,brightMagenta:`#ff92df`,brightCyan:`#a4ffff`,brightWhite:`#ffffff`}},nord:{label:`Nord`,theme:{background:`#2e3440`,foreground:`#d8dee9`,cursor:`#d8dee9`,cursorAccent:`#2e3440`,selectionBackground:`rgba(216, 222, 233, 0.2)`,black:`#3b4252`,red:`#bf616a`,green:`#a3be8c`,yellow:`#ebcb8b`,blue:`#81a1c1`,magenta:`#b48ead`,cyan:`#88c0d0`,white:`#e5e9f0`,brightBlack:`#4c566a`,brightRed:`#bf616a`,brightGreen:`#a3be8c`,brightYellow:`#ebcb8b`,brightBlue:`#81a1c1`,brightMagenta:`#b48ead`,brightCyan:`#8fbcbb`,brightWhite:`#eceff4`}},"one-dark":{label:`One Dark`,theme:{background:`#282c34`,foreground:`#abb2bf`,cursor:`#528bff`,cursorAccent:`#282c34`,selectionBackground:`rgba(82, 139, 255, 0.25)`,black:`#282c34`,red:`#e06c75`,green:`#98c379`,yellow:`#e5c07b`,blue:`#61afef`,magenta:`#c678dd`,cyan:`#56b6c2`,white:`#abb2bf`,brightBlack:`#5c6370`,brightRed:`#e06c75`,brightGreen:`#98c379`,brightYellow:`#e5c07b`,brightBlue:`#61afef`,brightMagenta:`#c678dd`,brightCyan:`#56b6c2`,brightWhite:`#ffffff`}},"github-dark":{label:`GitHub Dark`,theme:{background:`#0d1117`,foreground:`#c9d1d9`,cursor:`#58a6ff`,cursorAccent:`#0d1117`,selectionBackground:`rgba(88, 166, 255, 0.25)`,black:`#484f58`,red:`#ff7b72`,green:`#7ee787`,yellow:`#ffa657`,blue:`#79c0ff`,magenta:`#d2a8ff`,cyan:`#a5d6ff`,white:`#c9d1d9`,brightBlack:`#6e7681`,brightRed:`#ffa198`,brightGreen:`#56d364`,brightYellow:`#e3b341`,brightBlue:`#58a6ff`,brightMagenta:`#bc8cff`,brightCyan:`#79c0ff`,brightWhite:`#f0f6fc`}},"tokyo-night":{label:`Tokyo Night`,theme:{background:`#1a1b26`,foreground:`#a9b1d6`,cursor:`#c0caf5`,cursorAccent:`#1a1b26`,selectionBackground:`rgba(192, 202, 245, 0.2)`,black:`#15161e`,red:`#f7768e`,green:`#9ece6a`,yellow:`#e0af68`,blue:`#7aa2f7`,magenta:`#bb9af7`,cyan:`#7dcfff`,white:`#a9b1d6`,brightBlack:`#414868`,brightRed:`#f7768e`,brightGreen:`#9ece6a`,brightYellow:`#e0af68`,brightBlue:`#7aa2f7`,brightMagenta:`#bb9af7`,brightCyan:`#7dcfff`,brightWhite:`#c0caf5`}},"github-light":{label:`GitHub Light`,theme:{background:`#ffffff`,foreground:`#24292f`,cursor:`#0969da`,cursorAccent:`#ffffff`,selectionBackground:`rgba(9, 105, 218, 0.2)`,black:`#24292f`,red:`#cf222e`,green:`#116329`,yellow:`#4d2d00`,blue:`#0969da`,magenta:`#8250df`,cyan:`#1b7c83`,white:`#57606a`,brightBlack:`#57606a`,brightRed:`#a40e26`,brightGreen:`#1a7f37`,brightYellow:`#633c01`,brightBlue:`#218bff`,brightMagenta:`#a475f4`,brightCyan:`#3192aa`,brightWhite:`#8c959f`}},"catppuccin-latte":{label:`Catppuccin Latte`,theme:{background:`#eff1f5`,foreground:`#4c4f69`,cursor:`#dc8a78`,cursorAccent:`#eff1f5`,selectionBackground:`rgba(220, 138, 120, 0.2)`,black:`#5c5f77`,red:`#d20f39`,green:`#40a02b`,yellow:`#df8e1d`,blue:`#1e66f5`,magenta:`#ea76cb`,cyan:`#179299`,white:`#4c4f69`,brightBlack:`#6c6f85`,brightRed:`#d20f39`,brightGreen:`#40a02b`,brightYellow:`#df8e1d`,brightBlue:`#1e66f5`,brightMagenta:`#ea76cb`,brightCyan:`#179299`,brightWhite:`#bcc0cc`}},"alabaster-light":{label:`Alabaster`,theme:{background:`#f7f7f7`,foreground:`#434343`,cursor:`#528bff`,cursorAccent:`#f7f7f7`,selectionBackground:`rgba(82, 139, 255, 0.2)`,black:`#000000`,red:`#aa3731`,green:`#448c27`,yellow:`#cb9000`,blue:`#325cc0`,magenta:`#7a3e9d`,cyan:`#0083b2`,white:`#434343`,brightBlack:`#777777`,brightRed:`#f05050`,brightGreen:`#60cb00`,brightYellow:`#ffbc5d`,brightBlue:`#0070ea`,brightMagenta:`#ca64e2`,brightCyan:`#00aacb`,brightWhite:`#999999`}},"xterm-light":{label:`XTerm Light`,theme:{background:`#fafafa`,foreground:`#383a42`,cursor:`#526fff`,cursorAccent:`#fafafa`,selectionBackground:`rgba(82, 111, 255, 0.2)`,black:`#383a42`,red:`#e45649`,green:`#50a14f`,yellow:`#c18401`,blue:`#4078f2`,magenta:`#a626a4`,cyan:`#0184bc`,white:`#a0a1a7`,brightBlack:`#4f525e`,brightRed:`#e06c75`,brightGreen:`#98c379`,brightYellow:`#e5c07b`,brightBlue:`#61afef`,brightMagenta:`#c678dd`,brightCyan:`#56b6c2`,brightWhite:`#ffffff`}},"one-light":{label:`One Light`,theme:{background:`#fafafa`,foreground:`#383a42`,cursor:`#526eff`,cursorAccent:`#fafafa`,selectionBackground:`rgba(82, 110, 255, 0.2)`,black:`#383a42`,red:`#e45649`,green:`#50a14f`,yellow:`#c18401`,blue:`#4078f2`,magenta:`#a626a4`,cyan:`#0184bc`,white:`#a0a1a7`,brightBlack:`#4f525e`,brightRed:`#e06c75`,brightGreen:`#98c379`,brightYellow:`#e5c07b`,brightBlue:`#61afef`,brightMagenta:`#c678dd`,brightCyan:`#56b6c2`,brightWhite:`#ffffff`}},"gruvbox-light":{label:`Gruvbox Light`,theme:{background:`#fbf1c7`,foreground:`#3c3836`,cursor:`#9d0006`,cursorAccent:`#fbf1c7`,selectionBackground:`rgba(157, 0, 6, 0.15)`,black:`#fbf1c7`,red:`#cc241d`,green:`#98971a`,yellow:`#d79921`,blue:`#458588`,magenta:`#b16286`,cyan:`#689d6a`,white:`#504945`,brightBlack:`#928374`,brightRed:`#9d0006`,brightGreen:`#79740e`,brightYellow:`#b57614`,brightBlue:`#076678`,brightMagenta:`#8f3f71`,brightCyan:`#427b58`,brightWhite:`#3c3836`}}},ue=re(null),x=re(!0),S=re([]),C=re(null),de=re(localStorage.getItem(Mc)||`default`),w=null,fe=new Map,pe=null,T=null,me=null,E=null,he=r(()=>S.value.find(e=>e.id===C.value)||null),ge=r(()=>Object.entries(le).map(([e,t])=>({label:t.label,value:e}))),_e=r(()=>le[de.value]?.theme.background??`#1a1a2e`);function ve(){let e=se(),t=_(),n=t?t.startsWith(`https`)?`wss:`:`ws:`:location.protocol===`https:`?`wss:`:`ws:`;return t?`${n}//${new URL(t).host}/api/hermes/terminal${e?`?token=${encodeURIComponent(e)}`:``}`:`${n}//${location.host}/api/hermes/terminal${e?`?token=${encodeURIComponent(e)}`:``}`}function ye(){let e=ve();w=new WebSocket(e),w.onopen=()=>{},w.onmessage=e=>{let t=typeof e.data==`string`?e.data:``;if(t.charCodeAt(0)===123)try{xe(JSON.parse(t))}catch{}else pe?.write(t)},w.onopen=()=>{},w.onclose=()=>{setTimeout(ye,3e3)},w.onerror=()=>{}}function be(e){!w||w.readyState!==WebSocket.OPEN||w.send(typeof e==`string`?e:JSON.stringify(e))}function xe(e){switch(e.type){case`created`:S.value.push({id:e.id,shell:e.shell,pid:e.pid,title:`${e.shell} #${S.value.length+1}`,createdAt:Date.now(),exited:!1}),we(e.id);break;case`switched`:break;case`exited`:{let t=S.value.find(t=>t.id===e.id);t&&(t.exited=!0,C.value===e.id&&pe?.write(`\r\n\x1b[90m[${h(`terminal.processExited`,{code:e.exitCode})}]\x1b[0m\r\n`));break}case`error`:b.error(e.message);break}}function Se(){be({type:`create`})}function Ce(e){let t=fe.get(e);if(!t){let n=new rc({cursorBlink:!0,fontSize:14,fontFamily:`Menlo, Monaco, "Courier New", monospace`,theme:{...le[de.value].theme}}),r=new oc;n.loadAddon(r),n.loadAddon(new fc),n.onData(e=>{w?.readyState===WebSocket.OPEN&&w.send(e)}),t={term:n,fitAddon:r,opened:!1},fe.set(e,t)}return t}function we(e){if(C.value===e)return;C.value=e;let t=Ce(e);pe=t.term,T=t.fitAddon,Ee(),be({type:`switch`,sessionId:e}),E?.matches&&(x.value=!1)}function Te(e){be({type:`close`,sessionId:e}),S.value=S.value.filter(t=>t.id!==e);let t=fe.get(e);t&&(t.term.dispose(),fe.delete(e)),C.value===e&&(C.value=S.value.length>0?S.value[0].id:null,pe=null,T=null,C.value?we(C.value):(De(),Se()))}function Ee(){if(!ue.value)return;let e=ue.value;for(;e.firstChild;)e.removeChild(e.firstChild);let t=fe.get(C.value);if(t){if(!t.opened)t.term.open(e),t.opened=!0;else{let n=t.term.element;n&&e.appendChild(n)}me?.disconnect(),me=new ResizeObserver(()=>{Oe(),ke()}),me.observe(ue.value),setTimeout(()=>Oe(),50),setTimeout(()=>Oe(),200)}}function De(){if(!ue.value)return;let e=ue.value;for(;e.firstChild;)e.removeChild(e.firstChild)}function Oe(){if(T)try{T.fit()}catch{}}function ke(){if(!(!pe||!w||w.readyState!==WebSocket.OPEN))try{be({type:`resize`,cols:pe.cols,rows:pe.rows})}catch{}}function Ae(e){de.value=e,localStorage.setItem(Mc,e);let t=le[e]?.theme;if(t)for(let e of fe.values())e.term.options.theme={...t}}function D(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function je(e){e.matches&&x.value&&(x.value=!1)}return f(()=>{E=window.matchMedia(`(max-width: 768px)`),je(E),E.addEventListener(`change`,je),ye()}),p(()=>{E?.removeEventListener(`change`,je),De();for(let e of fe.values())e.term.dispose();fe.clear(),pe=null,T=null,w?.close(),w=null}),(r,a)=>(o(),v(`div`,pc,[c(`div`,{class:ie([`session-backdrop`,{active:x.value}]),onClick:a[0]||=e=>x.value=!1},null,2),c(`aside`,{class:ie([`session-list`,{collapsed:!x.value}])},[c(`div`,mc,[x.value?(o(),v(`span`,hc,g(m(h)(`terminal.sessions`)),1)):n(``,!0),c(`div`,gc,[l(m(e),{trigger:`hover`},{trigger:u(()=>[l(m(ee),{quaternary:``,size:`tiny`,onClick:Se,circle:``},{icon:u(()=>[...a[3]||=[c(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[c(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),c(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),_:1})]),default:u(()=>[s(` `+g(m(h)(`terminal.newTab`)),1)]),_:1})])]),x.value?(o(),v(`div`,_c,[S.value.length===0?(o(),v(`div`,vc,g(m(h)(`common.loading`)),1)):n(``,!0),(o(!0),v(y,null,ae(S.value,e=>(o(),v(`button`,{key:e.id,class:ie([`session-item`,{active:e.id===C.value,exited:e.exited}]),onClick:t=>we(e.id)},[c(`div`,bc,[c(`span`,xc,g(e.title),1),c(`span`,Sc,[c(`span`,Cc,g(e.shell),1),e.exited?(o(),v(`span`,wc,g(m(h)(`terminal.sessionExited`)),1)):(o(),v(`span`,Tc,g(D(e.createdAt)),1))])]),S.value.length>1?(o(),te(m(t),{key:0,onPositiveClick:t=>Te(e.id)},{trigger:u(()=>[c(`button`,{class:`session-item-delete`,onClick:a[1]||=d(()=>{},[`stop`])},[...a[4]||=[c(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[c(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),c(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])]),default:u(()=>[s(` `+g(m(h)(`terminal.closeSession`)),1)]),_:1},8,[`onPositiveClick`])):n(``,!0)],10,yc))),128))])):n(``,!0)],2),c(`div`,Ec,[c(`header`,Dc,[c(`div`,Oc,[l(m(ee),{quaternary:``,size:`small`,onClick:a[2]||=e=>x.value=!x.value,circle:``},{icon:u(()=>[...a[5]||=[c(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[c(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`}),c(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`}),c(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`}),c(`rect`,{x:`14`,y:`14`,width:`7`,height:`7`})],-1)]]),_:1}),he.value?(o(),v(`span`,kc,g(he.value.title),1)):n(``,!0)]),c(`div`,Ac,[l(m(i),{value:de.value,options:ge.value,size:`small`,"consistent-menu-width":!1,class:`theme-select`,"onUpdate:value":Ae},null,8,[`value`,`options`]),l(m(ee),{size:`small`,onClick:Se},{icon:u(()=>[...a[6]||=[c(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[c(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),c(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),default:u(()=>[s(` `+g(m(h)(`terminal.newTab`)),1)]),_:1})])]),c(`div`,jc,[c(`div`,{ref_key:`terminalRef`,ref:ue,class:`terminal-xterm`,style:oe({backgroundColor:_e.value})},null,4)])])]))}}),[[`__scopeId`,`data-v-7963a2bf`]]);export{Nc as default}; \ No newline at end of file diff --git a/webui/assets/TerminalView-rrxswUK5.css b/webui/assets/TerminalView-rrxswUK5.css new file mode 100644 index 0000000000000000000000000000000000000000..3e603b85eb5aa5fd67457173936a2e81947d8b1a --- /dev/null +++ b/webui/assets/TerminalView-rrxswUK5.css @@ -0,0 +1 @@ +.xterm{cursor:text;-webkit-user-select:none;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;z-index:-5;white-space:nowrap;resize:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;inset:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{z-index:10;color:#0000;pointer-events:none;position:absolute;inset:0}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre;font-family:monospace}.xterm .xterm-accessibility-tree>div{transform-origin:0;width:fit-content}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:underline double;text-decoration:underline double}.xterm-underline-3{-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.xterm-underline-4{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.xterm-underline-5{-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;pointer-events:none;position:absolute;top:0;right:0}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;z-index:11;background:0 0;transition:opacity .1s linear}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{display:none;position:absolute}.xterm .xterm-scrollable-element>.shadow.top{width:100%;height:3px;box-shadow:var(--vscode-scrollbar-shadow,#000) 0 6px 6px -6px inset;display:block;top:0;left:3px}.xterm .xterm-scrollable-element>.shadow.left{width:3px;height:100%;box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset;display:block;top:3px;left:0}.xterm .xterm-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset}[data-v-7963a2bf]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-7963a2bf]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.terminal-panel[data-v-7963a2bf]{height:100%;display:flex;position:relative}.session-list[data-v-7963a2bf]{border-right:1px solid var(--border-color);flex-direction:column;flex-shrink:0;width:220px;transition:width .25s,opacity .25s;display:flex;overflow:hidden}.session-list.collapsed[data-v-7963a2bf]{opacity:0;pointer-events:none;border-right:none;width:0}@media (width<=768px){.session-list[data-v-7963a2bf]{z-index:10;background:var(--bg-card);width:280px;height:100%;position:absolute;top:0;left:0;box-shadow:2px 0 8px #0000001a}.session-list.collapsed[data-v-7963a2bf]{opacity:0;transform:translate(-100%)}}.session-list-header[data-v-7963a2bf]{flex-shrink:0;justify-content:space-between;align-items:center;padding:12px;display:flex}.session-list-actions[data-v-7963a2bf]{align-items:center;gap:4px;display:flex}.session-list-title[data-v-7963a2bf]{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-size:12px;font-weight:600}.session-items[data-v-7963a2bf]{flex:1;padding:0 6px 12px;overflow-y:auto}.session-empty[data-v-7963a2bf]{color:var(--text-muted);text-align:center;padding:16px 10px;font-size:12px}.session-item[data-v-7963a2bf]{cursor:pointer;text-align:left;width:100%;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;justify-content:space-between;align-items:center;margin-bottom:2px;padding:8px 10px;transition:all .15s;display:flex}.session-item[data-v-7963a2bf]:hover{background:rgba(var(--accent-primary-rgb), .06);color:var(--text-primary)}.session-item:hover .session-item-delete[data-v-7963a2bf]{opacity:1}.session-item.active[data-v-7963a2bf]{background:rgba(var(--accent-primary-rgb), .1);color:var(--text-primary);font-weight:500}.session-item.exited[data-v-7963a2bf]{opacity:.5}.session-item-content[data-v-7963a2bf]{flex:1;overflow:hidden}.session-item-title[data-v-7963a2bf]{white-space:nowrap;text-overflow:ellipsis;font-size:13px;display:block;overflow:hidden}.session-item-meta[data-v-7963a2bf]{align-items:center;gap:6px;margin-top:2px;display:flex}.session-item-shell[data-v-7963a2bf]{color:var(--accent-primary);background:rgba(var(--accent-primary-rgb), .08);border-radius:3px;padding:0 5px;font-size:10px;line-height:16px}.session-item-time[data-v-7963a2bf]{color:var(--text-muted);font-size:11px}.session-item-status[data-v-7963a2bf]{color:var(--text-muted);font-size:11px;font-style:italic}.session-item-delete[data-v-7963a2bf]{opacity:.5;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:3px;flex-shrink:0;padding:2px;transition:all .15s}.session-item-delete[data-v-7963a2bf]:hover{color:var(--error);background:rgba(var(--error-rgb), .1)}.session-close-btn[data-v-7963a2bf]{cursor:pointer;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;padding:4px;display:none}.session-close-btn[data-v-7963a2bf]:hover{background:rgba(var(--accent-primary-rgb), .06)}.terminal-main[data-v-7963a2bf]{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.terminal-header[data-v-7963a2bf]{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;padding:21px 20px;display:flex}.header-left[data-v-7963a2bf]{flex:1;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.header-session-title[data-v-7963a2bf]{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:600;overflow:hidden}.header-actions[data-v-7963a2bf]{flex-shrink:0;align-items:center;gap:8px;display:flex}.theme-select[data-v-7963a2bf]{width:130px}.terminal-container[data-v-7963a2bf]{flex-direction:column;flex:1;min-height:0;margin:10px;display:flex;overflow:hidden}.terminal-xterm[data-v-7963a2bf]{border:1px solid var(--border-color);border-radius:10px;flex:1;overflow:hidden}.terminal-xterm[data-v-7963a2bf] .xterm{height:100%;padding:8px}.terminal-xterm[data-v-7963a2bf] .xterm-viewport{scrollbar-width:none!important;-ms-overflow-style:none!important;background-color:#0000!important;overflow-y:scroll!important}.terminal-xterm[data-v-7963a2bf] .xterm-viewport::-webkit-scrollbar{display:none!important}.terminal-xterm[data-v-7963a2bf] .xterm-screen{background-color:#0000!important}.terminal-xterm[data-v-7963a2bf] .xterm-scrollable-element{scrollbar-width:none!important;-ms-overflow-style:none!important}.terminal-xterm[data-v-7963a2bf] .xterm-scrollable-element::-webkit-scrollbar{display:none!important}@media (width<=768px){.session-close-btn[data-v-7963a2bf]{display:flex}.session-backdrop[data-v-7963a2bf]{z-index:9;opacity:0;pointer-events:none;background:#0006;transition:opacity .15s;position:absolute;inset:0}.session-backdrop.active[data-v-7963a2bf]{opacity:1;pointer-events:auto}.terminal-header[data-v-7963a2bf]{padding:16px 12px 16px 52px}.terminal-container[data-v-7963a2bf]{padding:8px}.terminal-xterm[data-v-7963a2bf]{bottom:0;left:0;right:0}}.xterm .scrollbar{background:#ffffff14!important;border-radius:3px!important;width:6px!important}.xterm .scrollbar .slider{background:#fff3!important;border-radius:3px!important;transition:background .15s!important}.xterm .scrollbar:hover .slider{background:#ffffff59!important} diff --git a/webui/assets/Tooltip-DQzh27d-.js b/webui/assets/Tooltip-DQzh27d-.js new file mode 100644 index 0000000000000000000000000000000000000000..11125aa3383dfdf3934de1639353b0a27e103c51 --- /dev/null +++ b/webui/assets/Tooltip-DQzh27d-.js @@ -0,0 +1 @@ +import{Dr as e,Fr as t,L as n,Lr as r,R as i,in as a,it as o,ni as s,w as c}from"./index-Cl8-DFW_.js";var l=t({name:`Tooltip`,props:Object.assign(Object.assign({},i),o.props),slots:Object,__popover__:!0,setup(t){let{mergedClsPrefixRef:n}=a(t),r=o(`Tooltip`,`-tooltip`,void 0,c,t,n),i=s(null);return Object.assign(Object.assign({},{syncPosition(){i.value.syncPosition()},setShow(e){i.value.setShow(e)}}),{popoverRef:i,mergedTheme:r,popoverThemeOverrides:e(()=>r.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return r(n,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});export{l as t}; \ No newline at end of file diff --git a/webui/assets/Upload-DNhu4d4-.js b/webui/assets/Upload-DNhu4d4-.js new file mode 100644 index 0000000000000000000000000000000000000000..faf7fbeb4285057edda7f5cac0aaac49e2ec2418 --- /dev/null +++ b/webui/assets/Upload-DNhu4d4-.js @@ -0,0 +1,440 @@ +import{t as e}from"./_arrayReduce-Cj7sZjrj.js";import{t}from"./Add-D070kowG.js";import{t as n}from"./Tooltip-DQzh27d-.js";import{$ as r,$n as i,$r as a,An as o,B as s,Bn as c,Br as l,Cn as u,Dn as d,Dr as f,F as p,Fr as m,Hn as h,Hr as g,In as _,J as v,K as y,Kr as b,Ln as x,Lr as S,Pn as C,Q as w,Qn as ee,Rr as T,Tr as E,U as D,Un as O,Ur as k,W as te,Wn as A,X as j,Xr as ne,Y as re,Z as ie,Zr as M,_n as N,_r as P,br as ae,d as F,er as I,et as L,gn as oe,h as se,hn as R,ii as ce,in as z,ir as le,it as B,k as V,ni as H,nn as ue,nr as U,nt as W,on as G,ot as de,ri as K,rn as fe,rr as pe,rt as me,si as he,sr as q,st as ge,tr as J,tt as _e,vn as ve,w as ye,wr as Y,yn as X,zt as be}from"./index-Cl8-DFW_.js";function xe(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Se(e){return function(t){return e?.[t]}}var Ce=Se({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Te=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function Ee(e){return e=be(e),e&&e.replace(we,Ce).replace(Te,``)}var De=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Oe(e){return e.match(De)||[]}var ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ae(e){return ke.test(e)}var je=`\\ud800-\\udfff`,Me=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Ne=`\\u2700-\\u27bf`,Pe=`a-z\\xdf-\\xf6\\xf8-\\xff`,Fe=`\\xac\\xb1\\xd7\\xf7`,Ie=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Le=`\\u2000-\\u206f`,Re=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,ze=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Be=`\\ufe0e\\ufe0f`,Ve=Fe+Ie+Le+Re,He=`['’]`,Ue=`[`+Ve+`]`,We=`[`+Me+`]`,Ge=`\\d+`,Ke=`[`+Ne+`]`,qe=`[`+Pe+`]`,Je=`[^`+je+Ve+Ge+Ne+Pe+ze+`]`,Ye=`(?:`+We+`|\\ud83c[\\udffb-\\udfff])`,Xe=`[^`+je+`]`,Ze=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Qe=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Z=`[`+ze+`]`,$e=`\\u200d`,et=`(?:`+qe+`|`+Je+`)`,tt=`(?:`+Z+`|`+Je+`)`,nt=`(?:`+He+`(?:d|ll|m|re|s|t|ve))?`,rt=`(?:`+He+`(?:D|LL|M|RE|S|T|VE))?`,it=Ye+`?`,at=`[`+Be+`]?`,ot=`(?:`+$e+`(?:`+[Xe,Ze,Qe].join(`|`)+`)`+at+it+`)*`,st=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,ct=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,lt=at+it+ot,ut=`(?:`+[Ke,Ze,Qe].join(`|`)+`)`+lt,dt=RegExp([Z+`?`+qe+`+`+nt+`(?=`+[Ue,Z,`$`].join(`|`)+`)`,tt+`+`+rt+`(?=`+[Ue,Z+et,`$`].join(`|`)+`)`,Z+`?`+et+`+`+nt,Z+`+`+rt,ct,st,Ge,ut].join(`|`),`g`);function ft(e){return e.match(dt)||[]}function pt(e,t,n){return e=be(e),t=n?void 0:t,t===void 0?Ae(e)?ft(e):Oe(e):e.match(t)||[]}var mt=RegExp(`['’]`,`g`);function ht(t){return function(n){return e(pt(Ee(n).replace(mt,``)),t,``)}}var gt=ht(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),_t=L(`attach`,()=>S(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},S(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},S(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},S(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),vt=L(`cancel`,()=>S(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},S(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},S(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},S(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),yt=L(`download`,()=>S(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},S(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},S(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},S(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),bt=m({name:`ResizeSmall`,render(){return S(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},S(`g`,{fill:`none`},S(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),xt=L(`retry`,()=>S(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},S(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),S(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),St=L(`rotateClockwise`,()=>S(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},S(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),S(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),Ct=L(`rotateClockwise`,()=>S(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},S(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),S(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),wt=L(`trash`,()=>S(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},S(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),S(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),S(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),S(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Tt=L(`zoomIn`,()=>S(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},S(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),S(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Et=L(`zoomOut`,()=>S(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},S(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),S(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Dt=o&&`loading`in document.createElement(`img`);function Ot(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=(e,t,n)=>{if(!e)return()=>{};let r=Ot(t),{root:i}=r.options,a,o=kt.get(i);o?a=o:(a=new Map,kt.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=At.get(e.target),n=jt.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(At.delete(e),jt.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||kt.delete(i))};return At.set(e,u),jt.set(e,n),u};function Nt(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var Pt=me({name:`Image`,common:D,peers:{Tooltip:ye},self:Nt});function Ft(){return S(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},S(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function It(){return S(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},S(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function Lt(){return S(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},S(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var Rt=Object.assign(Object.assign({},B.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),zt=C(`n-image`),Bt=i([i(`body >`,[I(`image-container`,`position: fixed;`)]),I(`image-preview-container`,` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + `),I(`image-preview-overlay`,` + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + background: rgba(0, 0, 0, .3); + `,[te()]),I(`image-preview-toolbar`,` + z-index: 1; + position: absolute; + left: 50%; + transform: translateX(-50%); + border-radius: var(--n-toolbar-border-radius); + height: 48px; + bottom: 40px; + padding: 0 12px; + background: var(--n-toolbar-color); + box-shadow: var(--n-toolbar-box-shadow); + color: var(--n-toolbar-icon-color); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[I(`base-icon`,` + padding: 0 8px; + font-size: 28px; + cursor: pointer; + `),te()]),I(`image-preview-wrapper`,` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + pointer-events: none; + `,[s()]),I(`image-preview`,` + user-select: none; + -webkit-user-select: none; + pointer-events: all; + margin: auto; + max-height: calc(100vh - 32px); + max-width: calc(100vw - 32px); + transition: transform .3s var(--n-bezier); + `),I(`image`,` + display: inline-flex; + max-height: 100%; + max-width: 100%; + `,[pe(`preview-disabled`,` + cursor: pointer; + `),i(`img`,` + border-radius: inherit; + `)])]),Vt=32,Ht=m({name:`ImagePreview`,props:Object.assign(Object.assign({},Rt),{src:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onNext:Function,onPrev:Function,onClose:[Function,Array]}),setup(e){let{src:t}=ce(e),{mergedClsPrefixRef:r}=z(e),i=B(`Image`,`-image`,Bt,Pt,e,r),a=null,o=H(null),s=H(null),c=H(!1),{localeRef:l}=ge(`Image`),u=H(e.defaultShow),d=x(K(e,`show`),u);function p(){let{value:e}=s;if(!a||!e)return;let{style:t}=e,n=a.getBoundingClientRect();t.transformOrigin=`${n.left+n.width/2}px ${n.top+n.height/2}px`}function m(t){var n,r;switch(t.key){case` `:t.preventDefault();break;case`ArrowLeft`:(n=e.onPrev)==null||n.call(e);break;case`ArrowRight`:(r=e.onNext)==null||r.call(e);break;case`ArrowUp`:t.preventDefault(),de();break;case`ArrowDown`:t.preventDefault(),pe();break;case`Escape`:J();break}}function v(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&R(n,t),r&&R(r,t),u.value=t,c.value=!0}ne(d,e=>{e?O(`keydown`,document,m):h(`keydown`,document,m)}),g(()=>{h(`keydown`,document,m)});let y=0,b=0,C=0,w=0,E=0,D=0,k=0,te=0,A=!1;function j(e){let{clientX:t,clientY:n}=e;C=t-y,w=n-b,ee(q)}function re(e){let{mouseUpClientX:t,mouseUpClientY:n,mouseDownClientX:r,mouseDownClientY:i}=e,a=r-t,o=i-n;return{moveVerticalDirection:`vertical${o>0?`Top`:`Bottom`}`,moveHorizontalDirection:`horizontal${a>0?`Left`:`Right`}`,deltaHorizontal:a,deltaVertical:o}}function ie(e){let{value:t}=o;if(!t)return{offsetX:0,offsetY:0};let n=t.getBoundingClientRect(),{moveVerticalDirection:r,moveHorizontalDirection:i,deltaHorizontal:a,deltaVertical:s}=e||{},c=0,l=0;return c=n.width<=window.innerWidth?0:n.left>0?(n.width-window.innerWidth)/2:n.right0?(n.height-window.innerHeight)/2:n.bottom.5){let e=I;--F,I=Math.max(.5,ae**+F);let t=e-I;q(!1);let n=ie();I+=t,q(!1),I-=t,C=n.offsetX,w=n.offsetY,q()}}function me(){let e=t.value;e&&xe(e,void 0)}function q(e=!0){let{value:t}=o;if(!t)return;let{style:n}=t,r=he(N?.previewedImgPropsRef.value?.style),i=``;if(typeof r==`string`)i=`${r};`;else for(let e in r)i+=`${gt(e)}: ${r[e]};`;let a=`transform-origin: center; transform: translateX(${C}px) translateY(${w}px) rotate(${L}deg) scale(${I});`;A?n.cssText=`${i}cursor: grabbing; transition: none;${a}`:n.cssText=`${i}cursor: grab;${a}${e?``:`transition: none;`}`,e||t.offsetHeight}function J(){if(d.value){let{onClose:t}=e;t&&R(t),v(!1),u.value=!1}}function _e(){I=G(),F=Math.ceil(Math.log(I)/Math.log(ae)),C=0,w=0,q()}let ve={setThumbnailEl:e=>{a=e}};function ye(t,r){if(e.showToolbarTooltip){let{value:e}=i;return S(n,{to:!1,theme:e.peers.Tooltip,themeOverrides:e.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[r],trigger:()=>t})}else return t}let Y=f(()=>{let{common:{cubicBezierEaseInOut:e},self:{toolbarIconColor:t,toolbarBorderRadius:n,toolbarBoxShadow:r,toolbarColor:a}}=i.value;return{"--n-bezier":e,"--n-toolbar-icon-color":t,"--n-toolbar-color":a,"--n-toolbar-border-radius":n,"--n-toolbar-box-shadow":r}}),{inlineThemeDisabled:X}=z(),be=X?fe(`image-preview`,void 0,Y,e):void 0;function Se(e){e.preventDefault()}return Object.assign({clsPrefix:r,previewRef:o,previewWrapperRef:s,previewSrc:t,mergedShow:d,appear:_(),displayed:c,previewedImgProps:N?.previewedImgPropsRef,handleWheel:Se,handlePreviewMousedown:P,handlePreviewDblclick:oe,syncTransformOrigin:p,handleAfterLeave:()=>{se(),L=0,c.value=!1},handleDragStart:e=>{var t,n;(n=(t=N?.previewedImgPropsRef.value)?.onDragstart)==null||n.call(t,e),e.preventDefault()},zoomIn:de,zoomOut:pe,handleDownloadClick:me,rotateCounterclockwise:ue,rotateClockwise:U,handleSwitchPrev:le,handleSwitchNext:V,withTooltip:ye,resizeToOrignalImageSize:_e,cssVars:X?void 0:Y,themeClass:be?.themeClass,onRender:be?.onRender,doUpdateShow:v,close:J},ve)},render(){var e;let{clsPrefix:t,renderToolbar:n,withTooltip:r}=this,i=r(S(W,{clsPrefix:t,onClick:this.handleSwitchPrev},{default:Ft}),`tipPrevious`),o=r(S(W,{clsPrefix:t,onClick:this.handleSwitchNext},{default:It}),`tipNext`),s=r(S(W,{clsPrefix:t,onClick:this.rotateCounterclockwise},{default:()=>S(Ct,null)}),`tipCounterclockwise`),c=r(S(W,{clsPrefix:t,onClick:this.rotateClockwise},{default:()=>S(St,null)}),`tipClockwise`),l=r(S(W,{clsPrefix:t,onClick:this.resizeToOrignalImageSize},{default:()=>S(bt,null)}),`tipOriginalSize`),f=r(S(W,{clsPrefix:t,onClick:this.zoomOut},{default:()=>S(Et,null)}),`tipZoomOut`),p=r(S(W,{clsPrefix:t,onClick:this.handleDownloadClick},{default:()=>S(yt,null)}),`tipDownload`),m=r(S(W,{clsPrefix:t,onClick:()=>this.close()},{default:Lt}),`tipClose`),h=r(S(W,{clsPrefix:t,onClick:this.zoomIn},{default:()=>S(Tt,null)}),`tipZoomIn`);return S(Y,null,(e=this.$slots).default?.call(e),S(u,{show:this.mergedShow},{default:()=>{var e;return this.mergedShow||this.displayed?((e=this.onRender)==null||e.call(this),a(S(`div`,{ref:`containerRef`,class:[`${t}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},S(P,{name:`fade-in-transition`,appear:this.appear},{default:()=>this.mergedShow?S(`div`,{class:`${t}-image-preview-overlay`,onClick:()=>this.close()}):null}),this.showToolbar?S(P,{name:`fade-in-transition`,appear:this.appear},{default:()=>this.mergedShow?S(`div`,{class:`${t}-image-preview-toolbar`},n?n({nodes:{prev:i,next:o,rotateCounterclockwise:s,rotateClockwise:c,resizeToOriginalSize:l,zoomOut:f,zoomIn:h,download:p,close:m}}):S(Y,null,this.onPrev?S(Y,null,i,o):null,s,c,l,f,h,p,m)):null}):null,S(P,{name:`fade-in-scale-up-transition`,onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{let{previewedImgProps:e={}}=this;return a(S(`div`,{class:`${t}-image-preview-wrapper`,ref:`previewWrapperRef`},S(`img`,Object.assign({},e,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${t}-image-preview`,e.class],key:this.previewSrc,src:this.previewSrc,ref:`previewRef`,onDragstart:this.handleDragStart}))),[[ae,this.mergedShow]])}})),[[d,{enabled:this.mergedShow}]])):null}}))}}),Ut=C(`n-image-group`),Wt=m({name:`ImageGroup`,props:Object.assign(Object.assign({},Rt),{srcList:Array,current:Number,defaultCurrent:{type:Number,default:0},show:{type:Boolean,default:void 0},defaultShow:Boolean,onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],onUpdateCurrent:[Function,Array],"onUpdate:current":[Function,Array]}),setup(e){let{mergedClsPrefixRef:t}=z(e),n=`c${A()}`,r=H(null),i=H(e.defaultShow),a=x(K(e,`show`),i),o=H(new Map),s=f(()=>{if(e.srcList){let t=new Map;return e.srcList.forEach((e,n)=>{t.set(`p${n}`,e)}),t}return o.value}),c=f(()=>Array.from(s.value.keys())),l=()=>c.value.length;function u(t,n){e.srcList&&N(`image-group`,"`n-image` can't be placed inside `n-image-group` when image group's `src-list` prop is set.");let r=`r${t}`;return o.value.has(`r${r}`)||o.value.set(r,n),function(){o.value.has(r)||o.value.delete(r)}}let d=H(e.defaultCurrent),p=x(K(e,`current`),d),m=t=>{if(t!==p.value){let{onUpdateCurrent:n,"onUpdate:current":r}=e;n&&R(n,t),r&&R(r,t),d.value=t}},h=f(()=>c.value[p.value]),g=e=>{let t=c.value.indexOf(e);t!==p.value&&m(t)},_=f(()=>s.value.get(h.value));function v(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&R(n,t),r&&R(r,t),i.value=t}function y(){v(!1)}let S=f(()=>{let e=(e,t)=>{for(let n=e;n<=t;n++){let e=c.value[n];if(s.value.get(e))return n}},t=e(p.value+1,l()-1);return t===void 0?e(0,p.value-1):t}),C=f(()=>{let e=(e,t)=>{for(let n=e;n>=t;n--){let e=c.value[n];if(s.value.get(e))return n}},t=e(p.value-1,0);return t===void 0?e(l()-1,p.value+1):t});function w(t){var n,r;t===1?(C.value!==void 0&&m(S.value),(n=e.onPreviewNext)==null||n.call(e)):(S.value!==void 0&&m(C.value),(r=e.onPreviewPrev)==null||r.call(e))}return b(Ut,{mergedClsPrefixRef:t,registerImageUrl:u,setThumbnailEl:e=>{var t;(t=r.value)==null||t.setThumbnailEl(e)},toggleShow:e=>{v(!0),g(e)},groupId:n,renderToolbarRef:K(e,`renderToolbar`)}),{mergedClsPrefix:t,previewInstRef:r,mergedShow:a,src:_,onClose:y,next:()=>{w(1)},prev:()=>{w(-1)}}},render(){return S(Ht,{theme:this.theme,themeOverrides:this.themeOverrides,ref:`previewInstRef`,onPrev:this.prev,onNext:this.next,src:this.src,show:this.mergedShow,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,onClose:this.onClose},this.$slots)}}),Gt=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:`fill`},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},Rt),Kt=0,qt=m({name:`Image`,props:Gt,slots:Object,inheritAttrs:!1,setup(e){let t=H(null),n=H(!1),r=H(null),i=T(Ut,null),{mergedClsPrefixRef:a}=i||z(e),o=f(()=>e.previewSrc||e.src),s=H(!1),c=Kt++,l=()=>{if(e.previewDisabled||n.value)return;if(i){i.setThumbnailEl(t.value),i.toggleShow(`r${c}`);return}let{value:a}=r;a&&(a.setThumbnailEl(t.value),s.value=!0)},u={click:()=>{l()},showPreview:l},d=H(!e.lazy);k(()=>{var e;(e=t.value)==null||e.setAttribute(`data-group-id`,i?.groupId||``)}),k(()=>{if(e.lazy&&e.intersectionObserverOptions){let n,r=M(()=>{n?.(),n=void 0,n=Mt(t.value,e.intersectionObserverOptions,d)});g(()=>{r(),n?.()})}}),M(()=>{var t;e.src||(t=e.imgProps)==null||t.src,n.value=!1}),M(e=>{let t=(i?.registerImageUrl)?.call(i,c,o.value||``);e(()=>{t?.()})});function p(t){var n,r;u.showPreview(),(r=(n=e.imgProps)?.onClick)==null||r.call(n,t)}function m(){s.value=!1}let h=H(!1);return b(zt,{previewedImgPropsRef:K(e,`previewedImgProps`)}),Object.assign({mergedClsPrefix:a,groupId:i?.groupId,previewInstRef:r,imageRef:t,mergedPreviewSrc:o,showError:n,shouldStartLoading:d,loaded:h,mergedOnClick:e=>{p(e)},onPreviewClose:m,mergedOnError:t=>{if(!d.value)return;n.value=!0;let{onError:r,imgProps:{onError:i}={}}=e;r?.(t),i?.(t)},mergedOnLoad:t=>{let{onLoad:n,imgProps:{onLoad:r}={}}=e;n?.(t),r?.(t),h.value=!0},previewShow:s},u)},render(){var e;let{mergedClsPrefix:t,imgProps:n={},loaded:r,$attrs:i,lazy:a}=this,o=G(this.$slots.error,()=>[]),s=(e=this.$slots).placeholder?.call(e),c=this.src||n.src,l=this.showError&&o.length?o:S(`img`,Object.assign(Object.assign({},n),{ref:`imageRef`,width:this.width||n.width,height:this.height||n.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?c:void 0:c,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Dt&&a&&!this.intersectionObserverOptions?`lazy`:`eager`,style:[n.style||``,s&&!r?{height:`0`,width:`0`,visibility:`hidden`}:``,{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return S(`div`,Object.assign({},i,{role:`none`,class:[i.class,`${t}-image`,(this.previewDisabled||this.showError)&&`${t}-image--preview-disabled`]}),this.groupId?l:S(Ht,{theme:this.theme,themeOverrides:this.themeOverrides,ref:`previewInstRef`,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,src:this.mergedPreviewSrc,show:!this.previewDisabled&&this.previewShow,onClose:this.onPreviewClose},{default:()=>l}),!r&&s)}}),Jt={success:S(j,null),error:S(r,null),warning:S(re,null),info:S(ie,null)},Yt=m({name:`ProgressCircle`,props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){let n=f(()=>{let t=`gradient`,{fillColor:n}=e;return typeof n==`object`?`${t}-${q(JSON.stringify(n))}`:t});function r(t,r,i,a){let{gapDegree:o,viewBoxWidth:s,strokeWidth:c}=e,l=50+c/2,u=`M ${l},${l} m 0,50 + a 50,50 0 1 1 0,-100 + a 50,50 0 1 1 0,100`,d=Math.PI*2*50;return{pathString:u,pathStyle:{stroke:a===`rail`?i:typeof e.fillColor==`object`?`url(#${n.value})`:i,strokeDasharray:`${Math.min(t,100)/100*(d-o)}px ${s*8}px`,strokeDashoffset:`-${o/2}px`,transformOrigin:r?`center`:void 0,transform:r?`rotate(${r}deg)`:void 0}}}let i=()=>{let t=typeof e.fillColor==`object`,r=t?e.fillColor.stops[0]:``,i=t?e.fillColor.stops[1]:``;return t&&S(`defs`,null,S(`linearGradient`,{id:n.value,x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`},S(`stop`,{offset:`0%`,"stop-color":r}),S(`stop`,{offset:`100%`,"stop-color":i})))};return()=>{let{fillColor:n,railColor:a,strokeWidth:o,offsetDegree:s,status:c,percentage:l,showIndicator:u,indicatorTextColor:d,unit:f,gapOffsetDegree:p,clsPrefix:m}=e,{pathString:h,pathStyle:g}=r(100,0,a,`rail`),{pathString:_,pathStyle:v}=r(l,s,n,`fill`),y=100+o;return S(`div`,{class:`${m}-progress-content`,role:`none`},S(`div`,{class:`${m}-progress-graph`,"aria-hidden":!0},S(`div`,{class:`${m}-progress-graph-circle`,style:{transform:p?`rotate(${p}deg)`:void 0}},S(`svg`,{viewBox:`0 0 ${y} ${y}`},i(),S(`g`,null,S(`path`,{class:`${m}-progress-graph-circle-rail`,d:h,"stroke-width":o,"stroke-linecap":`round`,fill:`none`,style:g})),S(`g`,null,S(`path`,{class:[`${m}-progress-graph-circle-fill`,l===0&&`${m}-progress-graph-circle-fill--empty`],d:_,"stroke-width":o,"stroke-linecap":`round`,fill:`none`,style:v}))))),u?S(`div`,null,t.default?S(`div`,{class:`${m}-progress-custom-content`,role:`none`},t.default()):c===`default`?S(`div`,{class:`${m}-progress-text`,style:{color:d},role:`none`},S(`span`,{class:`${m}-progress-text__percentage`},l),S(`span`,{class:`${m}-progress-text__unit`},f)):S(`div`,{class:`${m}-progress-icon`,"aria-hidden":!0},S(W,{clsPrefix:m},{default:()=>Jt[c]}))):null)}}}),Xt={success:S(j,null),error:S(r,null),warning:S(re,null),info:S(ie,null)},Zt=m({name:`ProgressLine`,props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:`%`},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){let n=f(()=>X(e.height)),r=f(()=>typeof e.fillColor==`object`?`linear-gradient(to right, ${e.fillColor?.stops[0]} , ${e.fillColor?.stops[1]})`:e.fillColor),i=f(()=>e.railBorderRadius===void 0?e.height===void 0?``:X(e.height,{c:.5}):X(e.railBorderRadius)),a=f(()=>e.fillBorderRadius===void 0?e.railBorderRadius===void 0?e.height===void 0?``:X(e.height,{c:.5}):X(e.railBorderRadius):X(e.fillBorderRadius));return()=>{let{indicatorPlacement:o,railColor:s,railStyle:c,percentage:l,unit:u,indicatorTextColor:d,status:f,showIndicator:p,processing:m,clsPrefix:h}=e;return S(`div`,{class:`${h}-progress-content`,role:`none`},S(`div`,{class:`${h}-progress-graph`,"aria-hidden":!0},S(`div`,{class:[`${h}-progress-graph-line`,{[`${h}-progress-graph-line--indicator-${o}`]:!0}]},S(`div`,{class:`${h}-progress-graph-line-rail`,style:[{backgroundColor:s,height:n.value,borderRadius:i.value},c]},S(`div`,{class:[`${h}-progress-graph-line-fill`,m&&`${h}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:r.value,height:n.value,lineHeight:n.value,borderRadius:a.value}},o===`inside`?S(`div`,{class:`${h}-progress-graph-line-indicator`,style:{color:d}},t.default?t.default():`${l}${u}`):null)))),p&&o===`outside`?S(`div`,null,t.default?S(`div`,{class:`${h}-progress-custom-content`,style:{color:d},role:`none`},t.default()):f===`default`?S(`div`,{role:`none`,class:`${h}-progress-icon ${h}-progress-icon--as-text`,style:{color:d}},l,u):S(`div`,{class:`${h}-progress-icon`,"aria-hidden":!0},S(W,{clsPrefix:h},{default:()=>Xt[f]}))):null)}}});function Qt(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var $t=m({name:`ProgressMultipleCircle`,props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){let n=f(()=>e.percentage.map((t,n)=>`${Math.PI*t/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*n)-e.circleGap*n)*2}, ${e.viewBoxWidth*8}`)),r=(t,n)=>{let r=e.fillColor[n],i=typeof r==`object`?r.stops[0]:``,a=typeof r==`object`?r.stops[1]:``;return typeof e.fillColor[n]==`object`&&S(`linearGradient`,{id:`gradient-${n}`,x1:`100%`,y1:`0%`,x2:`0%`,y2:`100%`},S(`stop`,{offset:`0%`,"stop-color":i}),S(`stop`,{offset:`100%`,"stop-color":a}))};return()=>{let{viewBoxWidth:i,strokeWidth:a,circleGap:o,showIndicator:s,fillColor:c,railColor:l,railStyle:u,percentage:d,clsPrefix:f}=e;return S(`div`,{class:`${f}-progress-content`,role:`none`},S(`div`,{class:`${f}-progress-graph`,"aria-hidden":!0},S(`div`,{class:`${f}-progress-graph-circle`},S(`svg`,{viewBox:`0 0 ${i} ${i}`},S(`defs`,null,d.map((e,t)=>r(e,t))),d.map((e,t)=>S(`g`,{key:t},S(`path`,{class:`${f}-progress-graph-circle-rail`,d:Qt(i/2-a/2*(1+2*t)-o*t,a,i),"stroke-width":a,"stroke-linecap":`round`,fill:`none`,style:[{strokeDashoffset:0,stroke:l[t]},u[t]]}),S(`path`,{class:[`${f}-progress-graph-circle-fill`,e===0&&`${f}-progress-graph-circle-fill--empty`],d:Qt(i/2-a/2*(1+2*t)-o*t,a,i),"stroke-width":a,"stroke-linecap":`round`,fill:`none`,style:{strokeDasharray:n.value[t],strokeDashoffset:0,stroke:typeof c[t]==`object`?`url(#gradient-${t})`:c[t]}})))))),s&&t.default?S(`div`,null,S(`div`,{class:`${f}-progress-text`},t.default())):null)}}}),en=i([I(`progress`,{display:`inline-block`},[I(`progress-icon`,` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),U(`line`,` + width: 100%; + display: block; + `,[I(`progress-content`,` + display: flex; + align-items: center; + `,[I(`progress-graph`,{flex:1})]),I(`progress-custom-content`,{marginLeft:`14px`}),I(`progress-icon`,` + width: 30px; + padding-left: 14px; + height: var(--n-icon-size-line); + line-height: var(--n-icon-size-line); + font-size: var(--n-icon-size-line); + `,[U(`as-text`,` + color: var(--n-text-color-line-outer); + text-align: center; + width: 40px; + font-size: var(--n-font-size); + padding-left: 4px; + transition: color .3s var(--n-bezier); + `)])]),U(`circle, dashboard`,{width:`120px`},[I(`progress-custom-content`,` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `),I(`progress-text`,` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: inherit; + font-size: var(--n-font-size-circle); + color: var(--n-text-color-circle); + font-weight: var(--n-font-weight-circle); + transition: color .3s var(--n-bezier); + white-space: nowrap; + `),I(`progress-icon`,` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: var(--n-icon-color); + font-size: var(--n-icon-size-circle); + `)]),U(`multiple-circle`,` + width: 200px; + color: inherit; + `,[I(`progress-text`,` + font-weight: var(--n-font-weight-circle); + color: var(--n-text-color-circle); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `)]),I(`progress-content`,{position:`relative`}),I(`progress-graph`,{position:`relative`},[I(`progress-graph-circle`,[i(`svg`,{verticalAlign:`bottom`}),I(`progress-graph-circle-fill`,` + stroke: var(--n-fill-color); + transition: + opacity .3s var(--n-bezier), + stroke .3s var(--n-bezier), + stroke-dasharray .3s var(--n-bezier); + `,[U(`empty`,{opacity:0})]),I(`progress-graph-circle-rail`,` + transition: stroke .3s var(--n-bezier); + overflow: hidden; + stroke: var(--n-rail-color); + `)]),I(`progress-graph-line`,[U(`indicator-inside`,[I(`progress-graph-line-rail`,` + height: 16px; + line-height: 16px; + border-radius: 10px; + `,[I(`progress-graph-line-fill`,` + height: inherit; + border-radius: 10px; + `),I(`progress-graph-line-indicator`,` + background: #0000; + white-space: nowrap; + text-align: right; + margin-left: 14px; + margin-right: 14px; + height: inherit; + font-size: 12px; + color: var(--n-text-color-line-inner); + transition: color .3s var(--n-bezier); + `)])]),U(`indicator-inside-label`,` + height: 16px; + display: flex; + align-items: center; + `,[I(`progress-graph-line-rail`,` + flex: 1; + transition: background-color .3s var(--n-bezier); + `),I(`progress-graph-line-indicator`,` + background: var(--n-fill-color); + font-size: 12px; + transform: translateZ(0); + display: flex; + vertical-align: middle; + height: 16px; + line-height: 16px; + padding: 0 10px; + border-radius: 10px; + position: absolute; + white-space: nowrap; + color: var(--n-text-color-line-inner); + transition: + right .2s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `)]),I(`progress-graph-line-rail`,` + position: relative; + overflow: hidden; + height: var(--n-rail-height); + border-radius: 5px; + background-color: var(--n-rail-color); + transition: background-color .3s var(--n-bezier); + `,[I(`progress-graph-line-fill`,` + background: var(--n-fill-color); + position: relative; + border-radius: 5px; + height: inherit; + width: 100%; + max-width: 0%; + transition: + background-color .3s var(--n-bezier), + max-width .2s var(--n-bezier); + `,[U(`processing`,[i(`&::after`,` + content: ""; + background-image: var(--n-line-bg-processing); + animation: progress-processing-animation 2s var(--n-bezier) infinite; + `)])])])])])]),i(`@keyframes progress-processing-animation`,` + 0% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 100%; + opacity: 1; + } + 66% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + 100% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + `)]),tn=m({name:`Progress`,props:Object.assign(Object.assign({},B.props),{processing:Boolean,type:{type:String,default:`line`},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:`default`},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:`%`},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:`outside`},indicatorPlacement:{type:String,default:`outside`},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),setup(e){let t=f(()=>e.indicatorPlacement||e.indicatorPosition),n=f(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type===`dashboard`)return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=z(e),a=B(`Progress`,`-progress`,en,se,e,r),o=f(()=>{let{status:t}=e,{common:{cubicBezierEaseInOut:n},self:{fontSize:r,fontSizeCircle:i,railColor:o,railHeight:s,iconSizeCircle:c,iconSizeLine:l,textColorCircle:u,textColorLineInner:d,textColorLineOuter:f,lineBgProcessing:p,fontWeightCircle:m,[le(`iconColor`,t)]:h,[le(`fillColor`,t)]:g}}=a.value;return{"--n-bezier":n,"--n-fill-color":g,"--n-font-size":r,"--n-font-size-circle":i,"--n-font-weight-circle":m,"--n-icon-color":h,"--n-icon-size-circle":c,"--n-icon-size-line":l,"--n-line-bg-processing":p,"--n-rail-color":o,"--n-rail-height":s,"--n-text-color-circle":u,"--n-text-color-line-inner":d,"--n-text-color-line-outer":f}}),s=i?fe(`progress`,f(()=>e.status[0]),o,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:i?void 0:o,themeClass:s?.themeClass,onRender:s?.onRender}},render(){let{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:i,railColor:a,railStyle:o,color:s,percentage:c,viewBoxWidth:l,strokeWidth:u,mergedIndicatorPlacement:d,unit:f,borderRadius:p,fillBorderRadius:m,height:h,processing:g,circleGap:_,mergedClsPrefix:v,gapDeg:y,gapOffsetDegree:b,themeClass:x,$slots:C,onRender:w}=this;return w?.(),S(`div`,{class:[x,`${v}-progress`,`${v}-progress--${e}`,`${v}-progress--${i}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":c,role:e===`circle`||e===`line`||e===`dashboard`?`progressbar`:`none`},e===`circle`||e===`dashboard`?S(Yt,{clsPrefix:v,status:i,showIndicator:r,indicatorTextColor:n,railColor:a,fillColor:s,railStyle:o,offsetDegree:this.offsetDegree,percentage:c,viewBoxWidth:l,strokeWidth:u,gapDegree:y===void 0?e===`dashboard`?75:0:y,gapOffsetDegree:b,unit:f},C):e===`line`?S(Zt,{clsPrefix:v,status:i,showIndicator:r,indicatorTextColor:n,railColor:a,fillColor:s,railStyle:o,percentage:c,processing:g,indicatorPlacement:d,unit:f,fillBorderRadius:m,railBorderRadius:p,height:h},C):e===`multiple-circle`?S($t,{clsPrefix:v,strokeWidth:u,railColor:a,fillColor:s,railStyle:o,viewBoxWidth:l,percentage:c,showIndicator:r,circleGap:_},C):null)}}),Q=C(`n-upload`),nn=i([I(`upload`,`width: 100%;`,[U(`dragger-inside`,[I(`upload-trigger`,` + display: block; + `)]),U(`drag-over`,[I(`upload-dragger`,` + border: var(--n-dragger-border-hover); + `)])]),I(`upload-dragger`,` + cursor: pointer; + box-sizing: border-box; + width: 100%; + text-align: center; + border-radius: var(--n-border-radius); + padding: 24px; + opacity: 1; + transition: + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-dragger-color); + border: var(--n-dragger-border); + `,[i(`&:hover`,` + border: var(--n-dragger-border-hover); + `),U(`disabled`,` + cursor: not-allowed; + `)]),I(`upload-trigger`,` + display: inline-block; + box-sizing: border-box; + opacity: 1; + transition: opacity .3s var(--n-bezier); + `,[i(`+`,[I(`upload-file-list`,`margin-top: 8px;`)]),U(`disabled`,` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `),U(`image-card`,` + width: 96px; + height: 96px; + `,[I(`base-icon`,` + font-size: 24px; + `),I(`upload-dragger`,` + padding: 0; + height: 100%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `)])]),I(`upload-file-list`,` + line-height: var(--n-line-height); + opacity: 1; + transition: opacity .3s var(--n-bezier); + `,[i(`a, img`,`outline: none;`),U(`disabled`,` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `,[I(`upload-file`,`cursor: not-allowed;`)]),U(`grid`,` + display: grid; + grid-template-columns: repeat(auto-fill, 96px); + grid-gap: 8px; + margin-top: 0; + `),I(`upload-file`,` + display: block; + box-sizing: border-box; + cursor: default; + padding: 0px 12px 0 6px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `,[p(),I(`progress`,[p({foldPadding:!0})]),i(`&:hover`,` + background-color: var(--n-item-color-hover); + `,[I(`upload-file-info`,[J(`action`,` + opacity: 1; + `)])]),U(`image-type`,` + border-radius: var(--n-border-radius); + text-decoration: underline; + text-decoration-color: #0000; + `,[I(`upload-file-info`,` + padding-top: 0px; + padding-bottom: 0px; + width: 100%; + height: 100%; + display: flex; + justify-content: space-between; + align-items: center; + padding: 6px 0; + `,[I(`progress`,` + padding: 2px 0; + margin-bottom: 0; + `),J(`name`,` + padding: 0 8px; + `),J(`thumbnail`,` + width: 32px; + height: 32px; + font-size: 28px; + display: flex; + justify-content: center; + align-items: center; + `,[i(`img`,` + width: 100%; + `)])])]),U(`text-type`,[I(`progress`,` + box-sizing: border-box; + padding-bottom: 6px; + margin-bottom: 6px; + `)]),U(`image-card-type`,` + position: relative; + width: 96px; + height: 96px; + border: var(--n-item-border-image-card); + border-radius: var(--n-border-radius); + padding: 0; + display: flex; + align-items: center; + justify-content: center; + transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + overflow: hidden; + `,[I(`progress`,` + position: absolute; + left: 8px; + bottom: 8px; + right: 8px; + width: unset; + `),I(`upload-file-info`,` + padding: 0; + width: 100%; + height: 100%; + `,[J(`thumbnail`,` + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: 36px; + `,[i(`img`,` + width: 100%; + `)])]),i(`&::before`,` + position: absolute; + z-index: 1; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + opacity: 0; + transition: opacity .2s var(--n-bezier); + content: ""; + `),i(`&:hover`,[i(`&::before`,`opacity: 1;`),I(`upload-file-info`,[J(`thumbnail`,`opacity: .12;`)])])]),U(`error-status`,[i(`&:hover`,` + background-color: var(--n-item-color-hover-error); + `),I(`upload-file-info`,[J(`name`,`color: var(--n-item-text-color-error);`),J(`thumbnail`,`color: var(--n-item-text-color-error);`)]),U(`image-card-type`,` + border: var(--n-item-border-image-card-error); + `)]),U(`with-url`,` + cursor: pointer; + `,[I(`upload-file-info`,[J(`name`,` + color: var(--n-item-text-color-success); + text-decoration-color: var(--n-item-text-color-success); + `,[i(`a`,` + text-decoration: underline; + `)])])]),I(`upload-file-info`,` + position: relative; + padding-top: 6px; + padding-bottom: 6px; + display: flex; + flex-wrap: nowrap; + `,[J(`thumbnail`,` + font-size: 18px; + opacity: 1; + transition: opacity .2s var(--n-bezier); + color: var(--n-item-icon-color); + `,[I(`base-icon`,` + margin-right: 2px; + vertical-align: middle; + transition: color .3s var(--n-bezier); + `)]),J(`action`,` + padding-top: inherit; + padding-bottom: inherit; + position: absolute; + right: 0; + top: 0; + bottom: 0; + width: 80px; + display: flex; + align-items: center; + transition: opacity .2s var(--n-bezier); + justify-content: flex-end; + opacity: 0; + `,[I(`button`,[i(`&:not(:last-child)`,{marginRight:`4px`}),I(`base-icon`,[i(`svg`,[v()])])]),U(`image-type`,` + position: relative; + max-width: 80px; + width: auto; + `),U(`image-card-type`,` + z-index: 2; + position: absolute; + width: 100%; + height: 100%; + left: 0; + right: 0; + bottom: 0; + top: 0; + display: flex; + justify-content: center; + align-items: center; + `)]),J(`name`,` + color: var(--n-item-text-color); + flex: 1; + display: flex; + justify-content: center; + text-overflow: ellipsis; + overflow: hidden; + flex-direction: column; + text-decoration-color: #0000; + font-size: var(--n-font-size); + transition: + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `,[i(`a`,` + color: inherit; + text-decoration: underline; + `)])])])]),I(`upload-file-input`,` + display: none; + width: 0; + height: 0; + opacity: 0; + `)]),rn=m({name:`UploadDragger`,__UPLOAD_DRAGGER__:!0,setup(e,{slots:t}){let n=T(Q,null);return n||N(`upload-dragger`,"`n-upload-dragger` must be placed inside `n-upload`."),()=>{let{mergedClsPrefixRef:{value:e},mergedDisabledRef:{value:r},maxReachedRef:{value:i}}=n;return S(`div`,{class:[`${e}-upload-dragger`,(r||i)&&`${e}-upload-dragger--disabled`]},t)}}});function an(){return S(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 28 28`},S(`g`,{fill:`none`},S(`path`,{d:`M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z`,fill:`currentColor`})))}function on(){return S(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 28 28`},S(`g`,{fill:`none`},S(`path`,{d:`M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z`,fill:`currentColor`})))}var sn=m({name:`UploadProgress`,props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:T(Q).mergedThemeRef}},render(){return S(y,null,{default:()=>this.show?S(tn,{type:`line`,showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),cn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function ln(e){return e.includes(`image/`)}function un(e=``){let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]}var dn=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,fn=e=>{if(e.type)return ln(e.type);let t=un(e.name||``);if(dn.test(t))return!0;let n=e.thumbnailUrl||e.url||``,r=un(n);return!!(/^data:image\//.test(n)||dn.test(r))};function pn(e){return cn(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!ln(e.type)){t(``);return}t(window.URL.createObjectURL(e))})})}var mn=o&&window.FileReader&&window.File;function hn(e){return e.isDirectory}function gn(e){return e.isFile}function _n(e,t){return cn(this,void 0,void 0,function*(){let n=[];function r(e){return cn(this,void 0,void 0,function*(){for(let i of e)if(i){if(t&&hn(i)){let e=i.createReader(),t=[],n;try{do n=yield new Promise((t,n)=>{e.readEntries(t,n)}),t=t.concat(n);while(n.length>0)}catch(e){oe(`upload`,`error happens when handling directory upload`,e)}yield r(t)}else if(gn(i))try{let e=yield new Promise((e,t)=>{i.file(e,t)});n.push({file:e,entry:i,source:`dnd`})}catch(e){oe(`upload`,`error happens when handling file upload`,e)}}})}return yield r(e),n})}function $(e){let{id:t,name:n,percentage:r,status:i,url:a,file:o,thumbnailUrl:s,type:c,fullPath:l,batchId:u}=e;return{id:t,name:n,percentage:r??null,status:i,url:a??null,file:o??null,thumbnailUrl:s??null,type:c??null,fullPath:l??null,batchId:u??null}}function vn(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(`,`).map(e=>e.trim()).filter(Boolean).some(n=>{if(n.startsWith(`.`)){if(e.endsWith(n))return!0}else if(n.includes(`/`)){let[e,r]=t.split(`/`),[i,a]=n.split(`/`);if((i===`*`||e&&i&&i===e)&&(a===`*`||r&&a&&a===r))return!0}else return!0;return!1})}var yn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},bn={paddingMedium:`0 3px`,heightMedium:`24px`,iconSizeMedium:`18px`},xn=m({name:`UploadFile`,props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0},index:{type:Number,required:!0}},setup(e){let t=T(Q),n=H(null),r=H(``),i=f(()=>{let{file:t}=e;return t.status===`finished`?`success`:t.status===`error`?`error`:`info`}),a=f(()=>{let{file:t}=e;if(t.status===`error`)return`error`}),o=f(()=>{let{file:t}=e;return t.status===`uploading`}),s=f(()=>{if(!t.showCancelButtonRef.value)return!1;let{file:n}=e;return[`uploading`,`pending`,`error`].includes(n.status)}),l=f(()=>{if(!t.showRemoveButtonRef.value)return!1;let{file:n}=e;return[`finished`].includes(n.status)}),u=f(()=>{if(!t.showDownloadButtonRef.value)return!1;let{file:n}=e;return[`finished`].includes(n.status)}),d=f(()=>{if(!t.showRetryButtonRef.value)return!1;let{file:n}=e;return[`error`].includes(n.status)}),p=c(()=>r.value||e.file.thumbnailUrl||e.file.url),m=f(()=>{if(!t.showPreviewButtonRef.value)return!1;let{file:{status:n},listType:r}=e;return[`finished`].includes(n)&&p.value&&r===`image-card`});function h(){return yn(this,void 0,void 0,function*(){let n=t.onRetryRef.value;n&&(yield n({file:e.file}))===!1||t.submit({fileId:e.file.id})})}function g(t){t.preventDefault();let{file:n}=e;[`finished`,`pending`,`error`].includes(n.status)?v(n):[`uploading`].includes(n.status)?b(n):ve(`upload`,`The button clicked type is unknown.`)}function _(t){t.preventDefault(),y(e.file)}function v(n){let{xhrMap:r,doChange:i,onRemoveRef:{value:a},mergedFileListRef:{value:o}}=t;Promise.resolve(a?a({file:Object.assign({},n),fileList:o,index:e.index}):!0).then(e=>{if(e===!1)return;let t=Object.assign({},n,{status:`removed`});r.delete(n.id),i(t,void 0,{remove:!0})})}function y(e){let{onDownloadRef:{value:n},customDownloadRef:{value:r}}=t;Promise.resolve(n?n(Object.assign({},e)):!0).then(t=>{t!==!1&&(r?r(Object.assign({},e)):xe(e.url,e.name))})}function b(e){let{xhrMap:n}=t;n.get(e.id)?.abort(),v(Object.assign({},e))}function x(r){let{onPreviewRef:{value:i}}=t;if(i)i(e.file,{event:r});else if(e.listType===`image-card`){let{value:e}=n;if(!e)return;e.showPreview()}}let S=()=>yn(this,void 0,void 0,function*(){let{listType:n}=e;n!==`image`&&n!==`image-card`||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return M(()=>{S()}),{mergedTheme:t.mergedThemeRef,progressStatus:i,buttonType:a,showProgress:o,disabled:t.mergedDisabledRef,showCancelButton:s,showRemoveButton:l,showDownloadButton:u,showRetryButton:d,showPreviewButton:m,mergedThumbnailUrl:p,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:g,handleDownloadClick:_,handleRetryClick:h,handlePreviewClick:x}},render(){let{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:i}=this,a,o=n===`image`;a=o||n===`image-card`?!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?S(`span`,{class:`${e}-upload-file-info__thumbnail`},i?i(r):fn(r)?S(W,{clsPrefix:e},{default:an}):S(W,{clsPrefix:e},{default:on})):S(`a`,{rel:`noopener noreferer`,target:`_blank`,href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n===`image-card`?S(qt,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:`imageRef`}):S(`img`,{src:this.mergedThumbnailUrl||void 0,alt:r.name})):S(`span`,{class:`${e}-upload-file-info__thumbnail`},i?i(r):S(W,{clsPrefix:e},{default:()=>S(_t,null)}));let s=S(sn,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n===`text`||n===`image`;return S(`div`,{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!==`error`&&n!==`image-card`&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},S(`div`,{class:`${e}-upload-file-info`},a,S(`div`,{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!==`error`?S(`a`,{rel:`noopener noreferer`,target:`_blank`,href:r.url||void 0,onClick:this.handlePreviewClick},r.name):S(`span`,{onClick:this.handlePreviewClick},r.name)),o&&s),S(`div`,{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?S(V,{key:`preview`,quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:bn},{icon:()=>S(W,{clsPrefix:e},{default:()=>S(w,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&S(V,{key:`cancelOrTrash`,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:bn,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>S(_e,null,{default:()=>this.showRemoveButton?S(W,{clsPrefix:e,key:`trash`},{default:()=>S(wt,null)}):S(W,{clsPrefix:e,key:`cancel`},{default:()=>S(vt,null)})})}),this.showRetryButton&&!this.disabled&&S(V,{key:`retry`,quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:bn},{icon:()=>S(W,{clsPrefix:e},{default:()=>S(xt,null)})}),this.showDownloadButton?S(V,{key:`download`,quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:bn},{icon:()=>S(W,{clsPrefix:e},{default:()=>S(yt,null)})}):null)),!o&&s)}}),Sn=m({name:`UploadTrigger`,props:{abstract:Boolean},slots:Object,setup(e,{slots:n}){let r=T(Q,null);r||N(`upload-trigger`,"`n-upload-trigger` must be placed inside `n-upload`.");let{mergedClsPrefixRef:i,mergedDisabledRef:a,maxReachedRef:o,listTypeRef:s,dragOverRef:c,openOpenFileDialog:l,draggerInsideRef:u,handleFileAddition:d,mergedDirectoryDndRef:p,triggerClassRef:m,triggerStyleRef:h}=r,g=f(()=>s.value===`image-card`);function _(){a.value||o.value||l()}function v(e){e.preventDefault(),c.value=!0}function y(e){e.preventDefault(),c.value=!0}function b(e){e.preventDefault(),c.value=!1}function x(e){if(e.preventDefault(),!u.value||a.value||o.value){c.value=!1;return}let t=e.dataTransfer?.items;t?.length?_n(Array.from(t).map(e=>e.webkitGetAsEntry()),p.value).then(e=>{d(e)}).finally(()=>{c.value=!1}):c.value=!1}return()=>{let{value:r}=i;return e.abstract?n.default?.call(n,{handleClick:_,handleDrop:x,handleDragOver:v,handleDragEnter:y,handleDragLeave:b}):S(`div`,{class:[`${r}-upload-trigger`,(a.value||o.value)&&`${r}-upload-trigger--disabled`,g.value&&`${r}-upload-trigger--image-card`,m.value],style:h.value,onClick:_,onDrop:x,onDragover:v,onDragenter:y,onDragleave:b},g.value?S(rn,null,{default:()=>G(n.default,()=>[S(W,{clsPrefix:r},{default:()=>S(t,null)})])}):n)}}}),Cn=m({name:`UploadFileList`,setup(e,{slots:t}){let n=T(Q,null);n||N(`upload-file-list`,"`n-upload-file-list` must be placed inside `n-upload`.");let{abstractRef:r,mergedClsPrefixRef:i,listTypeRef:a,mergedFileListRef:o,fileListClassRef:s,fileListStyleRef:c,cssVarsRef:l,themeClassRef:u,maxReachedRef:d,showTriggerRef:p,imageGroupPropsRef:m}=n,h=f(()=>a.value===`image-card`),g=()=>o.value.map((e,t)=>S(xn,{clsPrefix:i.value,key:e.id,file:e,index:t,listType:a.value})),_=()=>h.value?S(Wt,Object.assign({},m.value),{default:g}):S(y,{group:!0},{default:g});return()=>{let{value:e}=i,{value:n}=r;return S(`div`,{class:[`${e}-upload-file-list`,h.value&&`${e}-upload-file-list--grid`,n?u?.value:void 0,s.value],style:[n&&l?l.value:``,c.value]},_(),p.value&&!d.value&&h.value&&S(Sn,null,t))}}}),wn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Tn(e,t,n){let{doChange:r,xhrMap:i}=e,a=0;function o(n){let o=Object.assign({},t,{status:`error`,percentage:a});i.delete(t.id),o=$(e.onError?.call(e,{file:o,event:n})||o),r(o,n)}function s(s){if(e.isErrorState){if(e.isErrorState(n)){o(s);return}}else if(n.status<200||n.status>=300){o(s);return}let c=Object.assign({},t,{status:`finished`,percentage:a});i.delete(t.id),c=$(e.onFinish?.call(e,{file:c,event:s})||c),r(c,s)}return{handleXHRLoad:s,handleXHRError:o,handleXHRAbort(e){let n=Object.assign({},t,{status:`removed`,file:null,percentage:a});i.delete(t.id),r(n,e)},handleXHRProgress(e){let n=Object.assign({},t,{status:`uploading`});if(e.lengthComputable){let t=Math.ceil(e.loaded/e.total*100);n.percentage=t,a=t}r(n,e)}}}function En(e){let{inst:t,file:n,data:r,headers:i,withCredentials:a,action:o,customRequest:s}=e,{doChange:c}=e.inst,l=0;s({file:n,data:r,headers:i,withCredentials:a,action:o,onProgress(e){let t=Object.assign({},n,{status:`uploading`}),r=e.percent;t.percentage=r,l=r,c(t)},onFinish(){let e=Object.assign({},n,{status:`finished`,percentage:l});e=$(t.onFinish?.call(t,{file:e})||e),c(e)},onError(){let e=Object.assign({},n,{status:`error`,percentage:l});e=$(t.onError?.call(t,{file:e})||e),c(e)}})}function Dn(e,t,n){let r=Tn(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function On(e,t){return typeof e==`function`?e({file:t}):e||{}}function kn(e,t,n){let r=On(t,n);r&&Object.keys(r).forEach(t=>{e.setRequestHeader(t,r[t])})}function An(e,t,n){let r=On(t,n);r&&Object.keys(r).forEach(t=>{e.append(t,r[t])})}function jn(e,t,n,{method:r,action:i,withCredentials:a,responseType:o,headers:s,data:c}){let l=new XMLHttpRequest;l.responseType=o,e.xhrMap.set(n.id,l),l.withCredentials=a;let u=new FormData;if(An(u,c,n),n.file!==null&&u.append(t,n.file),Dn(e,n,l),i!==void 0){l.open(r.toUpperCase(),i),kn(l,s,n),l.send(u);let t=Object.assign({},n,{status:`uploading`});e.doChange(t)}}var Mn=m({name:`Upload`,props:Object.assign(Object.assign({},B.props),{name:{type:String,default:`file`},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:`POST`},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:``},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onRetry:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,customDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListClass:String,fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:`text`},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>mn?fn(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerClass:String,triggerStyle:[String,Object],renderIcon:Function}),setup(e){e.abstract&&e.listType===`image-card`&&N(`upload`,`when the list-type is image-card, abstract is not supported.`);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=z(e),i=B(`Upload`,`-upload`,nn,F,e,t),a=de(`Upload`,r,t),o=ue(e),s=H(e.defaultFileList),c=K(e,`fileList`),u=H(null),d={value:!1},p=H(!1),m=new Map,h=x(c,s),g=f(()=>h.value.map($)),_=f(()=>{let{max:t}=e;return t===void 0?!1:g.value.length>=t});function v(){var e;(e=u.value)==null||e.click()}function y(e){let t=e.target;ee(t.files?Array.from(t.files).map(e=>({file:e,entry:null,source:`input`})):null,e),t.value=``}function S(t){let{"onUpdate:fileList":n,onUpdateFileList:r}=e;n&&R(n,t),r&&R(r,t),s.value=t}let C=f(()=>e.multiple||e.directory),w=(t,n,r={append:!1,remove:!1})=>{let{append:i,remove:a}=r,o=Array.from(g.value),s=o.findIndex(e=>e.id===t.id);if(i||a||~s){i?o.push(t):a?o.splice(s,1):o.splice(s,1,t);let{onChange:r}=e;r&&r({file:t,fileList:o,event:n}),S(o)}};function ee(t,n){if(!t||t.length===0)return;let{onBeforeUpload:r}=e;t=C.value?t:[t[0]];let{max:i,accept:a}=e;t=t.filter(({file:e,source:t})=>t===`dnd`&&a?.trim()?vn(e.name,e.type,a):!0),i&&(t=t.slice(0,i-g.value.length));let o=A();Promise.all(t.map(e=>wn(this,[e],void 0,function*({file:e,entry:t}){let n={id:A(),batchId:o,name:e.name,status:`pending`,percentage:0,file:e,url:null,type:e.type,thumbnailUrl:null,fullPath:t?.fullPath??`/${e.webkitRelativePath||e.name}`};return!r||(yield r({file:n,fileList:g.value}))!==!1?n:null}))).then(e=>wn(this,void 0,void 0,function*(){let t=Promise.resolve();e.forEach(e=>{t=t.then(l).then(()=>{e&&w(e,n,{append:!0})})}),yield t})).then(()=>{e.defaultUpload&&T()})}function T({fileId:t,retry:n=!1}={}){let{method:r,action:i,withCredentials:a,headers:o,data:s,name:c}=e,l=t===void 0?g.value:g.value.filter(e=>e.id===t),u=n||t!==void 0;l.forEach(t=>{let{status:n}=t;(n===`pending`||n===`error`&&u)&&(e.customRequest?En({inst:{doChange:w,xhrMap:m,onFinish:e.onFinish,onError:e.onError},file:t,action:i,withCredentials:a,headers:o,data:s,customRequest:e.customRequest}):jn({doChange:w,xhrMap:m,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},c,t,{method:r,action:i,withCredentials:a,responseType:e.responseType,headers:o,data:s}))})}function E(t){if(t.thumbnailUrl)return t.thumbnailUrl;let{createThumbnailUrl:n}=e;return n?n(t.file,t)??(t.url||``):t.url?t.url:t.file?pn(t.file):``}let D=f(()=>{let{common:{cubicBezierEaseInOut:e},self:{draggerColor:t,draggerBorder:n,draggerBorderHover:r,itemColorHover:a,itemColorHoverError:o,itemTextColorError:s,itemTextColorSuccess:c,itemTextColor:l,itemIconColor:u,itemDisabledOpacity:d,lineHeight:f,borderRadius:p,fontSize:m,itemBorderImageCardError:h,itemBorderImageCard:g}}=i.value;return{"--n-bezier":e,"--n-border-radius":p,"--n-dragger-border":n,"--n-dragger-border-hover":r,"--n-dragger-color":t,"--n-font-size":m,"--n-item-color-hover":a,"--n-item-color-hover-error":o,"--n-item-disabled-opacity":d,"--n-item-icon-color":u,"--n-item-text-color":l,"--n-item-text-color-error":s,"--n-item-text-color-success":c,"--n-line-height":f,"--n-item-border-image-card-error":h,"--n-item-border-image-card":g}}),O=n?fe(`upload`,void 0,D,e):void 0;b(Q,{mergedClsPrefixRef:t,mergedThemeRef:i,showCancelButtonRef:K(e,`showCancelButton`),showDownloadButtonRef:K(e,`showDownloadButton`),showRemoveButtonRef:K(e,`showRemoveButton`),showRetryButtonRef:K(e,`showRetryButton`),onRemoveRef:K(e,`onRemove`),onDownloadRef:K(e,`onDownload`),customDownloadRef:K(e,`customDownload`),mergedFileListRef:g,triggerClassRef:K(e,`triggerClass`),triggerStyleRef:K(e,`triggerStyle`),shouldUseThumbnailUrlRef:K(e,`shouldUseThumbnailUrl`),renderIconRef:K(e,`renderIcon`),xhrMap:m,submit:T,doChange:w,showPreviewButtonRef:K(e,`showPreviewButton`),onPreviewRef:K(e,`onPreview`),getFileThumbnailUrlResolver:E,listTypeRef:K(e,`listType`),dragOverRef:p,openOpenFileDialog:v,draggerInsideRef:d,handleFileAddition:ee,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:_,fileListClassRef:K(e,`fileListClass`),fileListStyleRef:K(e,`fileListStyle`),abstractRef:K(e,`abstract`),acceptRef:K(e,`accept`),cssVarsRef:n?void 0:D,themeClassRef:O?.themeClass,onRender:O?.onRender,showTriggerRef:K(e,`showTrigger`),imageGroupPropsRef:K(e,`imageGroupProps`),mergedDirectoryDndRef:f(()=>e.directoryDnd??e.directory),onRetryRef:K(e,`onRetry`)});let k={clear:()=>{s.value=[]},submit:T,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:d,rtlEnabled:a,inputElRef:u,mergedTheme:i,dragOver:p,mergedMultiple:C,cssVars:n?void 0:D,themeClass:O?.themeClass,onRender:O?.onRender,handleFileInputChange:y},k)},render(){let{draggerInsideRef:e,mergedClsPrefix:t,$slots:n,directory:r,onRender:i}=this;n.default&&!this.abstract&&n.default()[0]?.type?.__UPLOAD_DRAGGER__&&(e.value=!0);let a=S(`input`,Object.assign({},this.inputProps,{ref:`inputElRef`,type:`file`,class:`${t}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:r||void 0,directory:r||void 0}));return this.abstract?S(Y,null,n.default?.call(n),S(E,{to:`body`},a)):(i?.(),S(`div`,{class:[`${t}-upload`,this.rtlEnabled&&`${t}-upload--rtl`,e.value&&`${t}-upload--dragger-inside`,this.dragOver&&`${t}-upload--drag-over`,this.themeClass],style:this.cssVars},a,this.showTrigger&&this.listType!==`image-card`&&S(Sn,null,n),this.showFileList&&S(Cn,null,n)))}});export{Mn as t}; \ No newline at end of file diff --git a/webui/assets/UsageView-AFixvCPJ.js b/webui/assets/UsageView-AFixvCPJ.js new file mode 100644 index 0000000000000000000000000000000000000000..b12687b710e8276c2c048d887d82e96d741b9f80 --- /dev/null +++ b/webui/assets/UsageView-AFixvCPJ.js @@ -0,0 +1 @@ +import{Ar as e,Dr as t,Fr as n,Gr as r,Nr as i,Or as a,Pr as o,Qr as s,Ur as c,a as l,ai as u,c as d,ci as f,gr as ee,jr as p,k as m,lr as h,ni as g,qr as _,si as v,wr as y}from"./index-Cl8-DFW_.js";var b=ee(`usage`,()=>{let e=g([]),n=g(!1);async function r(){n.value=!0;try{e.value=await l()}catch(e){console.error(`Failed to load sessions for usage:`,e)}finally{n.value=!1}}let i=t(()=>e.value.reduce((e,t)=>e+(t.input_tokens||0),0)),a=t(()=>e.value.reduce((e,t)=>e+(t.output_tokens||0),0)),o=t(()=>i.value+a.value),s=t(()=>e.value.length),c=t(()=>e.value.reduce((e,t)=>e+(t.cache_read_tokens||0),0));return{sessions:e,isLoading:n,loadSessions:r,totalInputTokens:i,totalOutputTokens:a,totalTokens:o,totalSessions:s,totalCacheTokens:c,cacheHitRate:t(()=>{let e=i.value;return e===0?null:c.value/e*100}),estimatedCost:t(()=>e.value.reduce((e,t)=>e+(t.actual_cost_usd??t.estimated_cost_usd??0),0)),modelUsage:t(()=>{let t=new Map;for(let n of e.value){let e=n.model||`unknown`;t.has(e)||t.set(e,{model:e,inputTokens:0,outputTokens:0,cacheTokens:0,totalTokens:0,sessions:0});let r=t.get(e);r.inputTokens+=n.input_tokens||0,r.outputTokens+=n.output_tokens||0,r.cacheTokens+=n.cache_read_tokens||0,r.totalTokens+=(n.input_tokens||0)+(n.output_tokens||0),r.sessions+=1}return[...t.values()].sort((e,t)=>t.totalTokens-e.totalTokens)}),dailyUsage:t(()=>{let t=new Map,n=new Date;for(let e=29;e>=0;e--){let r=new Date(n);r.setDate(r.getDate()-e);let i=r.toISOString().slice(0,10);t.set(i,{date:i,tokens:0,cache:0,sessions:0,cost:0})}for(let n of e.value){let e=new Date(n.started_at*1e3).toISOString().slice(0,10),r=t.get(e);if(r){r.tokens+=(n.input_tokens||0)+(n.output_tokens||0),r.cache+=n.cache_read_tokens||0,r.sessions+=1;let e=n.actual_cost_usd??n.estimated_cost_usd??0;r.cost+=e}}return[...t.values()]}),avgSessionsPerDay:t(()=>{let t=e.value.length>0?new Date(e.value[e.value.length-1].started_at*1e3):new Date,n=Math.max(1,Math.ceil((Date.now()-t.getTime())/(1e3*60*60*24)));return s.value/n})}}),x={class:`stat-cards`},S={class:`stat-card`},C={class:`stat-label`},w={class:`stat-value`},T={class:`stat-sub`},E={class:`stat-card`},D={class:`stat-label`},O={class:`stat-value`},k={class:`stat-sub`},A={class:`stat-card`},j={class:`stat-label`},M={class:`stat-value`},N={class:`stat-card`},P={class:`stat-label`},F={class:`stat-value`},I={key:0,class:`stat-sub`},L=d(n({__name:`StatCards`,setup(t){let{t:n}=h(),i=b();function o(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}function s(e){return e===0?`$0.00`:e<.01?`<$0.01`:`$`+e.toFixed(2)}return(t,c)=>(r(),p(`div`,x,[a(`div`,S,[a(`div`,C,f(u(n)(`usage.totalTokens`)),1),a(`div`,w,f(o(u(i).totalTokens)),1),a(`div`,T,f(o(u(i).totalInputTokens))+` `+f(u(n)(`usage.inputTokens`))+` / `+f(o(u(i).totalOutputTokens))+` `+f(u(n)(`usage.outputTokens`)),1)]),a(`div`,E,[a(`div`,D,f(u(n)(`usage.totalSessions`)),1),a(`div`,O,f(u(i).totalSessions),1),a(`div`,k,f(u(n)(`usage.avgPerDay`,{n:u(i).avgSessionsPerDay.toFixed(1)})),1)]),a(`div`,A,[a(`div`,j,f(u(n)(`usage.estimatedCost`)),1),a(`div`,M,f(s(u(i).estimatedCost)),1)]),a(`div`,N,[a(`div`,P,f(u(n)(`usage.cacheHitRate`)),1),a(`div`,F,f(u(i).cacheHitRate===null?`--`:u(i).cacheHitRate.toFixed(1)+`%`),1),u(i).cacheHitRate===null?e(``,!0):(r(),p(`div`,I,f(o(u(i).totalCacheTokens))+` `+f(u(n)(`usage.tokens`)),1))])]))}}),[[`__scopeId`,`data-v-3a594781`]]),R={class:`model-breakdown`},te={class:`section-title`},z={class:`model-list`},B={class:`model-name`},V={class:`model-bar-wrap`},H={class:`model-tokens`},U=d(n({__name:`ModelBreakdown`,setup(e){let{t}=h(),n=b();function i(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}return(e,o)=>(r(),p(`div`,R,[a(`h3`,te,f(u(t)(`usage.modelBreakdown`)),1),a(`div`,z,[(r(!0),p(y,null,_(u(n).modelUsage,e=>(r(),p(`div`,{key:e.model,class:`model-row`},[a(`span`,B,f(e.model),1),a(`div`,V,[a(`div`,{class:`model-bar`,style:v({width:e.totalTokens/u(n).modelUsage[0].totalTokens*100+`%`})},null,4)]),a(`span`,H,f(i(e.totalTokens)),1)]))),128))])]))}}),[[`__scopeId`,`data-v-d364aa35`]]),W={class:`daily-trend`},G={class:`section-title`},K={class:`bar-chart`},q={class:`bar-track`},J={class:`bar-tooltip`},Y={class:`tooltip-date`},X={class:`tooltip-row`},Z={class:`tooltip-row`},Q={class:`tooltip-row`},ne={class:`tooltip-row`},re={class:`bar-dates`},ie={class:`trend-table`},ae=d(n({__name:`DailyTrend`,setup(e){let{t:n}=h(),i=b();function o(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`K`:String(e)}function s(e){return e===0?`$0.00`:e<.01?`<$0.01`:`$`+e.toFixed(2)}let c=t(()=>Math.max(...i.dailyUsage.map(e=>e.tokens),1));return(e,t)=>(r(),p(`div`,W,[a(`h3`,G,f(u(n)(`usage.dailyTrend`)),1),a(`div`,K,[(r(!0),p(y,null,_(u(i).dailyUsage,e=>(r(),p(`div`,{key:e.date,class:`bar-col`},[a(`div`,q,[a(`div`,{class:`bar-fill`,style:v({height:e.tokens/c.value*100+`%`})},null,4)]),a(`div`,J,[a(`div`,Y,f(e.date),1),a(`div`,X,f(u(n)(`usage.tokens`))+`: `+f(o(e.tokens)),1),a(`div`,Z,f(u(n)(`usage.cache`))+`: `+f(o(e.cache)),1),a(`div`,Q,f(u(n)(`usage.sessions`))+`: `+f(e.sessions),1),a(`div`,ne,f(u(n)(`usage.cost`))+`: `+f(s(e.cost)),1)])]))),128))]),a(`div`,re,[a(`span`,null,f(u(i).dailyUsage[0]?.date.slice(5)),1),a(`span`,null,f(u(i).dailyUsage[u(i).dailyUsage.length-1]?.date.slice(5)),1)]),a(`div`,ie,[a(`table`,null,[a(`thead`,null,[a(`tr`,null,[a(`th`,null,f(u(n)(`usage.date`)),1),a(`th`,null,f(u(n)(`usage.tokens`)),1),a(`th`,null,f(u(n)(`usage.cache`)),1),a(`th`,null,f(u(n)(`usage.sessions`)),1),a(`th`,null,f(u(n)(`usage.cost`)),1)])]),a(`tbody`,null,[(r(!0),p(y,null,_([...u(i).dailyUsage].reverse().slice(0,30),e=>(r(),p(`tr`,{key:e.date},[a(`td`,null,f(e.date),1),a(`td`,null,f(o(e.tokens)),1),a(`td`,null,f(o(e.cache)),1),a(`td`,null,f(e.sessions),1),a(`td`,null,f(s(e.cost)),1)]))),128))])])])]))}}),[[`__scopeId`,`data-v-2caa0ddc`]]),oe={class:`usage-view`},$={class:`page-header`},se={class:`header-title`},ce={class:`usage-content`},le={key:0,class:`usage-loading`},ue={key:2,class:`usage-empty`},de=d(n({__name:`UsageView`,setup(e){let{t}=h(),n=b();return c(()=>{n.loadSessions()}),(e,c)=>(r(),p(`div`,oe,[a(`header`,$,[a(`h2`,se,f(u(t)(`usage.title`)),1),o(u(m),{size:`small`,quaternary:``,loading:u(n).isLoading,onClick:c[0]||=e=>u(n).loadSessions()},{default:s(()=>[i(f(u(t)(`usage.refresh`)),1)]),_:1},8,[`loading`])]),a(`div`,ce,[u(n).isLoading&&u(n).sessions.length===0?(r(),p(`div`,le,f(u(t)(`common.loading`)),1)):u(n).sessions.length>0?(r(),p(y,{key:1},[o(L),o(U),o(ae)],64)):(r(),p(`div`,ue,f(u(t)(`usage.noData`)),1))])]))}}),[[`__scopeId`,`data-v-c0e83cbe`]]);export{de as default}; \ No newline at end of file diff --git a/webui/assets/UsageView-DZQCtRuu.css b/webui/assets/UsageView-DZQCtRuu.css new file mode 100644 index 0000000000000000000000000000000000000000..6a7bb927bd2b6af0415df7b0250a3d38c0896bdb --- /dev/null +++ b/webui/assets/UsageView-DZQCtRuu.css @@ -0,0 +1 @@ +[data-v-3a594781]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-3a594781]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.stat-cards[data-v-3a594781]{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px;display:grid}.stat-card[data-v-3a594781]{background:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;padding:16px}.stat-label[data-v-3a594781]{color:var(--text-muted);margin-bottom:6px;font-size:12px}.stat-value[data-v-3a594781]{color:var(--text-primary);font-size:22px;font-weight:600;line-height:1.2}.stat-sub[data-v-3a594781]{color:var(--text-muted);margin-top:4px;font-size:11px}@media (width<=768px){.stat-cards[data-v-3a594781]{grid-template-columns:repeat(2,1fr)}}@media (width<=480px){.stat-cards[data-v-3a594781]{grid-template-columns:1fr}}[data-v-d364aa35]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-d364aa35]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.model-breakdown[data-v-d364aa35]{background:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;margin-bottom:20px;padding:16px}.section-title[data-v-d364aa35]{color:var(--text-secondary);margin:0 0 12px;font-size:13px;font-weight:600}.model-list[data-v-d364aa35]{flex-direction:column;gap:8px;display:flex}.model-row[data-v-d364aa35]{align-items:center;gap:10px;display:flex}.model-name[data-v-d364aa35]{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;width:140px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:12px;overflow:hidden}.model-bar-wrap[data-v-d364aa35]{background:var(--bg-secondary);border-radius:3px;flex:1;height:16px;overflow:hidden}.model-bar[data-v-d364aa35]{background:var(--text-primary);border-radius:3px;min-width:2px;height:100%;transition:width .3s}.dark .model-bar[data-v-d364aa35]{background:#66bb6a}.model-tokens[data-v-d364aa35]{color:var(--text-muted);text-align:right;flex-shrink:0;width:60px;font-size:12px}[data-v-2caa0ddc]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-2caa0ddc]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.daily-trend[data-v-2caa0ddc]{background:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;padding:16px}.section-title[data-v-2caa0ddc]{color:var(--text-secondary);margin:0 0 12px;font-size:13px;font-weight:600}.bar-chart[data-v-2caa0ddc]{gap:2px;margin-bottom:16px;display:flex}.bar-col[data-v-2caa0ddc]{flex-direction:column;flex:1;align-items:center;min-width:0;display:flex}.bar-track[data-v-2caa0ddc]{background:var(--bg-secondary);border-radius:2px 2px 0 0;align-items:flex-end;width:100%;height:140px;display:flex}.bar-fill[data-v-2caa0ddc]{background:var(--text-primary);border-radius:2px 2px 0 0;width:100%;min-height:0;transition:height .3s}.dark .bar-fill[data-v-2caa0ddc]{background:#66bb6a}.bar-col[data-v-2caa0ddc]{position:relative}.bar-tooltip[data-v-2caa0ddc]{background:var(--text-primary);color:var(--text-on-accent);white-space:nowrap;z-index:10;pointer-events:none;border-radius:6px;padding:6px 10px;font-size:11px;display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.bar-tooltip[data-v-2caa0ddc]:after{content:"";border:5px solid #0000;border-top-color:var(--text-primary);position:absolute;top:100%;left:50%;transform:translate(-50%)}.bar-col:hover .bar-tooltip[data-v-2caa0ddc]{display:block}.tooltip-date[data-v-2caa0ddc]{margin-bottom:2px;font-weight:600}.tooltip-row[data-v-2caa0ddc]{opacity:.85;font-size:10px;line-height:1.5}.bar-label[data-v-2caa0ddc]{display:none}.bar-dates[data-v-2caa0ddc]{color:var(--text-muted);justify-content:space-between;margin-top:4px;margin-bottom:16px;font-size:10px;display:flex}.trend-table[data-v-2caa0ddc]{overflow-x:auto}table[data-v-2caa0ddc]{border-collapse:collapse;width:100%;font-size:12px}thead[data-v-2caa0ddc]{position:sticky;top:0}th[data-v-2caa0ddc]{text-align:left;color:var(--text-muted);border-bottom:1px solid var(--border-color);background:var(--bg-card);text-transform:uppercase;letter-spacing:.3px;padding:8px 10px;font-size:11px;font-weight:600}td[data-v-2caa0ddc]{color:var(--text-secondary);border-bottom:1px solid var(--border-light);padding:6px 10px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:11px}tr:last-child td[data-v-2caa0ddc]{border-bottom:none}[data-v-c0e83cbe]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#0d9488;--accent-hover:#0f766e;--accent-muted:#5eead4;--accent-subtle:#0d948814;--text-primary:#1a1a1a;--text-secondary:#555;--text-muted:#999;--success:#16a34a;--error:#dc2626;--warning:#d97706;--msg-user-bg:#f0fdfa;--msg-assistant-bg:#fff;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#0284c7;--accent-primary-rgb:13, 148, 136;--accent-hover-rgb:15, 118, 110;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:22, 163, 74;--error-rgb:220, 38, 38;--warning-rgb:217, 119, 6;--accent-info-rgb:2, 132, 199}.dark[data-v-c0e83cbe]{--bg-primary:#141414;--bg-secondary:#1e1e1e;--bg-sidebar:#191919;--bg-card:#262626;--bg-card-hover:#2a2a2a;--bg-input:#222;--border-color:#333;--border-light:#2a2a2a;--accent-primary:#2dd4bf;--accent-hover:#5eead4;--accent-muted:#99f6e4;--accent-subtle:#2dd4bf1a;--text-primary:#f0f0f0;--text-secondary:#b8b8b8;--text-muted:#777;--success:#4ade80;--error:#f87171;--warning:#fbbf24;--msg-user-bg:#1a2e2b;--msg-assistant-bg:#1e1e1e;--msg-system-border:#444;--code-bg:#1a1a1a;--text-on-accent:#0f172a;--text-on-overlay:#fff;--accent-info:#38bdf8;--accent-primary-rgb:45, 212, 191;--accent-hover-rgb:94, 234, 212;--text-primary-rgb:240, 240, 240;--text-muted-rgb:119, 119, 119;--success-rgb:74, 222, 128;--error-rgb:248, 113, 113;--warning-rgb:251, 191, 36;--accent-info-rgb:56, 189, 248}.usage-view[data-v-c0e83cbe]{flex-direction:column;height:100%;display:flex}.usage-content[data-v-c0e83cbe]{scrollbar-width:none;-ms-overflow-style:none;flex:1;width:100%;max-width:960px;margin:0 auto;padding:20px;overflow-y:auto}.usage-content[data-v-c0e83cbe]::-webkit-scrollbar{display:none}.usage-loading[data-v-c0e83cbe],.usage-empty[data-v-c0e83cbe]{text-align:center;color:var(--text-muted);padding:60px 0;font-size:14px} diff --git a/webui/assets/_arrayReduce-Cj7sZjrj.js b/webui/assets/_arrayReduce-Cj7sZjrj.js new file mode 100644 index 0000000000000000000000000000000000000000..d2e2e161b1a3cc0272213b9152e04dc43b589c8e --- /dev/null +++ b/webui/assets/_arrayReduce-Cj7sZjrj.js @@ -0,0 +1 @@ +function e(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i-1&&e%1==0&&e-1&&e%1==0&&e<=ve}function ye(e){return e!=null&&T(e.length)&&!v(e)}var be=Object.prototype;function xe(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||be)}function E(e,t){for(var n=-1,r=Array(e);++n-1}function dt(e,t){var n=this.__data__,r=q(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function J(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var b=t?t.isConcatSpreadable:void 0;function x(t){return e(t)||n(t)||!!(b&&t&&t[b])}function S(e,t,n,r,i){var a=-1,s=e.length;for(n||=x,i||=[];++a0&&n(c)?t>1?S(c,t-1,n,r,i):o(i,c):r||(i[i.length]=c)}return i}function C(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=j){var u=t?null:A(e);if(u)return d(u);o=!1,i=f,l=new c}else l=t?[]:s;outer:for(;++r`,`->*`,`=>`,`~`,`~*`],operators:` +. -./.*.**.div.mod.=.#.@.+=.-=.*=./=.**=.&&=.?=.&.&&.bit-and.bit-not.bit-or.bit-xor.m.o.z.<. >.<=.>=.<>.><.=<.=>.bt.byte-ca.byte-cn.byte-co.byte-cs.byte-na.byte-ns.ca.cn.co.cp.cs.eq.ge.gt.le.lt.na.nb.ne.np.ns.*/.*:.--./*.//`.split(`.`),symbols:/[=>))*/,{cases:{"@typeKeywords":`type`,"@keywords":`keyword`,"@cdsLanguage":`annotation`,"@derivedTypes":`type`,"@builtinFunctions":`type`,"@builtinMethods":`type`,"@operators":`key`,"@default":`identifier`}}],[/<[\w]+>/,`identifier`],[/##[\w|_]+/,`comment`],{include:`@whitespace`},[/[:,.]/,`delimiter`],[/[{}()\[\]]/,`@brackets`],[/@symbols/,{cases:{"@selectors":`tag`,"@operators":`key`,"@default":``}}],[/'/,{token:`string`,bracket:`@open`,next:`@stringquote`}],[/`/,{token:`string`,bracket:`@open`,next:`@stringping`}],[/\|/,{token:`string`,bracket:`@open`,next:`@stringtemplate`}],[/\d+/,`number`]],stringtemplate:[[/[^\\\|]+/,`string`],[/\\\|/,`string`],[/\|/,{token:`string`,bracket:`@close`,next:`@pop`}]],stringping:[[/[^\\`]+/,`string`],[/`/,{token:`string`,bracket:`@close`,next:`@pop`}]],stringquote:[[/[^\\']+/,`string`],[/'/,{token:`string`,bracket:`@close`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,``],[/^\*.*$/,`comment`],[/\".*$/,`comment`]]}};export{e as conf,t as language}; \ No newline at end of file diff --git a/webui/assets/apex-CAdLmNAy.js b/webui/assets/apex-CAdLmNAy.js new file mode 100644 index 0000000000000000000000000000000000000000..e554b1bc999f8b303400a52bbe1ef75f92998f15 --- /dev/null +++ b/webui/assets/apex-CAdLmNAy.js @@ -0,0 +1 @@ +var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:`<`,close:`>`}],folding:{markers:{start:RegExp(`^\\s*//\\s*(?:(?:#?region\\b)|(?:))`)}}},t=`abstract.activate.and.any.array.as.asc.assert.autonomous.begin.bigdecimal.blob.boolean.break.bulk.by.case.cast.catch.char.class.collect.commit.const.continue.convertcurrency.decimal.default.delete.desc.do.double.else.end.enum.exception.exit.export.extends.false.final.finally.float.for.from.future.get.global.goto.group.having.hint.if.implements.import.in.inner.insert.instanceof.int.interface.into.join.last_90_days.last_month.last_n_days.last_week.like.limit.list.long.loop.map.merge.native.new.next_90_days.next_month.next_n_days.next_week.not.null.nulls.number.object.of.on.or.outer.override.package.parallel.pragma.private.protected.public.retrieve.return.returning.rollback.savepoint.search.select.set.short.sort.stat.static.strictfp.super.switch.synchronized.system.testmethod.then.this.this_month.this_week.throw.throws.today.tolabel.tomorrow.transaction.transient.trigger.true.try.type.undelete.update.upsert.using.virtual.void.volatile.webservice.when.where.while.yesterday`.split(`.`),n=e=>e.charAt(0).toUpperCase()+e.substr(1),r=[];t.forEach(e=>{r.push(e),r.push(e.toUpperCase()),r.push(n(e))});var i={defaultToken:``,tokenPostfix:`.apex`,keywords:r,operators:`=.>.<.!.~.?.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.>>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=.>>>=`.split(`.`),symbols:/[=>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/@\s*[a-zA-Z_\$][\w\$]*/,`annotation`],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,`number.float`],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,`number.float`],[/(@digits)[fFdD]/,`number.float`],[/(@digits)[lL]?/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string."`],[/'/,`string`,`@string.'`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@apexdoc`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],apexdoc:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/["']/,{cases:{"$#==$S2":{token:`string`,next:`@pop`},"@default":`string`}}]]}};export{e as conf,i as language}; \ No newline at end of file diff --git a/webui/assets/app-IytcAxLh.js b/webui/assets/app-IytcAxLh.js new file mode 100644 index 0000000000000000000000000000000000000000..8f46b4db2d48cd07b03cd05cf9608f1a0c294da2 --- /dev/null +++ b/webui/assets/app-IytcAxLh.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-Dlc7tRH4.js";import{gr as t,ni as n,pr as r}from"./index-Cl8-DFW_.js";async function i(){return r(`/health`)}async function a(){return r(`/api/hermes/update`,{method:`POST`})}async function o(){return r(`/api/hermes/available-models`)}async function s(e){await r(`/api/hermes/config/model`,{method:`PUT`,body:JSON.stringify(e)})}async function c(e){await r(`/api/hermes/config/providers`,{method:`POST`,body:JSON.stringify(e)})}async function l(e){await r(`/api/hermes/config/providers/${encodeURIComponent(e)}`,{method:`DELETE`})}async function u(e,t){await r(`/api/hermes/config/providers/${encodeURIComponent(e)}`,{method:`PUT`,body:JSON.stringify(t)})}var d=e({useAppStore:()=>m}),f=`0.4.9`,p=`hermes_sidebar_collapsed`,m=t(`app`,()=>{let e=n(!1),t=n(localStorage.getItem(p)===`1`),r=n(!1),c=n(f),l=n(``),u=n(!1),d=n(!1),m=n([]),h=n(``),g=n(``),_=n({}),v=n(),y=n(``),b=n(!0),x=n(!0),S=n(4096);async function C(){d.value=!0;try{let e=await a();return e.success&&(u.value=!1,await w()),e.success}finally{d.value=!1}}async function w(){try{let e=await i();r.value=e.status===`ok`,e.webui_version&&(c.value=e.webui_version),e.webui_latest&&(l.value=e.webui_latest),u.value=!!e.webui_update_available,e.node_version&&(y.value=e.node_version)}catch{r.value=!1}}async function T(){try{let e=await o();m.value=e.groups,h.value=e.default,g.value=e.default_provider||``}catch{}}async function E(e,t){try{let n=m.value.find(t=>t.models.includes(e)),r=t||n?.provider||``;await s({default:e,provider:r}),h.value=e,g.value=r||``,r&&!m.value.find(e=>e.provider===r)?.models.includes(e)&&(_.value[r]||(_.value[r]=[]),_.value[r].includes(e)||(_.value[r]=[..._.value[r],e]))}catch(e){console.error(`Failed to switch model:`,e)}}function D(e=3e4){O(),w(),v.value=setInterval(w,e)}function O(){v.value&&=(clearInterval(v.value),void 0)}function k(){e.value=!e.value}function A(){e.value=!1}function j(){t.value=!t.value;try{localStorage.setItem(p,t.value?`1`:`0`)}catch{}}return{sidebarOpen:e,sidebarCollapsed:t,toggleSidebar:k,closeSidebar:A,toggleSidebarCollapsed:j,connected:r,serverVersion:c,latestVersion:l,nodeVersion:y,updateAvailable:u,updating:d,doUpdate:C,modelGroups:m,customModels:_,selectedModel:h,selectedProvider:g,streamEnabled:b,sessionPersistence:x,maxTokens:S,checkConnection:w,loadModels:T,switchModel:E,startHealthPolling:D,stopHealthPolling:O}});export{l as a,o as i,m as n,s as o,c as r,u as s,d as t}; \ No newline at end of file diff --git a/webui/assets/arc-Ba1BJBR0.js b/webui/assets/arc-Ba1BJBR0.js new file mode 100644 index 0000000000000000000000000000000000000000..728d0b51d439de839952aeeedf2de1c962a46955 --- /dev/null +++ b/webui/assets/arc-Ba1BJBR0.js @@ -0,0 +1 @@ +import{n as e,t}from"./path-B0d9ncVi.js";import{a as n,c as r,d as i,f as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,u as p}from"./dist-Ur6PXDdt.js";function m(e){return e.innerRadius}function h(e){return e.outerRadius}function g(e){return e.startAngle}function _(e){return e.endAngle}function v(e){return e&&e.padAngle}function y(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function b(e,t,n,r,i,a,o){var c=e-n,l=t-r,u=(o?a:-a)/d(c*c+l*l),f=u*l,p=-u*c,m=e+f,h=t+p,g=n+f,_=r+p,v=(m+g)/2,y=(h+_)/2,b=g-m,x=_-h,S=b*b+x*x,C=i-a,w=m*_-g*h,T=(x<0?-1:1)*d(s(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,A=E-v,j=D-y,M=O-v,N=k-y;return A*A+j*j>M*M+N*N&&(E=O,D=k),{cx:E,cy:D,x01:-f,y01:-p,x11:E*(i/C-1),y11:D*(i/C-1)}}function x(){var s=m,x=h,S=e(0),C=null,w=g,T=_,E=v,D=null,O=t(k);function k(){var e,t,m=+s.apply(this,arguments),h=+x.apply(this,arguments),g=w.apply(this,arguments)-r,_=T.apply(this,arguments)-r,v=l(_-g),k=_>g;if(D||=e=O(),h1e-12))D.moveTo(0,0);else if(v>c-1e-12)D.moveTo(h*u(g),h*a(g)),D.arc(0,0,h,g,_,!k),m>1e-12&&(D.moveTo(m*u(_),m*a(_)),D.arc(0,0,m,_,g,k));else{var A=g,j=_,M=g,N=_,P=v,F=v,I=E.apply(this,arguments)/2,L=I>1e-12&&(C?+C.apply(this,arguments):d(m*m+h*h)),R=p(l(h-m)/2,+S.apply(this,arguments)),z=R,B=R,V,H;if(L>1e-12){var U=o(L/m*a(I)),W=o(L/h*a(I));(P-=U*2)>1e-12?(U*=k?1:-1,M+=U,N-=U):(P=0,M=N=(g+_)/2),(F-=W*2)>1e-12?(W*=k?1:-1,A+=W,j-=W):(F=0,A=j=(g+_)/2)}var G=h*u(A),K=h*a(A),q=m*u(N),J=m*a(N);if(R>1e-12){var Y=h*u(j),X=h*a(j),Z=m*u(M),Q=m*a(M),$;if(v1e-12?B>1e-12?(V=b(Z,Q,G,K,h,B,k),H=b(Y,X,q,J,h,B,k),D.moveTo(V.cx+V.x01,V.cy+V.y01),B1e-12)||!(P>1e-12)?D.lineTo(q,J):z>1e-12?(V=b(q,J,Y,X,m,-z,k),H=b(G,K,Z,Q,m,-z,k),D.lineTo(V.cx+V.x01,V.cy+V.y01),z{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=28)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),c=n(5);function l(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,n!=null&&t!=null?this.rect=new a(t.x,t.y,n.width,n.height):this.rect=new a}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(e){this.rect.width=e},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(e){this.rect.height=e},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},l.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},l.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},l.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},l.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},l.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(!(r.source==n||r.target==n))throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},l.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},l.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it?(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal==`right`&&this.setWidth(t+this.labelWidth)),this.labelHeight&&(this.labelPosVertical==`top`?(this.rect.y-=this.labelHeight,this.setHeight(n+this.labelHeight)):this.labelPosVertical==`center`&&this.labelHeight>n?(this.rect.y-=(this.labelHeight-n)/2,this.setHeight(this.labelHeight)):this.labelPosVertical==`bottom`&&this.setHeight(n+this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},l.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new c(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=l}),(function(e,t,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(7),s=n(3),c=n(1),l=n(13),u=n(12),d=n(11);function f(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in f.prototype=Object.create(r.prototype),r)f[p]=r[p];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}else{var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(!(t.owner==n.owner&&t.owner==this))throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null}},f.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(!(t.owner!=null&&t.owner==this))throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&u>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(l,1),r.target!=r.source&&r.target.edges.splice(u,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},f.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,c=0;cn&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new u(this.left,this.top))},f.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d,f=this.nodes,p=f.length,m=0;mo&&(t=o),nc&&(r=c),ao&&(t=o),nc&&(r=c),a=this.nodes.length){var c=0;n.forEach(function(t){t.owner==e&&c++}),c==this.nodes.length&&(this.isConnected=!0)}},e.exports=f}),(function(e,t,n){var r,i=n(1);function a(e){r=n(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}else{i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(!(a!=null&&a.getGraphManager()==this))throw`Source not in this graph mgr!`;if(!(o!=null&&o.getGraphManager()==this))throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),!(n.source!=null&&n.target!=null))throw`Edge source and/or target is null!`;if(!(n.source.edges.indexOf(n)==-1&&n.target.edges.indexOf(n)==-1))throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n}},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=c,n[2]=a,n[3]=y,!1;if(ia)return n[0]=s,n[1]=i,n[2]=_,n[3]=o,!1;if(ra?(n[0]=u,n[1]=d,C=!0):(n[0]=l,n[1]=c,C=!0):T===D&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=d,C=!0)),-E===D?a>r?(n[2]=v,n[3]=y,w=!0):(n[2]=_,n[3]=g,w=!0):E===D&&(a>r?(n[2]=h,n[3]=g,w=!0):(n[2]=b,n[3]=y,w=!0)),C&&w)return!1;if(r>a?i>o?(O=this.getCardinalDirection(T,D,4),k=this.getCardinalDirection(E,D,2)):(O=this.getCardinalDirection(-T,D,3),k=this.getCardinalDirection(-E,D,1)):i>o?(O=this.getCardinalDirection(-T,D,1),k=this.getCardinalDirection(-E,D,3)):(O=this.getCardinalDirection(T,D,2),k=this.getCardinalDirection(E,D,4)),!C)switch(O){case 1:j=c,A=r+-m/D,n[0]=A,n[1]=j;break;case 2:A=f,j=i+p*D,n[0]=A,n[1]=j;break;case 3:j=d,A=r+m/D,n[0]=A,n[1]=j;break;case 4:A=u,j=i+-p*D,n[0]=A,n[1]=j;break}if(!w)switch(k){case 1:N=g,M=a+-S/D,n[2]=M,n[3]=N;break;case 2:M=b,N=o+x*D,n[2]=M,n[3]=N;break;case 3:N=y,M=a+S/D,n[2]=M,n[3]=N;break;case 4:M=v,N=o+-x*D,n[2]=M,n[3]=N;break}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,c=t.y,l=n.x,u=n.y,d=i.x,f=i.y,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0;return h=c-o,_=a-s,y=s*o-a*c,g=f-u,v=l-d,b=d*u-l*f,x=h*v-g*_,x===0?null:(p=(_*b-v*y)/x,m=(g*y-h*b)/x,new r(p,m))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r=0){var u=(-c+Math.sqrt(c*c-4*s*l))/(2*s),d=(-c-Math.sqrt(c*c-4*s*l))/(2*s);return u>=0&&u<=1?[u]:d>=0&&d<=1?[d]:null}else return null},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i}),(function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(l[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),o.add(u);for(var d=u.getEdges(),a=0;a-1&&l.splice(h,1)}o=new Set,c=new Map}}return e},f.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(d,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&l.push(e),r.set(e,t)}})}n=n.concat(l),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},f.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=f}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(5);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,r,i,o,s=this.getAllNodes(),c;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),c=new Set,n=0;nc||s>c)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(c=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=c.length||u>=c[0].length)){for(var d=0;de}}]),e}()}),(function(e,t,n){function r(){}r.svd=function(e){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=e.length,this.n=e[0].length;var t=Math.min(this.m,this.n);this.s=function(e){for(var t=[];e-- >0;)t.push(0);return t}(Math.min(this.m+1,this.n)),this.U=function(e){return function e(t){if(t.length==0)return 0;for(var n=[],r=0;r0;)t.push(0);return t}(this.n),i=function(e){for(var t=[];e-- >0;)t.push(0);return t}(this.m),a=!0,o=!0,s=Math.min(this.m-1,this.n),c=Math.max(0,Math.min(this.n-2,this.m)),l=0;l=0;k--)if(this.s[k]!==0){for(var A=k+1;A=0;L--){if(function(e,t){return e&&t}(L0;){var U=void 0,W=void 0;for(U=E-2;U>=-1&&U!==-1;U--)if(Math.abs(n[U])<=re+ne*(Math.abs(this.s[U])+Math.abs(this.s[U+1]))){n[U]=0;break}if(U===E-2)W=4;else{var G=void 0;for(G=E-1;G>=U&&G!==U;G--){var ie=(G===E?0:Math.abs(n[G]))+(G===U+1?0:Math.abs(n[G-1]));if(Math.abs(this.s[G])<=re+ne*ie){this.s[G]=0;break}}G===U?W=3:G===E-1?W=1:(W=2,U=G)}switch(U++,W){case 1:var K=n[E-2];n[E-2]=0;for(var q=E-2;q>=U;q--){var J=r.hypot(this.s[q],K),Y=this.s[q]/J,ae=K/J;if(this.s[q]=J,q!==U&&(K=-ae*n[q-1],n[q-1]=Y*n[q-1]),o)for(var X=0;X=this.s[U+1]);){var De=this.s[U];if(this.s[U]=this.s[U+1],this.s[U+1]=De,o&&UMath.abs(t)?(n=t/e,n=Math.abs(e)*Math.sqrt(1+n*n)):t==0?n=0:(n=e/t,n=Math.abs(t)*Math.sqrt(1+n*n)),n},e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(D()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(D()):n.coseBase=r(n.layoutBase)})(e,function(e){return(()=>{var t={45:((e,t,n)=>{var r={};r.layoutBase=n(551),r.CoSEConstants=n(806),r.CoSEEdge=n(767),r.CoSEGraph=n(880),r.CoSEGraphManager=n(578),r.CoSELayout=n(765),r.CoSENode=n(991),r.ConstraintHandler=n(902),e.exports=r}),806:((e,t,n)=>{var r=n(551).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,e.exports=i}),767:((e,t,n)=>{var r=n(551).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),880:((e,t,n)=>{var r=n(551).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),578:((e,t,n)=>{var r=n(551).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),765:((e,t,n)=>{var r=n(551).FDLayout,i=n(578),a=n(880),o=n(991),s=n(767),c=n(806),l=n(902),u=n(551).FDLayoutConstants,d=n(551).LayoutConstants,f=n(551).Point,p=n(551).PointD,m=n(551).DimensionD,h=n(551).Layout,g=n(551).Integer,_=n(551).IGeometry,v=n(551).LGraph,y=n(551).Transform,b=n(551).LinkedList;function x(){r.call(this),this.toBeTiled={},this.constraints={}}for(var S in x.prototype=Object.create(r.prototype),r)x[S]=r[S];x.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},x.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},x.prototype.newNode=function(e){return new o(this.graphManager,e)},x.prototype.newEdge=function(e){return new s(null,null,e)},x.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(c.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=c.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=u.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=u.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=u.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},x.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/u.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},x.prototype.layout=function(){return d.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},x.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(c.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return Object.keys(this.constraints).length>0&&(l.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),c.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},x.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%u.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),c.PURE_INCREMENTAL?this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),c.PURE_INCREMENTAL?this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},x.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n0&&this.updateDisplacements();for(var n=0;n0&&(r.fixedNodeWeight=a)}}if(this.constraints.relativePlacementConstraint){var o=new Map,s=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(t){e.fixedNodesOnHorizontal.add(t),e.fixedNodesOnVertical.add(t)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var l=this.constraints.alignmentConstraint.vertical,n=0;n=2*e.length/3;r--)t=Math.floor(Math.random()*(r+1)),n=e[r],e[r]=e[t],e[t]=n;return e},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(t){if(t.left){var n=o.has(t.left)?o.get(t.left):t.left,r=o.has(t.right)?o.get(t.right):t.right;e.nodesInRelativeHorizontal.includes(n)||(e.nodesInRelativeHorizontal.push(n),e.nodeToRelativeConstraintMapHorizontal.set(n,[]),e.dummyToNodeForVerticalAlignment.has(n)?e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(n)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(n).getCenterX())),e.nodesInRelativeHorizontal.includes(r)||(e.nodesInRelativeHorizontal.push(r),e.nodeToRelativeConstraintMapHorizontal.set(r,[]),e.dummyToNodeForVerticalAlignment.has(r)?e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(r).getCenterX())),e.nodeToRelativeConstraintMapHorizontal.get(n).push({right:r,gap:t.gap}),e.nodeToRelativeConstraintMapHorizontal.get(r).push({left:n,gap:t.gap})}else{var i=s.has(t.top)?s.get(t.top):t.top,a=s.has(t.bottom)?s.get(t.bottom):t.bottom;e.nodesInRelativeVertical.includes(i)||(e.nodesInRelativeVertical.push(i),e.nodeToRelativeConstraintMapVertical.set(i,[]),e.dummyToNodeForHorizontalAlignment.has(i)?e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(i)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(i).getCenterY())),e.nodesInRelativeVertical.includes(a)||(e.nodesInRelativeVertical.push(a),e.nodeToRelativeConstraintMapVertical.set(a,[]),e.dummyToNodeForHorizontalAlignment.has(a)?e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(a)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(a).getCenterY())),e.nodeToRelativeConstraintMapVertical.get(i).push({bottom:a,gap:t.gap}),e.nodeToRelativeConstraintMapVertical.get(a).push({top:i,gap:t.gap})}});else{var d=new Map,f=new Map;this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var t=o.has(e.left)?o.get(e.left):e.left,n=o.has(e.right)?o.get(e.right):e.right;d.has(t)?d.get(t).push(n):d.set(t,[n]),d.has(n)?d.get(n).push(t):d.set(n,[t])}else{var r=s.has(e.top)?s.get(e.top):e.top,i=s.has(e.bottom)?s.get(e.bottom):e.bottom;f.has(r)?f.get(r).push(i):f.set(r,[i]),f.has(i)?f.get(i).push(r):f.set(i,[r])}});var p=function(e,t){var n=[],r=[],i=new b,a=new Set,o=0;return e.forEach(function(s,c){if(!a.has(c)){n[o]=[],r[o]=!1;var l=c;for(i.push(l),a.add(l),n[o].push(l);i.length!=0;)l=i.shift(),t.has(l)&&(r[o]=!0),e.get(l).forEach(function(e){a.has(e)||(i.push(e),a.add(e),n[o].push(e))});o++}}),{components:n,isFixed:r}},m=p(d,e.fixedNodesOnHorizontal);this.componentsOnHorizontal=m.components,this.fixedComponentsOnHorizontal=m.isFixed;var h=p(f,e.fixedNodesOnVertical);this.componentsOnVertical=h.components,this.fixedComponentsOnVertical=h.isFixed}}},x.prototype.updateDisplacements=function(){var e=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(t){var n=e.idToNodeMap.get(t.nodeId);n.displacementX=0,n.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var t=this.constraints.alignmentConstraint.vertical,n=0;n1){var s;for(s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(d.WORLD_CENTER_X-o.x/2,d.WORLD_CENTER_Y-o.y/2))},x.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),c.DEFAULT_RADIAL_SEPARATION);x.branchRadialLayout(t,null,0,359,0,r);var i=v.calculateBounds(e),a=new y;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var g=h[0];h.splice(0,1);var v=u.indexOf(g);v>=0&&u.splice(v,1),p--,d--}m=t==null?0:(u.indexOf(h[0])+1)%p;for(var y=Math.abs(r-n)/d,b=m;f!=d;b=++b%p){var S=u[b].getOtherEnd(e);if(S!=t){var C=(n+f*y)%360,w=(C+y)%360;x.branchRadialLayout(S,e,C,w,i+a,a),f++}}},x.maxDiagonalInTree=function(e){for(var t=g.MIN_VALUE,n=0;nt&&(t=r)}return t},x.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},x.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;li?(r.rect.x-=(r.labelWidth-i)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-i)/2):r.labelPosHorizontal==`right`&&r.setWidth(i+r.labelWidth)),r.labelHeight&&(r.labelPosVertical==`top`?(r.rect.y-=r.labelHeight,r.setHeight(a+r.labelHeight),r.labelMarginTop=r.labelHeight):r.labelPosVertical==`center`&&r.labelHeight>a?(r.rect.y-=(r.labelHeight-a)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-a)/2):r.labelPosVertical==`bottom`&&r.setHeight(a+r.labelHeight))}})},x.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop,a=t.labelMarginLeft,o=t.labelMarginTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i,a,o)}},x.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop,o=r.labelMarginLeft,s=r.labelMarginTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a,o,s)})},x.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},x.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;ru&&(u=f.rect.height)}n+=u+e.verticalPadding}},x.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];if(n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height,i.setCenter(n.tiledMemberPack[r].centerX,n.tiledMemberPack[r].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,c.NODE_DIMENSIONS_INCLUDE_LABELS){var a=i.rect.width,o=i.rect.height;i.labelWidth&&(i.labelPosHorizontal==`left`?(i.rect.x-=i.labelWidth,i.setWidth(a+i.labelWidth),i.labelMarginLeft=i.labelWidth):i.labelPosHorizontal==`center`&&i.labelWidth>a?(i.rect.x-=(i.labelWidth-a)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-a)/2):i.labelPosHorizontal==`right`&&i.setWidth(a+i.labelWidth)),i.labelHeight&&(i.labelPosVertical==`top`?(i.rect.y-=i.labelHeight,i.setHeight(o+i.labelHeight),i.labelMarginTop=i.labelHeight):i.labelPosVertical==`center`&&i.labelHeight>o?(i.rect.y-=(i.labelHeight-o)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-o)/2):i.labelPosVertical==`bottom`&&i.setHeight(o+i.labelHeight))}})},x.prototype.tileNodes=function(e,t){var n=this.tileNodesByFavoringDim(e,t,!0),r=this.tileNodesByFavoringDim(e,t,!1),i=this.getOrgRatio(n);return this.getOrgRatio(r)s&&(s=e.getWidth())});var l=a/i,u=o/i,d=(n-r)**2+4*(l+r)*(u+n)*i,f=(r-n+Math.sqrt(d))/(2*(l+r)),p;t?(p=Math.ceil(f),p==f&&p++):p=Math.floor(f);var m=p*(l+r)-r;return s>m&&(m=s),m+=r*2,m},x.prototype.tileNodesByFavoringDim=function(e,t,n){var r=c.TILING_PADDING_VERTICAL,i=c.TILING_PADDING_HORIZONTAL,a=c.TILING_COMPARE_BY,o={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:r,horizontalPadding:i,centerX:0,centerY:0};a&&(o.idealRowWidth=this.calcIdealRowWidth(e,n));var s=function(e){return e.rect.width*e.rect.height},l=function(e,t){return s(t)-s(e)};e.sort(function(e,t){var n=l;return o.idealRowWidth?(n=a,n(e.id,t.id)):n(e,t)});for(var u=0,d=0,f=0;f0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},x.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},x.prototype.canAddHorizontal=function(e,t,n){if(e.idealRowWidth){var r=e.rows.length-1;return e.rowWidth[r]+t+e.horizontalPadding<=e.idealRowWidth}var i=this.getShortestRowIndex(e);if(i<0)return!0;var a=e.rowWidth[i];if(a+e.horizontalPadding+t<=e.width)return!0;var o=0;e.rowHeight[i]0&&(o=n+e.verticalPadding-e.rowHeight[i]);var s=e.width-a>=t+e.horizontalPadding?(e.height+o)/(a+t+e.horizontalPadding):(e.height+o)/e.width;o=n+e.verticalPadding;var c=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var d=i;d<=a;d++)l[0]+=this.grid[d][o-1].length+this.grid[d][o].length-1;if(a0)for(var d=o;d<=s;d++)l[3]+=this.grid[i-1][d].length+this.grid[i][d].length-1;for(var f=g.MAX_VALUE,p,m,h=0;h{var r=n(551).FDLayoutNode,i=n(551).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i{function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0){var a=0;r.forEach(function(e){t==`horizontal`?(f.set(e,c.has(e)?l[c.get(e)]:i.get(e)),a+=f.get(e)):(f.set(e,c.has(e)?u[c.get(e)]:i.get(e)),a+=f.get(e))}),a/=r.length,e.forEach(function(e){n.has(e)||f.set(e,a)})}else{var o=0;e.forEach(function(e){t==`horizontal`?o+=c.has(e)?l[c.get(e)]:i.get(e):o+=c.has(e)?u[c.get(e)]:i.get(e)}),o/=e.length,e.forEach(function(e){f.set(e,o)})}});for(var h=function(){var r=m.shift();e.get(r).forEach(function(e){if(f.get(e.id)o&&(o=v),ys&&(s=y)}}catch(e){p=!0,m=e}finally{try{!d&&h.return&&h.return()}finally{if(p)throw m}}var b=(r+o)/2-(a+s)/2,x=!0,S=!1,C=void 0;try{for(var w=e[Symbol.iterator](),T;!(x=(T=w.next()).done);x=!0){var E=T.value;f.set(E,f.get(E)+b)}}catch(e){S=!0,C=e}finally{try{!x&&w.return&&w.return()}finally{if(S)throw C}}})}return f},v=function(e){var t=0,n=0,r=0,i=0;if(e.forEach(function(e){e.left?l[c.get(e.left)]-l[c.get(e.right)]>=0?t++:n++:u[c.get(e.top)]-u[c.get(e.bottom)]>=0?r++:i++}),t>n&&r>i)for(var a=0;an)for(var o=0;oi)for(var s=0;s1)t.fixedNodeConstraint.forEach(function(e,t){S[t]=[e.position.x,e.position.y],C[t]=[l[c.get(e.nodeId)],u[c.get(e.nodeId)]]}),w=!0;else if(t.alignmentConstraint)(function(){var e=0;if(t.alignmentConstraint.vertical){for(var n=t.alignmentConstraint.vertical,i=function(t){var i=new Set;n[t].forEach(function(e){i.add(e)});var a=new Set([].concat(r(i)).filter(function(e){return E.has(e)})),o=void 0;o=a.size>0?l[c.get(a.values().next().value)]:g(i).x,n[t].forEach(function(t){S[e]=[o,u[c.get(t)]],C[e]=[l[c.get(t)],u[c.get(t)]],e++})},a=0;a0?l[c.get(i.values().next().value)]:g(n).y,o[t].forEach(function(t){S[e]=[l[c.get(t)],a],C[e]=[l[c.get(t)],u[c.get(t)]],e++})},d=0;dA&&(A=k[M].length,j=M);if(A0){var W={x:0,y:0};t.fixedNodeConstraint.forEach(function(e,t){var n={x:l[c.get(e.nodeId)],y:u[c.get(e.nodeId)]},r=e.position,i=h(r,n);W.x+=i.x,W.y+=i.y}),W.x/=t.fixedNodeConstraint.length,W.y/=t.fixedNodeConstraint.length,l.forEach(function(e,t){l[t]+=W.x}),u.forEach(function(e,t){u[t]+=W.y}),t.fixedNodeConstraint.forEach(function(e){l[c.get(e.nodeId)]=e.position.x,u[c.get(e.nodeId)]=e.position.y})}if(t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var G=t.alignmentConstraint.vertical,ie=function(e){var t=new Set;G[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return E.has(e)})),i=void 0;i=n.size>0?l[c.get(n.values().next().value)]:g(t).x,t.forEach(function(e){E.has(e)||(l[c.get(e)]=i)})},K=0;K0?u[c.get(n.values().next().value)]:g(t).y,t.forEach(function(e){E.has(e)||(u[c.get(e)]=i)})},Y=0;Y{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(45)})()})})),k=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(O()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeFcose=r(O()):n.cytoscapeFcose=r(n.coseBase)})(e,function(e){return(()=>{var t={658:(e=>{e.exports=Object.assign==null?function(e){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}:Object.assign.bind(Object)}),548:((e,t,n)=>{var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),i=n(140).layoutBase.LinkedList,a={};a.getTopMostNodes=function(e){for(var t={},n=0;n0&&l.merge(e)});for(var u=0;u1){l=s[0],u=l.connectedEdges().length,s.forEach(function(e){e.connectedEdges().length0&&r.set(`dummy`+(r.size+1),p),m},a.relocateComponent=function(e,t,n){if(!n.fixedNodeConstraint){var i=1/0,a=-1/0,o=1/0,s=-1/0;if(n.quality==`draft`){var c=!0,l=!1,u=void 0;try{for(var d=t.nodeIndexes[Symbol.iterator](),f;!(c=(f=d.next()).done);c=!0){var p=f.value,m=r(p,2),h=m[0],g=m[1],_=n.cy.getElementById(h);if(_){var v=_.boundingBox(),y=t.xCoords[g]-v.w/2,b=t.xCoords[g]+v.w/2,x=t.yCoords[g]-v.h/2,S=t.yCoords[g]+v.h/2;ya&&(a=b),xs&&(s=S)}}}catch(e){l=!0,u=e}finally{try{!c&&d.return&&d.return()}finally{if(l)throw u}}var C=e.x-(a+i)/2,w=e.y-(s+o)/2;t.xCoords=t.xCoords.map(function(e){return e+C}),t.yCoords=t.yCoords.map(function(e){return e+w})}else{Object.keys(t).forEach(function(e){var n=t[e],r=n.getRect().x,c=n.getRect().x+n.getRect().width,l=n.getRect().y,u=n.getRect().y+n.getRect().height;ra&&(a=c),ls&&(s=u)});var T=e.x-(a+i)/2,E=e.y-(s+o)/2;Object.keys(t).forEach(function(e){var n=t[e];n.setCenter(n.getCenterX()+T,n.getCenterY()+E)})}}},a.calcBoundingBox=function(e,t,n,r){for(var i=2**53-1,a=-(2**53-1),o=2**53-1,s=-(2**53-1),c=void 0,l=void 0,u=void 0,d=void 0,f=e.descendants().not(`:parent`),p=f.length,m=0;mc&&(i=c),au&&(o=u),s{var r=n(548),i=n(140).CoSELayout,a=n(140).CoSENode,o=n(140).layoutBase.PointD,s=n(140).layoutBase.DimensionD,c=n(140).layoutBase.LayoutConstants,l=n(140).layoutBase.FDLayoutConstants,u=n(140).CoSEConstants;e.exports={coseLayout:function(e,t){var n=e.cy,d=e.eles,f=d.nodes(),p=d.edges(),m=void 0,h=void 0,g=void 0,_={};e.randomize&&(m=t.nodeIndexes,h=t.xCoords,g=t.yCoords);var v=function(e){return typeof e==`function`},y=function(e,t){return v(e)?e(t):e},b=r.calcParentsWithoutChildren(n,d),x=function e(t,n,i,c){for(var l=n.length,u=0;u0){var S=void 0;S=i.getGraphManager().add(i.newGraph(),p),e(S,f,i,c)}}},S=function(t,n,r){for(var i=0,a=0,o=0;o0?u.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=i/a:v(e.idealEdgeLength)?u.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=50:u.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=e.idealEdgeLength,u.MIN_REPULSION_DIST=l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10,u.DEFAULT_RADIAL_SEPARATION=l.DEFAULT_EDGE_LENGTH)},C=function(e,t){t.fixedNodeConstraint&&(e.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(e.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(e.constraints.relativePlacementConstraint=t.relativePlacementConstraint)};e.nestingFactor!=null&&(u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(u.DEFAULT_GRAVITY_STRENGTH=l.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(u.MAX_ITERATIONS=l.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(u.DEFAULT_GRAVITY_RANGE_FACTOR=l.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(u.DEFAULT_COOLING_FACTOR_INCREMENTAL=l.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.tilingCompareBy!=null&&(u.TILING_COMPARE_BY=e.tilingCompareBy),e.quality==`proof`?c.QUALITY=2:c.QUALITY=0,u.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=!e.randomize,u.ANIMATE=l.ANIMATE=c.ANIMATE=e.animate,u.TILE=e.tile,u.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,u.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal,u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=!0,u.PURE_INCREMENTAL=!e.randomize,c.DEFAULT_UNIFORM_LEAF_NODE_SIZES=e.uniformNodeDimensions,e.step==`transformed`&&(u.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,u.ENFORCE_CONSTRAINTS=!1,u.APPLY_LAYOUT=!1),e.step==`enforced`&&(u.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,u.ENFORCE_CONSTRAINTS=!0,u.APPLY_LAYOUT=!1),e.step==`cose`&&(u.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,u.ENFORCE_CONSTRAINTS=!1,u.APPLY_LAYOUT=!0),e.step==`all`&&(e.randomize?u.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:u.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,u.ENFORCE_CONSTRAINTS=!0,u.APPLY_LAYOUT=!0),e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint?u.TREE_REDUCTION_ON_INCREMENTAL=!1:u.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new i,T=w.newGraphManager();return x(T.addRoot(),r.getTopMostNodes(f),w,e),S(w,T,p),C(w,e),w.runLayout(),_}}}),212:((e,t,n)=>{var r=function(){function e(e,t){for(var n=0;n0)if(f){var p=o.getTopMostNodes(t.eles.nodes());if(l=o.connectComponents(n,t.eles,p),l.forEach(function(e){var t=e.boundingBox();u.push({x:t.x1+t.w/2,y:t.y1+t.h/2})}),t.randomize&&l.forEach(function(e){t.eles=e,i.push(s(t))}),t.quality==`default`||t.quality==`proof`){var m=n.collection();if(t.tile){var h=new Map,g=[],_=[],v=0,y={nodeIndexes:h,xCoords:g,yCoords:_},b=[];if(l.forEach(function(e,t){e.edges().length==0&&(e.nodes().forEach(function(t,n){m.merge(e.nodes()[n]),t.isParent()||(y.nodeIndexes.set(e.nodes()[n].id(),v++),y.xCoords.push(e.nodes()[0].position().x),y.yCoords.push(e.nodes()[0].position().y))}),b.push(t))}),m.length>1){var x=m.boundingBox();u.push({x:x.x1+x.w/2,y:x.y1+x.h/2}),l.push(m),i.push(y);for(var S=b.length-1;S>=0;S--)l.splice(b[S],1),i.splice(b[S],1),u.splice(b[S],1)}}l.forEach(function(e,n){t.eles=e,a.push(c(t,i[n])),o.relocateComponent(u[n],a[n],t)})}else l.forEach(function(e,n){o.relocateComponent(u[n],i[n],t)});var C=new Set;if(l.length>1){var w=[],T=r.filter(function(e){return e.css(`display`)==`none`});l.forEach(function(e,n){var r=void 0;if(t.quality==`draft`&&(r=i[n].nodeIndexes),e.nodes().not(T).length>0){var s={};s.edges=[],s.nodes=[];var c=void 0;e.nodes().not(T).forEach(function(e){if(t.quality==`draft`)if(!e.isParent())c=r.get(e.id()),s.nodes.push({x:i[n].xCoords[c]-e.boundingbox().w/2,y:i[n].yCoords[c]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else{var l=o.calcBoundingBox(e,i[n].xCoords,i[n].yCoords,r);s.nodes.push({x:l.topLeftX,y:l.topLeftY,width:l.width,height:l.height})}else a[n][e.id()]&&s.nodes.push({x:a[n][e.id()].getLeft(),y:a[n][e.id()].getTop(),width:a[n][e.id()].getWidth(),height:a[n][e.id()].getHeight()})}),e.edges().forEach(function(e){var c=e.source(),l=e.target();if(c.css(`display`)!=`none`&&l.css(`display`)!=`none`)if(t.quality==`draft`){var u=r.get(c.id()),d=r.get(l.id()),f=[],p=[];if(c.isParent()){var m=o.calcBoundingBox(c,i[n].xCoords,i[n].yCoords,r);f.push(m.topLeftX+m.width/2),f.push(m.topLeftY+m.height/2)}else f.push(i[n].xCoords[u]),f.push(i[n].yCoords[u]);if(l.isParent()){var h=o.calcBoundingBox(l,i[n].xCoords,i[n].yCoords,r);p.push(h.topLeftX+h.width/2),p.push(h.topLeftY+h.height/2)}else p.push(i[n].xCoords[d]),p.push(i[n].yCoords[d]);s.edges.push({startX:f[0],startY:f[1],endX:p[0],endY:p[1]})}else a[n][c.id()]&&a[n][l.id()]&&s.edges.push({startX:a[n][c.id()].getCenterX(),startY:a[n][c.id()].getCenterY(),endX:a[n][l.id()].getCenterX(),endY:a[n][l.id()].getCenterY()})}),s.nodes.length>0&&(w.push(s),C.add(n))}});var E=d.packComponents(w,t.randomize).shifts;if(t.quality==`draft`)i.forEach(function(e,t){var n=e.xCoords.map(function(e){return e+E[t].dx}),r=e.yCoords.map(function(e){return e+E[t].dy});e.xCoords=n,e.yCoords=r});else{var D=0;C.forEach(function(e){Object.keys(a[e]).forEach(function(t){var n=a[e][t];n.setCenter(n.getCenterX()+E[D].dx,n.getCenterY()+E[D].dy)}),D++})}}}else{var O=t.eles.boundingBox();if(u.push({x:O.x1+O.w/2,y:O.y1+O.h/2}),t.randomize){var k=s(t);i.push(k)}t.quality==`default`||t.quality==`proof`?(a.push(c(t,i[0])),o.relocateComponent(u[0],a[0],t)):o.relocateComponent(u[0],i[0],t)}var A=function(e,n){if(t.quality==`default`||t.quality==`proof`){typeof e==`number`&&(e=n);var r=void 0,o=void 0,s=e.data(`id`);return a.forEach(function(e){s in e&&(r={x:e[s].getRect().getCenterX(),y:e[s].getRect().getCenterY()},o=e[s])}),t.nodeDimensionsIncludeLabels&&(o.labelWidth&&(o.labelPosHorizontal==`left`?r.x+=o.labelWidth/2:o.labelPosHorizontal==`right`&&(r.x-=o.labelWidth/2)),o.labelHeight&&(o.labelPosVertical==`top`?r.y+=o.labelHeight/2:o.labelPosVertical==`bottom`&&(r.y-=o.labelHeight/2))),r??={x:e.position(`x`),y:e.position(`y`)},{x:r.x,y:r.y}}else{var c=void 0;return i.forEach(function(t){var n=t.nodeIndexes.get(e.id());n!=null&&(c={x:t.xCoords[n],y:t.yCoords[n]})}),c??={x:e.position(`x`),y:e.position(`y`)},{x:c.x,y:c.y}}};if(t.quality==`default`||t.quality==`proof`||t.randomize){var j=o.calcParentsWithoutChildren(n,r),M=r.filter(function(e){return e.css(`display`)==`none`});t.eles=r.not(M),r.nodes().not(`:parent`).not(M).layoutPositions(e,t,A),j.length>0&&j.forEach(function(e){e.position(A(e))})}else console.log(`If randomize option is set to false, then quality option must be 'default' or 'proof'.`)}}]),e}()}),657:((e,t,n)=>{var r=n(548),i=n(140).layoutBase.Matrix,a=n(140).layoutBase.SVD;e.exports={spectralLayout:function(e){var t=e.cy,n=e.eles,o=n.nodes(),s=n.nodes(`:parent`),c=new Map,l=new Map,u=new Map,d=[],f=[],p=[],m=[],h=[],g=[],_=[],v=[],y=void 0,b=1e8,x=1e-9,S=e.piTol,C=e.samplingType,w=e.nodeSeparation,T=void 0,E=function(){for(var e=0,t=0,n=!1;t=i;){o=r[i++];for(var m=d[o],_=0;_u&&(u=h[x],f=x)}return f},O=function(e){var t=void 0;if(e){t=Math.floor(Math.random()*y);for(var n=0;n=1)break;u=l}for(var h=0;h=1)break;u=l}for(var b=0;b0&&(r.isParent()?d[t].push(u.get(r.id())):d[t].push(r.id()))})});var B=function(e){var n=l.get(e),r=void 0;c.get(e).forEach(function(i){r=t.getElementById(i).isParent()?u.get(i):i,d[n].push(r),d[l.get(r)].push(e)})},V=!0,ee=!1,te=void 0;try{for(var H=c.keys()[Symbol.iterator](),ne;!(V=(ne=H.next()).done);V=!0){var re=ne.value;B(re)}}catch(e){ee=!0,te=e}finally{try{!V&&H.return&&H.return()}finally{if(ee)throw te}}y=l.size;var U=void 0;if(y>2){T=y{var r=n(212),i=function(e){e&&e(`layout`,`fcose`,r)};typeof cytoscape<`u`&&i(cytoscape),e.exports=i}),140:(t=>{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(579)})()})}))(),1),A={L:`left`,R:`right`,T:`top`,B:`bottom`},j={L:r(e=>`${e},${e/2} 0,${e} 0,0`,`L`),R:r(e=>`0,${e/2} ${e},0 ${e},${e}`,`R`),T:r(e=>`0,0 ${e},0 ${e/2},${e}`,`T`),B:r(e=>`${e/2},0 ${e},${e} 0,${e}`,`B`)},M={L:r((e,t)=>e-t+2,`L`),R:r((e,t)=>e-2,`R`),T:r((e,t)=>e-t+2,`T`),B:r((e,t)=>e-2,`B`)},N=r(function(e){return F(e)?e===`L`?`R`:`L`:e===`T`?`B`:`T`},`getOppositeArchitectureDirection`),P=r(function(e){let t=e;return t===`L`||t===`R`||t===`T`||t===`B`},`isArchitectureDirection`),F=r(function(e){let t=e;return t===`L`||t===`R`},`isArchitectureDirectionX`),I=r(function(e){let t=e;return t===`T`||t===`B`},`isArchitectureDirectionY`),L=r(function(e,t){let n=F(e)&&I(t),r=I(e)&&F(t);return n||r},`isArchitectureDirectionXY`),R=r(function(e){let t=e[0],n=e[1],r=F(t)&&I(n),i=I(t)&&F(n);return r||i},`isArchitecturePairXY`),z=r(function(e){return e!==`LL`&&e!==`RR`&&e!==`TT`&&e!==`BB`},`isValidArchitectureDirectionPair`),B=r(function(e,t){let n=`${e}${t}`;return z(n)?n:void 0},`getArchitectureDirectionPair`),V=r(function([e,t],n){let r=n[0],i=n[1];return F(r)?I(i)?[e+(r===`L`?-1:1),t+(i===`T`?1:-1)]:[e+(r===`L`?-1:1),t]:F(i)?[e+(i===`L`?1:-1),t+(r===`T`?1:-1)]:[e,t+(r===`T`?1:-1)]},`shiftPositionByArchitectureDirectionPair`),ee=r(function(e){return e===`LT`||e===`TL`?[1,1]:e===`BL`||e===`LB`?[1,-1]:e===`BR`||e===`RB`?[-1,-1]:[-1,1]},`getArchitectureDirectionXYFactors`),te=r(function(e,t){return L(e,t)?`bend`:F(e)?`horizontal`:`vertical`},`getArchitectureDirectionAlignment`),H=r(function(e){return e.type===`service`},`isArchitectureService`),ne=r(function(e){return e.type===`junction`},`isArchitectureJunction`),re=r(e=>e.data(),`edgeData`),U=r(e=>e.data(),`nodeData`),W=m.architecture,G=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId=``,this.setAccTitle=l,this.getAccTitle=h,this.setDiagramTitle=u,this.getDiagramTitle=o,this.getAccDescription=d,this.setAccDescription=a,this.clear()}static{r(this,`ArchitectureDB`)}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId=``,f()}addService({id:e,icon:t,in:n,title:r,iconText:i}){if(this.registeredIds[e]!==void 0)throw Error(`The service id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw Error(`The service [${e}] cannot be placed within itself`);if(this.registeredIds[n]===void 0)throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[n]===`node`)throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds[e]=`node`,this.nodes[e]={id:e,type:`service`,icon:t,iconText:i,title:r,edges:[],in:n}}getServices(){return Object.values(this.nodes).filter(H)}addJunction({id:e,in:t}){if(this.registeredIds[e]!==void 0)throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds[e]}`);if(t!==void 0){if(e===t)throw Error(`The junction [${e}] cannot be placed within itself`);if(this.registeredIds[t]===void 0)throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[t]===`node`)throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds[e]=`node`,this.nodes[e]={id:e,type:`junction`,edges:[],in:t}}getJunctions(){return Object.values(this.nodes).filter(ne)}getNodes(){return Object.values(this.nodes)}getNode(e){return this.nodes[e]??null}addGroup({id:e,icon:t,in:n,title:r}){if(this.registeredIds?.[e]!==void 0)throw Error(`The group id [${e}] is already in use by another ${this.registeredIds[e]}`);if(n!==void 0){if(e===n)throw Error(`The group [${e}] cannot be placed within itself`);if(this.registeredIds?.[n]===void 0)throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[n]===`node`)throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds[e]=`group`,this.groups[e]={id:e,icon:t,title:r,in:n}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:e,rhsId:t,lhsDir:n,rhsDir:r,lhsInto:i,rhsInto:a,lhsGroup:o,rhsGroup:s,title:c}){if(!P(n))throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);if(!P(r))throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(this.nodes[e]===void 0&&this.groups[e]===void 0)throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[t]===void 0&&this.groups[t]===void 0)throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes[e].in,u=this.nodes[t].in;if(o&&l&&u&&l==u)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&l&&u&&l==u)throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let d={lhsId:e,lhsDir:n,lhsInto:i,lhsGroup:o,rhsId:t,rhsDir:r,rhsInto:a,rhsGroup:s,title:c};this.edges.push(d),this.nodes[e]&&this.nodes[t]&&(this.nodes[e].edges.push(this.edges[this.edges.length-1]),this.nodes[t].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){let e={},t=Object.entries(this.nodes).reduce((t,[n,r])=>(t[n]=r.edges.reduce((t,r)=>{let i=this.getNode(r.lhsId)?.in,a=this.getNode(r.rhsId)?.in;if(i&&a&&i!==a){let t=te(r.lhsDir,r.rhsDir);t!==`bend`&&(e[i]??={},e[i][a]=t,e[a]??={},e[a][i]=t)}if(r.lhsId===n){let e=B(r.lhsDir,r.rhsDir);e&&(t[e]=r.rhsId)}else{let e=B(r.rhsDir,r.lhsDir);e&&(t[e]=r.lhsId)}return t},{}),t),{}),n=Object.keys(t)[0],i={[n]:1},a=Object.keys(t).reduce((e,t)=>t===n?e:{...e,[t]:1},{}),o=r(e=>{let n={[e]:[0,0]},r=[e];for(;r.length>0;){let e=r.shift();if(e){i[e]=1,delete a[e];let o=t[e],[s,c]=n[e];Object.entries(o).forEach(([e,t])=>{i[t]||(n[t]=V([s,c],e),r.push(t))})}}return n},`BFS`),s=[o(n)];for(;Object.keys(a).length>0;)s.push(o(Object.keys(a)[0]));this.dataStructures={adjList:t,spatialMaps:s,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}getConfig(){return _({...W,...g().architecture})}getConfigField(e){return this.getConfig()[e]}},ie=r((e,t)=>{w(e,t),e.groups.map(e=>t.addGroup(e)),e.services.map(e=>t.addService({...e,type:`service`})),e.junctions.map(e=>t.addJunction({...e,type:`junction`})),e.edges.map(e=>t.addEdge(e))},`populateDb`),K={parser:{yy:void 0},parse:r(async e=>{let t=await T(`architecture`,e);n.debug(t);let r=K.parser?.yy;if(!(r instanceof G))throw Error(`parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);ie(t,r)},`parse`)},q=r(e=>` + .edge { + stroke-width: ${e.archEdgeWidth}; + stroke: ${e.archEdgeColor}; + fill: none; + } + + .arrow { + fill: ${e.archEdgeArrowColor}; + } + + .node-bkg { + fill: none; + stroke: ${e.archGroupBorderColor}; + stroke-width: ${e.archGroupBorderWidth}; + stroke-dasharray: 8; + } + .node-icon-text { + display: flex; + align-items: center; + } + + .node-icon-text > div { + color: #fff; + margin: 1px; + height: fit-content; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + } +`,`getStyles`),J=r(e=>`${e}`,`wrapIcon`),Y={prefix:`mermaid-architecture`,height:80,width:80,icons:{database:{body:J(``)},server:{body:J(``)},disk:{body:J(``)},internet:{body:J(``)},cloud:{body:J(``)},unknown:b,blank:{body:J(``)}}},ae=r(async function(e,t,n,r){let i=n.getConfigField(`padding`),a=n.getConfigField(`iconSize`),o=a/2,s=a/6,c=s/2;await Promise.all(t.edges().map(async t=>{let{source:a,sourceDir:l,sourceArrow:u,sourceGroup:d,target:f,targetDir:m,targetArrow:h,targetGroup:g,label:_}=re(t),{x:y,y:b}=t[0].sourceEndpoint(),{x,y:C}=t[0].midpoint(),{x:w,y:T}=t[0].targetEndpoint(),E=i+4;if(d&&(F(l)?y+=l===`L`?-E:E:b+=l===`T`?-E:E+18),g&&(F(m)?w+=m===`L`?-E:E:T+=m===`T`?-E:E+18),!d&&n.getNode(a)?.type===`junction`&&(F(l)?y+=l===`L`?o:-o:b+=l===`T`?o:-o),!g&&n.getNode(f)?.type===`junction`&&(F(m)?w+=m===`L`?o:-o:T+=m===`T`?o:-o),t[0]._private.rscratch){let t=e.insert(`g`);if(t.insert(`path`).attr(`d`,`M ${y},${b} L ${x},${C} L${w},${T} `).attr(`class`,`edge`).attr(`id`,`${r}-${v(a,f,{prefix:`L`})}`),u){let e=F(l)?M[l](y,s):y-c,n=I(l)?M[l](b,s):b-c;t.insert(`polygon`).attr(`points`,j[l](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(h){let e=F(m)?M[m](w,s):w-c,n=I(m)?M[m](T,s):T-c;t.insert(`polygon`).attr(`points`,j[m](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(_){let e=L(l,m)?`XY`:F(l)?`X`:`Y`,n=0;n=e===`X`?Math.abs(y-w):e===`Y`?Math.abs(b-T)/1.5:Math.abs(y-w)/2;let r=t.append(`g`);if(await S(r,_,{useHtmlLabels:!1,width:n,classes:`architecture-service-label`},p()),r.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e===`X`)r.attr(`transform`,`translate(`+x+`, `+C+`)`);else if(e===`Y`)r.attr(`transform`,`translate(`+x+`, `+C+`) rotate(-90)`);else if(e===`XY`){let e=B(l,m);if(e&&R(e)){let t=r.node().getBoundingClientRect(),[n,i]=ee(e);r.attr(`dominant-baseline`,`auto`).attr(`transform`,`rotate(${-1*n*i*45})`);let a=r.node().getBoundingClientRect();r.attr(`transform`,` + translate(${x}, ${C-t.height/2}) + translate(${n*a.width/2}, ${i*a.height/2}) + rotate(${-1*n*i*45}, 0, ${t.height/2}) + `)}}}}}))},`drawEdges`),X=r(async function(e,t,n,r){let i=n.getConfigField(`padding`)*.75,a=n.getConfigField(`fontSize`),o=n.getConfigField(`iconSize`)/2;await Promise.all(t.nodes().map(async t=>{let s=U(t);if(s.type===`group`){let{h:c,w:l,x1:u,y1:d}=t.boundingBox(),f=e.append(`rect`);f.attr(`id`,`${r}-group-${s.id}`).attr(`x`,u+o).attr(`y`,d+o).attr(`width`,l).attr(`height`,c).attr(`class`,`node-bkg`);let m=e.append(`g`),h=u,g=d;if(s.icon){let e=m.append(`g`);e.html(`${await C(s.icon,{height:i,width:i,fallbackPrefix:Y.prefix})}`),e.attr(`transform`,`translate(`+(h+o+1)+`, `+(g+o+1)+`)`),h+=i,g+=a/2-1-2}if(s.label){let e=m.append(`g`);await S(e,s.label,{useHtmlLabels:!1,width:l,classes:`architecture-service-label`},p()),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`start`).attr(`text-anchor`,`start`),e.attr(`transform`,`translate(`+(h+o+4)+`, `+(g+o+2)+`)`)}n.setElementForId(s.id,f)}}))},`drawGroups`),oe=r(async function(e,t,n,r){let i=p();for(let a of n){let n=t.append(`g`),o=e.getConfigField(`iconSize`);if(a.title){let e=n.append(`g`);await S(e,a.title,{useHtmlLabels:!1,width:o*1.5,classes:`architecture-service-label`},i),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e.attr(`transform`,`translate(`+o/2+`, `+o+`)`)}let s=n.append(`g`);if(a.icon)s.html(`${await C(a.icon,{height:o,width:o,fallbackPrefix:Y.prefix})}`);else if(a.iconText){s.html(`${await C(`blank`,{height:o,width:o,fallbackPrefix:Y.prefix})}`);let e=s.append(`g`).append(`foreignObject`).attr(`width`,o).attr(`height`,o).append(`div`).attr(`class`,`node-icon-text`).attr(`style`,`height: ${o}px;`).append(`div`).html(c(a.iconText,i)),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue(`font-size`).replace(/\D/g,``))??16;e.attr(`style`,`-webkit-line-clamp: ${Math.floor((o-2)/t)};`)}else s.append(`path`).attr(`class`,`node-bkg`).attr(`id`,`${r}-node-${a.id}`).attr(`d`,`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);n.attr(`id`,`${r}-service-${a.id}`).attr(`class`,`architecture-service`);let{width:l,height:u}=n.node().getBBox();a.width=l,a.height=u,e.setElementForId(a.id,n)}return 0},`drawServices`),Z=r(function(e,t,n,r){n.forEach(n=>{let i=t.append(`g`),a=e.getConfigField(`iconSize`);i.append(`g`).append(`rect`).attr(`id`,`${r}-node-${n.id}`).attr(`fill-opacity`,`0`).attr(`width`,a).attr(`height`,a),i.attr(`class`,`architecture-junction`);let{width:o,height:s}=i._groups[0][0].getBBox();i.width=o,i.height=s,e.setElementForId(n.id,i)})},`drawJunctions`);x([{name:Y.prefix,icons:Y}]),E.use(k.default);function se(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`service`,id:e.id,icon:e.icon,label:e.title,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-service`})})}r(se,`addServices`);function ce(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`junction`,id:e.id,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-junction`})})}r(ce,`addJunctions`);function le(e,t){t.nodes().map(t=>{let n=U(t);n.type!==`group`&&(n.x=t.position().x,n.y=t.position().y,e.getElementById(n.id).attr(`transform`,`translate(`+(n.x||0)+`,`+(n.y||0)+`)`))})}r(le,`positionNodes`);function ue(e,t){e.forEach(e=>{t.add({group:`nodes`,data:{type:`group`,id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:`node-group`})})}r(ue,`addGroups`);function de(e,t){e.forEach(e=>{let{lhsId:n,rhsId:r,lhsInto:i,lhsGroup:a,rhsInto:o,lhsDir:s,rhsDir:c,rhsGroup:l,title:u}=e,d=L(e.lhsDir,e.rhsDir)?`segments`:`straight`,f={id:`${n}-${r}`,label:u,source:n,sourceDir:s,sourceArrow:i,sourceGroup:a,sourceEndpoint:s===`L`?`0 50%`:s===`R`?`100% 50%`:s===`T`?`50% 0`:`50% 100%`,target:r,targetDir:c,targetArrow:o,targetGroup:l,targetEndpoint:c===`L`?`0 50%`:c===`R`?`100% 50%`:c===`T`?`50% 0`:`50% 100%`};t.add({group:`edges`,data:f,classes:d})})}r(de,`addEdges`);function fe(e,t,n){let i=r((e,t)=>Object.entries(e).reduce((e,[r,i])=>{let a=0,o=Object.entries(i);if(o.length===1)return e[r]=o[0][1],e;for(let i=0;i{let n={},r={};return Object.entries(t).forEach(([t,[i,a]])=>{let o=e.getNode(t)?.in??`default`;n[a]??={},n[a][o]??=[],n[a][o].push(t),r[i]??={},r[i][o]??=[],r[i][o].push(t)}),{horiz:Object.values(i(n,`horizontal`)).filter(e=>e.length>1),vert:Object.values(i(r,`vertical`)).filter(e=>e.length>1)}}).reduce(([e,t],{horiz:n,vert:r})=>[[...e,...n],[...t,...r]],[[],[]]);return{horizontal:a,vertical:o}}r(fe,`getAlignments`);function pe(e,t){let n=[],i=r(e=>`${e[0]},${e[1]}`,`posToStr`),a=r(e=>e.split(`,`).map(e=>parseInt(e)),`strToPos`);return e.forEach(e=>{let r=Object.fromEntries(Object.entries(e).map(([e,t])=>[i(t),e])),o=[i([0,0])],s={},c={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;o.length>0;){let e=o.shift();if(e){s[e]=1;let l=r[e];if(l){let u=a(e);Object.entries(c).forEach(([e,a])=>{let c=i([u[0]+a[0],u[1]+a[1]]),d=r[c];d&&!s[c]&&(o.push(c),n.push({[A[e]]:d,[A[N(e)]]:l,gap:1.5*t.getConfigField(`iconSize`)}))})}}}}),n}r(pe,`getRelativeConstraints`);function me(e,t,a,o,s,{spatialMaps:c,groupAlignments:l}){return new Promise(u=>{let d=i(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),f=E({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`straight`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`edge[label]`,style:{label:`data(label)`}},{selector:`edge.segments`,style:{"curve-style":`segments`,"segment-weights":`0`,"segment-distances":[.5],"edge-distances":`endpoints`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`node`,style:{"compound-sizing-wrt-labels":`include`}},{selector:`node[label]`,style:{"text-valign":`bottom`,"text-halign":`center`,"font-size":`${s.getConfigField(`fontSize`)}px`}},{selector:`.node-service`,style:{label:`data(label)`,width:`data(width)`,height:`data(height)`}},{selector:`.node-junction`,style:{width:`data(width)`,height:`data(height)`}},{selector:`.node-group`,style:{padding:`${s.getConfigField(`padding`)}px`}}],layout:{name:`grid`,boundingBox:{x1:0,x2:100,y1:0,y2:100}}});d.remove(),ue(a,f),se(e,f,s),ce(t,f,s),de(o,f);let p=fe(s,c,l),m=pe(c,s),h=f.layout({name:`fcose`,quality:`proof`,randomize:s.getConfigField(`randomize`),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){let[t,n]=e.connectedNodes(),{parent:r}=U(t),{parent:i}=U(n);return r===i?1.5*s.getConfigField(`iconSize`):.5*s.getConfigField(`iconSize`)},edgeElasticity(e){let[t,n]=e.connectedNodes(),{parent:r}=U(t),{parent:i}=U(n);return r===i?.45:.001},alignmentConstraint:p,relativePlacementConstraint:m});h.one(`layoutstop`,()=>{function e(e,t,n,r){let i,a,{x:o,y:s}=e,{x:c,y:l}=t;a=(r-s+(o-n)*(s-l)/(o-c))/Math.sqrt(1+((s-l)/(o-c))**2),i=Math.sqrt((r-s)**2+(n-o)**2-a**2);let u=Math.sqrt((c-o)**2+(l-s)**2);i/=u;let d=(c-o)*(r-s)-(l-s)*(n-o);switch(!0){case d>=0:d=1;break;case d<0:d=-1;break}let f=(c-o)*(n-o)+(l-s)*(r-s);switch(!0){case f>=0:f=1;break;case f<0:f=-1;break}return a=Math.abs(a)*d,i*=f,{distances:a,weights:i}}r(e,`getSegmentWeights`),f.startBatch();for(let t of Object.values(f.edges()))if(t.data?.()){let{x:n,y:r}=t.source().position(),{x:i,y:a}=t.target().position();if(n!==i&&r!==a){let n=t.sourceEndpoint(),r=t.targetEndpoint(),{sourceDir:i}=re(t),[a,o]=I(i)?[n.x,r.y]:[r.x,n.y],{weights:s,distances:c}=e(n,r,a,o);t.style(`segment-distances`,c),t.style(`segment-weights`,s)}}f.endBatch(),h.run()}),h.run(),f.ready(e=>{n.info(`Ready`,e),u(f)})})}r(me,`layoutArchitecture`);var he={parser:K,get db(){return new G},renderer:{draw:r(async(e,t,n,r)=>{let i=r.db;i.setDiagramId(t);let a=i.getServices(),o=i.getJunctions(),c=i.getGroups(),l=i.getEdges(),u=i.getDataStructures(),d=y(t),f=d.append(`g`);f.attr(`class`,`architecture-edges`);let p=d.append(`g`);p.attr(`class`,`architecture-services`);let m=d.append(`g`);m.attr(`class`,`architecture-groups`),await oe(i,p,a,t),Z(i,p,o,t);let h=await me(a,o,c,l,i,u);await ae(f,h,i,t),await X(m,h,i,t),le(i,h),s(void 0,d,i.getConfigField(`padding`),i.getConfigField(`useMaxWidth`))},`draw`)},styles:q};export{he as diagram}; \ No newline at end of file diff --git a/webui/assets/array-BwJyW1Dp.js b/webui/assets/array-BwJyW1Dp.js new file mode 100644 index 0000000000000000000000000000000000000000..b0a084ae108e292043578248eaece9c98a4ce769 --- /dev/null +++ b/webui/assets/array-BwJyW1Dp.js @@ -0,0 +1 @@ +Array.prototype.slice;function e(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}export{e as t}; \ No newline at end of file diff --git a/webui/assets/auth-B-i69M-u.js b/webui/assets/auth-B-i69M-u.js new file mode 100644 index 0000000000000000000000000000000000000000..7f9bb7c8574c47cfc3c87338827c2cc8fa970de1 --- /dev/null +++ b/webui/assets/auth-B-i69M-u.js @@ -0,0 +1 @@ +import{pr as e}from"./index-Cl8-DFW_.js";async function t(){let e=await fetch(`/api/auth/status`);if(!e.ok)throw Error(`Failed to fetch auth status`);return e.json()}async function n(e,t){let n=await fetch(`/api/auth/login`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({username:e,password:t})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error||`Login failed`)}return(await n.json()).token}async function r(t,n){return e(`/api/auth/setup`,{method:`POST`,body:JSON.stringify({username:t,password:n})})}async function i(t,n){return e(`/api/auth/change-password`,{method:`POST`,body:JSON.stringify({currentPassword:t,newPassword:n})})}async function a(t,n){return e(`/api/auth/change-username`,{method:`POST`,body:JSON.stringify({currentPassword:t,newUsername:n})})}async function o(){return e(`/api/auth/password`,{method:`DELETE`})}export{o as a,n as i,a as n,r as o,t as r,i as t}; \ No newline at end of file diff --git a/webui/assets/azcli-CvWhls1o.js b/webui/assets/azcli-CvWhls1o.js new file mode 100644 index 0000000000000000000000000000000000000000..44652d045438fa6ffbd53df430ef2b3d8e016fb7 --- /dev/null +++ b/webui/assets/azcli-CvWhls1o.js @@ -0,0 +1 @@ +var e={comments:{lineComment:`#`}},t={defaultToken:`keyword`,ignoreCase:!0,tokenPostfix:`.azcli`,str:/[^#\s]/,tokenizer:{root:[{include:`@comment`},[/\s-+@str*\s*/,{cases:{"@eos":{token:`key.identifier`,next:`@popall`},"@default":{token:`key.identifier`,next:`@type`}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:`key.identifier`,next:`@popall`},"@default":{token:`key.identifier`,next:`@type`}}}]],type:[{include:`@comment`},[/-+@str*\s*/,{cases:{"@eos":{token:`key.identifier`,next:`@popall`},"@default":`key.identifier`}}],[/@str+\s*/,{cases:{"@eos":{token:`string`,next:`@popall`},"@default":`string`}}]],comment:[[/#.*$/,{cases:{"@eos":{token:`comment`,next:`@popall`}}}]]}};export{e as conf,t as language}; \ No newline at end of file diff --git a/webui/assets/bat-DIzIZRPr.js b/webui/assets/bat-DIzIZRPr.js new file mode 100644 index 0000000000000000000000000000000000000000..be484792bcff611d2ef3da6202ecc65ad34c0b02 --- /dev/null +++ b/webui/assets/bat-DIzIZRPr.js @@ -0,0 +1 @@ +var e={comments:{lineComment:`REM`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}],surroundingPairs:[{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`}],folding:{markers:{start:RegExp(`^\\s*(::\\s*|REM\\s+)#region`),end:RegExp(`^\\s*(::\\s*|REM\\s+)#endregion`)}}},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.bat`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>`\\b${e}\\b`)(`[_a-zA-Z][_a-zA-Z0-9]*`),t=[`targetScope`,`resource`,`module`,`param`,`var`,`output`,`for`,`in`,`if`,`existing`],n=[`true`,`false`,`null`],r=`[ \\t\\r\\n]`,i=`[0-9]+`,a={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`'`,close:`'`},{open:`'''`,close:`'''`}],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`'''`,close:`'''`,notIn:[`string`,`comment`]}],autoCloseBefore:`:.,=}])' + `,indentationRules:{increaseIndentPattern:RegExp(`^((?!\\/\\/).)*(\\{[^}"'\`]*|\\([^)"'\`]*|\\[[^\\]"'\`]*)$`),decreaseIndentPattern:RegExp(`^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$`)}},o={defaultToken:``,tokenPostfix:`.bicep`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],symbols:/[=>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),a.push(h.yytext),o.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:r(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:r(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:r(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:r(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:r(function(){return this._more=!0,this},`more`),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:r(function(e){this.unput(this.match.slice(e))},`less`),pastInput:r(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:r(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:r(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:r(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:r(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:r(function(){return this.next()||this.lex()},`lex`),begin:r(function(e){this.conditionStack.push(e)},`begin`),popState:r(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:r(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:r(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:r(function(e){this.begin(e)},`pushState`),stateStackSize:r(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:r(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return r(v,`Parser`),v.prototype=_,_.Parser=v,new v})();E.parser=E;var D=E,O=new Map,k=[],A=new Map,j=`color`,M=`fill`,ee=`bgFill`,te=`,`,ne=c(),N=new Map,re=``,ie=r(e=>d.sanitizeText(e,ne),`sanitizeText`),ae=r(function(e,t=``){let n=N.get(e);n||(n={id:e,styles:[],textStyles:[]},N.set(e,n)),t?.split(te).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(j).exec(e)){let e=t.replace(M,ee).replace(j,M);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),oe=r(function(e,t=``){let n=O.get(e);t!=null&&(n.styles=t.split(te))},`addStyle2Node`),se=r(function(e,t){e.split(`,`).forEach(function(e){let n=O.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},O.set(t,n)}n.classes||=[],n.classes.push(t)})},`setCssClass`),ce=r((e,r)=>{let i=e.flat(),a=[],o=i.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of i){if(typeof o==`number`&&o>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>o&&n.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${o}`),e.label&&=ie(e.label),e.type===`classDef`){ae(e.id,e.css);continue}if(e.type===`applyClass`){se(e.id,e?.styleClass??``);continue}if(e.type===`applyStyles`){e?.stylesStr&&oe(e.id,e?.stylesStr);continue}if(e.type===`column-setting`)r.columns=e.columns??-1;else if(e.type===`edge`){let t=(A.get(e.id)??0)+1;A.set(e.id,t),e.id=t+`-`+e.id,k.push(e)}else{e.label||(e.type===`composite`?e.label=``:e.label=e.id);let n=O.get(e.id);if(n===void 0?O.set(e.id,e):(e.type!==`na`&&(n.type=e.type),e.label!==e.id&&(n.label=e.label)),e.children&&ce(e.children,e),e.type===`space`){let n=e.width??1;for(let r=0;r{n.debug(`Clear called`),s(),F={id:`root`,type:`composite`,children:[],columns:-1},O=new Map([[`root`,F]]),P=[],N=new Map,k=[],A=new Map,re=``},`clear`);function ue(e){switch(n.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return n.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}r(ue,`typeStr2Type`);function de(e){switch(n.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}r(de,`edgeTypeStr2Type`);function fe(e){switch(e.replace(/^[\s-]+|[\s-]+$/g,``)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}r(fe,`edgeStrToEdgeData`);var pe=0,me={getConfig:r(()=>p().block,`getConfig`),typeStr2Type:ue,edgeTypeStr2Type:de,edgeStrToEdgeData:fe,getLogger:r(()=>n,`getLogger`),getBlocksFlat:r(()=>[...O.values()],`getBlocksFlat`),getBlocks:r(()=>P||[],`getBlocks`),getEdges:r(()=>k,`getEdges`),setHierarchy:r(e=>{F.children=e,ce(e,F),P=F.children},`setHierarchy`),getBlock:r(e=>O.get(e),`getBlock`),setBlock:r(e=>{O.set(e.id,e)},`setBlock`),getColumns:r(e=>{let t=O.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:r(function(){return N},`getClasses`),clear:le,generateId:r(()=>(pe++,`id-`+Math.random().toString(36).substr(2,12)+`-`+pe),`generateId`),setDiagramId:r(e=>{re=e},`setDiagramId`),getDiagramId:r(()=>re,`getDiagramId`)},I=r((e,t)=>{let n=m;return u(n(e,`r`),n(e,`g`),n(e,`b`),t)},`fade`),he=r(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span,p { + color: ${e.titleColor}; + } + + + + .label text,span,p { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePath .path { + stroke: ${e.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + /* + * This is for backward compatibility with existing code that didn't + * add a \`

\` around edge labels. + * + * TODO: We should probably remove this in a future release. + */ + p { + margin: 0; + padding: 0; + display: inline; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${e.edgeLabelBackground}; + } + + .node .cluster { + // fill: ${I(e.mainBkg,.5)}; + fill: ${I(e.clusterBkg,.5)}; + stroke: ${I(e.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span,p { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + ${x()} +`,`getStyles`),ge=r((e,t,n,r)=>{t.forEach(t=>{_e[t](e,n,r)})},`insertMarkers`),_e={extension:r((e,t,r)=>{n.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`),composition:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),aggregation:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),dependency:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),lollipop:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),point:r((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,6).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).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`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).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`),circle:r((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),cross:r((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),barb:r((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`)},ve=ge,L=c()?.block?.padding??8;function R(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}r(R,`calculateBlockPosition`);var ye=r(e=>{let t=0,r=0;for(let i of e.children){let{width:e,height:a,x:o,y:s}=i.size??{width:0,height:0,x:0,y:0};n.debug(`getMaxChildSize abc95 child:`,i.id,`width:`,e,`height:`,a,`x:`,o,`y:`,s,i.type),i.type!==`space`&&(e>t&&(t=e/(i.widthInColumns??1)),a>r&&(r=a))}return{width:t,height:r}},`getMaxChildSize`);function z(e,t,r=0,i=0){n.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,r),e?.size?.width||(e.size={width:r,height:i,x:0,y:0});let a=0,o=0;if(e.children?.length>0){for(let n of e.children)z(n,t);let s=ye(e);a=s.width,o=s.height,n.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,o);for(let t of e.children)t.size&&(n.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${a} ${o} ${JSON.stringify(t.size)}`),t.size.width=a*(t.widthInColumns??1)+L*((t.widthInColumns??1)-1),t.size.height=o,t.size.x=0,t.size.y=0,n.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${a} maxHeight:${o}`));for(let n of e.children)z(n,t,a,o);let c=e.columns??-1,l=0;for(let t of e.children)l+=t.widthInColumns??1;let u=e.children.length;c>0&&c0?Math.min(e.children.length,c):e.children.length;if(t>0){let r=(f-t*L-L)/t;n.debug(`abc95 (growing to fit) width`,e.id,f,e.size?.width,r);for(let t of e.children)t.size&&(t.size.width=r)}}e.size={width:f,height:p,x:0,y:0}}n.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}r(z,`setBlockSizes`);function B(e,t){n.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(n.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*L;n.debug(`widthOfChildren 88`,a,`posX`);let o=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=R(r,t),i=o.get(e)??0;n.size.height>i&&o.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let s=new Map;{let e=0,t=[...o.keys()].sort((e,t)=>e-t);for(let n of t)s.set(n,e),e+=(o.get(n)??0)+L}let c=0;n.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-L,u=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:d,height:f}=i.size,{px:p,py:m}=R(r,c);if(m!=u&&(u=m,l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-L,n.debug(`New row in layout for block`,e.id,` and child `,i.id,u)),n.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${p},${m} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${d}${L}`),a.size){let e=d/2;i.size.x=l+L+e,n.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${e} padding=${L} width=${d} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${d*(i?.widthInColumns??1)/2}`),l=i.size.x+e;let t=s.get(m)??0,r=o.get(m)??f;i.size.y=a.size.y-a.size.height/2+t+r/2+L,n.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${L}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${d*(i?.widthInColumns??1)/2}`)}i.children&&B(i,t);let h=i?.widthInColumns??1;r>0&&(h=Math.min(h,r-c%r)),c+=h,n.debug(`abc88 columnsPos`,i,c)}}n.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}r(B,`layoutBlocks`);function be(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:c}=e.size;a-s/2r&&(r=a+s/2),o+c/2>i&&(i=o+c/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=be(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}r(be,`findBounds`);function xe(e){let t=e.getBlock(`root`);if(!t)return;z(t,e,0,0),B(t,e),n.debug(`getBlocks`,JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:a,maxY:o}=be(t),s=o-i;return{x:r,y:i,width:a-r,height:s}}r(xe,`layout`);var V=r(async(e,t,n,r=!1,i=!1)=>{let a=t||``;typeof a==`object`&&(a=a[0]);let o=c(),s=f(o);return await b(e,a,{style:n,isTitle:r,useHtmlLabels:s,markdown:!1,isNode:i,width:1/0},o)},`createLabel`),Se=r((e,t,n,r,i)=>{t.arrowTypeStart&&we(e,`start`,t.arrowTypeStart,n,r,i),t.arrowTypeEnd&&we(e,`end`,t.arrowTypeEnd,n,r,i)},`addEdgeMarkers`),Ce={arrow_cross:`cross`,arrow_point:`point`,arrow_barb:`barb`,arrow_circle:`circle`,aggregation:`aggregation`,extension:`extension`,composition:`composition`,dependency:`dependency`,lollipop:`lollipop`},we=r((e,t,r,i,a,o)=>{let s=Ce[r];if(!s){n.warn(`Unknown arrow type: ${r}`);return}let c=t===`start`?`Start`:`End`;e.attr(`marker-${t}`,`url(${i}#${a}_${o}-${s}${c})`)},`addEdgeMarker`),H={},U={},Te=r(async(e,t)=>{let n=c(),r=f(n),a=e.insert(`g`).attr(`class`,`edgeLabel`),o=a.insert(`g`).attr(`class`,`label`),s=t.labelType===`markdown`,l=await b(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:s,isNode:!1,markdown:s,width:s?void 0:1/0},n);o.node().appendChild(l);let u=l.getBBox(),d=u;if(r){let e=l.children[0],t=i(l);u=e.getBoundingClientRect(),d=u,t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=i(l).select(`text`).node();e&&typeof e.getBBox==`function`&&(d=e.getBBox())}o.attr(`transform`,C(d,r)),H[t.id]=a,t.width=u.width,t.height=u.height;let p;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),a=n.insert(`g`).attr(`class`,`inner`),o=await V(a,t.startLabelLeft,t.labelStyle);p=o;let s=o.getBBox();if(r){let e=o.children[0],t=i(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}a.attr(`transform`,C(s,r)),U[t.id]||(U[t.id]={}),U[t.id].startLeft=n,W(p,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),a=n.insert(`g`).attr(`class`,`inner`),o=await V(n,t.startLabelRight,t.labelStyle);p=o,a.node().appendChild(o);let s=o.getBBox();if(r){let e=o.children[0],t=i(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}a.attr(`transform`,C(s,r)),U[t.id]||(U[t.id]={}),U[t.id].startRight=n,W(p,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),a=n.insert(`g`).attr(`class`,`inner`),o=await V(a,t.endLabelLeft,t.labelStyle);p=o;let s=o.getBBox();if(r){let e=o.children[0],t=i(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}a.attr(`transform`,C(s,r)),n.node().appendChild(o),U[t.id]||(U[t.id]={}),U[t.id].endLeft=n,W(p,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),a=n.insert(`g`).attr(`class`,`inner`),o=await V(a,t.endLabelRight,t.labelStyle);p=o;let s=o.getBBox();if(r){let e=o.children[0],t=i(o);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}a.attr(`transform`,C(s,r)),n.node().appendChild(o),U[t.id]||(U[t.id]={}),U[t.id].endRight=n,W(p,t.endLabelRight)}return l},`insertEdgeLabel`);function W(e,t){f(c())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}r(W,`setTerminalWidth`);var Ee=r((e,t)=>{n.debug(`Moving label abc88 `,e.id,e.label,H[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:i}=w(c());if(e.label){let a=H[e.id],o=e.x,s=e.y;if(r){let i=_.calcLabelPosition(r);n.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),t.updatedPath&&(o=i.x,s=i.y)}a.attr(`transform`,`translate(${o}, ${s+i/2})`)}if(e.startLabelLeft){let t=U[e.id].startLeft,n=e.x,i=e.y;if(r){let t=_.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=U[e.id].startRight,n=e.x,i=e.y;if(r){let t=_.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=U[e.id].endLeft,n=e.x,i=e.y;if(r){let t=_.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=U[e.id].endRight,n=e.x,i=e.y;if(r){let t=_.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),De=r((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),Oe=r((e,t,r)=>{n.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}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.xMath.abs(i-t.x)*l){let e=r.y{n.debug(`abc88 cutPathAtIntersect`,e,t);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(!De(t,e)&&!a){let n=Oe(t,i,e),o=!1;r.forEach(e=>{o||=e.x===n.x&&e.y===n.y}),r.some(e=>e.x===n.x&&e.y===n.y)||r.push(n),a=!0}else i=e,a||r.push(e)}),r},`cutPathAtIntersect`),Ae=r(function(e,t,r,i,o,s,l){let u=r.points;n.debug(`abc88 InsertEdge: edge=`,r,`e=`,t);let d=!1,f=s.node(t.v);var p=s.node(t.w);p?.intersect&&f?.intersect&&(u=u.slice(1,r.points.length-1),u.unshift(f.intersect(u[0])),u.push(p.intersect(u[u.length-1]))),r.toCluster&&(n.debug(`to cluster abc88`,i[r.toCluster]),u=ke(r.points,i[r.toCluster].node),d=!0),r.fromCluster&&(n.debug(`from cluster abc88`,i[r.fromCluster]),u=ke(u.reverse(),i[r.fromCluster].node).reverse(),d=!0);let m=u.filter(e=>!Number.isNaN(e.y)),g=h;r.curve&&(o===`graph`||o===`flowchart`)&&(g=r.curve);let{x:_,y:v}=S(r),b=y().x(_).y(v).curve(g),x;switch(r.thickness){case`normal`:x=`edge-thickness-normal`;break;case`thick`:x=`edge-thickness-thick`;break;case`invisible`:x=`edge-thickness-thick`;break;default:x=``}switch(r.pattern){case`solid`:x+=` edge-pattern-solid`;break;case`dotted`:x+=` edge-pattern-dotted`;break;case`dashed`:x+=` edge-pattern-dashed`;break}let C=e.append(`path`).attr(`d`,b(m)).attr(`id`,r.id).attr(`class`,` `+x+(r.classes?` `+r.classes:``)).attr(`style`,r.style),w=``;(c().flowchart.arrowMarkerAbsolute||c().state.arrowMarkerAbsolute)&&(w=a(!0)),Se(C,r,w,l,o);let T={};return d&&(T.updatedPath=u),T.originalPath=r.points,T},`insertEdge`),je=r(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n);break}return t},`expandAndDeduplicateDirections`),Me=r((e,t,n)=>{let r=je(e),i=t.height+2*n.padding,a=i/2,o=t.width+2*a+n.padding,s=n.padding/2;return r.has(`right`)&&r.has(`left`)&&r.has(`up`)&&r.has(`down`)?[{x:0,y:0},{x:a,y:0},{x:o/2,y:2*s},{x:o-a,y:0},{x:o,y:0},{x:o,y:-i/3},{x:o+2*s,y:-i/2},{x:o,y:-2*i/3},{x:o,y:-i},{x:o-a,y:-i},{x:o/2,y:-i-2*s},{x:a,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*s,y:-i/2},{x:0,y:-i/3}]:r.has(`right`)&&r.has(`left`)&&r.has(`up`)?[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`right`)&&r.has(`left`)&&r.has(`down`)?[{x:0,y:0},{x:a,y:-i},{x:o-a,y:-i},{x:o,y:0}]:r.has(`right`)&&r.has(`up`)&&r.has(`down`)?[{x:0,y:0},{x:o,y:-a},{x:o,y:-i+a},{x:0,y:-i}]:r.has(`left`)&&r.has(`up`)&&r.has(`down`)?[{x:o,y:0},{x:0,y:-a},{x:0,y:-i+a},{x:o,y:-i}]:r.has(`right`)&&r.has(`left`)?[{x:a,y:0},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`up`)&&r.has(`down`)?[{x:o/2,y:0},{x:0,y:-s},{x:a,y:-s},{x:a,y:-i+s},{x:0,y:-i+s},{x:o/2,y:-i},{x:o,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s},{x:o,y:-s}]:r.has(`right`)&&r.has(`up`)?[{x:0,y:0},{x:o,y:-a},{x:0,y:-i}]:r.has(`right`)&&r.has(`down`)?[{x:0,y:0},{x:o,y:0},{x:0,y:-i}]:r.has(`left`)&&r.has(`up`)?[{x:o,y:0},{x:0,y:-a},{x:o,y:-i}]:r.has(`left`)&&r.has(`down`)?[{x:o,y:0},{x:0,y:0},{x:o,y:-i}]:r.has(`right`)?[{x:a,y:-s},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i+s}]:r.has(`left`)?[{x:a,y:0},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`up`)?[{x:a,y:-s},{x:a,y:-i+s},{x:0,y:-i+s},{x:o/2,y:-i},{x:o,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s}]:r.has(`down`)?[{x:o/2,y:0},{x:0,y:-s},{x:a,y:-s},{x:a,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s},{x:o,y:-s}]:[{x:0,y:0}]},`getArrowPoints`);function Ne(e,t){return e.intersect(t)}r(Ne,`intersectNode`);var Pe=Ne;function Fe(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x0}r(G,`sameSign`);var Be=ze,Ve=He;function He(e,t,n){var r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));for(var c=r-e.width/2-o,l=i-e.height/2-s,u=0;u1&&a.sort(function(e,t){var r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`)},q=r(async(e,t,n,r)=>{let a=c(),s,l=t.useHtmlLabels||f(a);s=n||`node default`;let u=e.insert(`g`).attr(`class`,s).attr(`id`,t.domId||t.id),d=u.insert(`g`).attr(`class`,`label`).attr(`style`,t.labelStyle),p;p=t.labelText===void 0?``:typeof t.labelText==`string`?t.labelText:t.labelText[0];let m;m=t.labelType===`markdown`?b(d,o(v(p),a),{useHtmlLabels:l,width:t.width||a.flowchart.wrappingWidth,classes:`markdown-node-label`},a):await V(d,o(v(p),a),t.labelStyle,!1,r);let h=m.getBBox(),g=t.padding/2;if(f(a)){let e=m.children[0],t=i(m);await T(e,p),h=e.getBoundingClientRect(),t.attr(`width`,h.width),t.attr(`height`,h.height)}return l?d.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`):d.attr(`transform`,`translate(0, `+-h.height/2+`)`),t.centerLabel&&d.attr(`transform`,`translate(`+-h.width/2+`, `+-h.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:h,halfPadding:g,label:d}},`labelHelper`),J=r((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`);function Y(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}r(Y,`insertPolygonShape`);var Ue=r(async(e,t)=>{t.useHtmlLabels||f(c())||(t.centerLabel=!0);let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,`node `+t.classes,!0);n.info(`Classes = `,t.classes);let o=r.insert(`rect`,`:first-child`);return o.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,-i.width/2-a).attr(`y`,-i.height/2-a).attr(`width`,i.width+t.padding).attr(`height`,i.height+t.padding),J(t,o),t.intersect=function(e){return K.rect(t,e)},r},`note`),We=r(e=>e?` `+e:``,`formatClass`),X=r((e,t)=>`${t||`node default`}${We(e.classes)} ${We(e.class)}`,`getClassesFromNode`),Ge=r(async(e,t)=>{let{shapeSvg:r,bbox:i}=await q(e,t,X(t,void 0),!0),a=i.width+t.padding+(i.height+t.padding),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];n.info(`Question main (Circle)`);let s=Y(r,a,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return n.warn(`Intersect called`),K.polygon(t,o,e)},r},`question`),Ke=r((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id);return n.insert(`polygon`,`:first-child`).attr(`points`,[{x:0,y:28/2},{x:28/2,y:0},{x:0,y:-28/2},{x:-28/2,y:0}].map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`state-start`).attr(`r`,7).attr(`width`,28).attr(`height`,28),t.width=28,t.height=28,t.intersect=function(e){return K.circle(t,14,e)},n},`choice`),qe=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.height+t.padding,a=i/4,o=r.width+2*a+t.padding,s=[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}],c=Y(n,o,i,s);return c.attr(`style`,t.style),J(t,c),t.intersect=function(e){return K.polygon(t,s,e)},n},`hexagon`),Je=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,void 0,!0),i=r.height+2*t.padding,a=i/2,o=r.width+2*a+t.padding,s=Me(t.directions,r,t),c=Y(n,o,i,s);return c.attr(`style`,t.style),J(t,c),t.intersect=function(e){return K.polygon(t,s,e)},n},`block_arrow`),Ye=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return Y(n,i,a,o).attr(`style`,t.style),t.width=i+a,t.height=a,t.intersect=function(e){return K.polygon(t,o,e)},n},`rect_left_inv_arrow`),Xe=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`lean_right`),Ze=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`lean_left`),Qe=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`trapezoid`),$e=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`inv_trapezoid`),et=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`rect_right_inv_arrow`),tt=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=i/2,o=a/(2.5+i/50),s=r.height+o+t.padding,c=`M 0,`+o+` a `+a+`,`+o+` 0,0,0 `+i+` 0 a `+a+`,`+o+` 0,0,0 `+-i+` 0 l 0,`+s+` a `+a+`,`+o+` 0,0,0 `+i+` 0 l 0,`+-s;return J(t,n.attr(`label-offset-y`,o).insert(`path`,`:first-child`).attr(`style`,t.style).attr(`d`,c).attr(`transform`,`translate(`+-i/2+`,`+-(s/2+o)+`)`)),t.intersect=function(e){let n=K.rect(t,e),r=n.x-t.x;if(a!=0&&(Math.abs(r)t.height/2-o)){let i=o*o*(1-r*r/(a*a));i!=0&&(i=Math.sqrt(i)),i=o-i,e.y-t.y>0&&(i=-i),n.y+=i}return n},n},`cylinder`),nt=r(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,`node `+t.classes+` `+t.class,!0),o=r.insert(`rect`,`:first-child`),s=t.positioned?t.width:i.width+t.padding,c=t.positioned?t.height:i.height+t.padding,l=t.positioned?-s/2:-i.width/2-a,u=t.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic label-container`).attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),t.props){let e=new Set(Object.keys(t.props));t.props.borders&&(Z(o,t.props.borders,s,c),e.delete(`borders`)),e.forEach(e=>{n.warn(`Unknown node property ${e}`)})}return J(t,o),t.intersect=function(e){return K.rect(t,e)},r},`rect`),rt=r(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,`node `+t.classes,!0),o=r.insert(`rect`,`:first-child`),s=t.positioned?t.width:i.width+t.padding,c=t.positioned?t.height:i.height+t.padding,l=t.positioned?-s/2:-i.width/2-a,u=t.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic cluster composite label-container`).attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),t.props){let e=new Set(Object.keys(t.props));t.props.borders&&(Z(o,t.props.borders,s,c),e.delete(`borders`)),e.forEach(e=>{n.warn(`Unknown node property ${e}`)})}return J(t,o),t.intersect=function(e){return K.rect(t,e)},r},`composite`),it=r(async(e,t)=>{let{shapeSvg:r}=await q(e,t,`label`,!0);n.trace(`Classes = `,t.class);let i=r.insert(`rect`,`:first-child`);if(i.attr(`width`,0).attr(`height`,0),r.attr(`class`,`label edgeLabel`),t.props){let e=new Set(Object.keys(t.props));t.props.borders&&(Z(i,t.props.borders,0,0),e.delete(`borders`)),e.forEach(e=>{n.warn(`Unknown node property ${e}`)})}return J(t,i),t.intersect=function(e){return K.rect(t,e)},r},`labelRect`);function Z(e,t,i,a){let o=[],s=r(e=>{o.push(e,0)},`addBorder`),c=r(e=>{o.push(0,e)},`skipBorder`);t.includes(`t`)?(n.debug(`add top border`),s(i)):c(i),t.includes(`r`)?(n.debug(`add right border`),s(a)):c(a),t.includes(`b`)?(n.debug(`add bottom border`),s(i)):c(i),t.includes(`l`)?(n.debug(`add left border`),s(a)):c(a),e.attr(`stroke-dasharray`,o.join(` `))}r(Z,`applyNodePropertyBorders`);var at=r(async(e,t)=>{let r;r=t.classes?`node `+t.classes:`node default`;let a=e.insert(`g`).attr(`class`,r).attr(`id`,t.domId||t.id),o=a.insert(`rect`,`:first-child`),s=a.insert(`line`),l=a.insert(`g`).attr(`class`,`label`),u=t.labelText.flat?t.labelText.flat():t.labelText,d=``;d=typeof u==`object`?u[0]:u,n.info(`Label text abc79`,d,u,typeof u==`object`);let p=await V(l,d,t.labelStyle,!0,!0),m={width:0,height:0};if(f(c())){let e=p.children[0],t=i(p);m=e.getBoundingClientRect(),t.attr(`width`,m.width),t.attr(`height`,m.height)}n.info(`Text 2`,u);let h=u.slice(1,u.length),g=p.getBBox(),_=await V(l,h.join?h.join(`
`):h,t.labelStyle,!0,!0);if(f(c())){let e=_.children[0],t=i(_);m=e.getBoundingClientRect(),t.attr(`width`,m.width),t.attr(`height`,m.height)}let v=t.padding/2;return i(_).attr(`transform`,`translate( `+(m.width>g.width?0:(g.width-m.width)/2)+`, `+(g.height+v+5)+`)`),i(p).attr(`transform`,`translate( `+(m.width{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.height+t.padding,a=r.width+i/4+t.padding;return J(t,n.insert(`rect`,`:first-child`).attr(`style`,t.style).attr(`rx`,i/2).attr(`ry`,i/2).attr(`x`,-a/2).attr(`y`,-i/2).attr(`width`,a).attr(`height`,i)),t.intersect=function(e){return K.rect(t,e)},n},`stadium`),st=r(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,X(t,void 0),!0),o=r.insert(`circle`,`:first-child`);return o.attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+t.padding).attr(`height`,i.height+t.padding),n.info(`Circle main`),J(t,o),t.intersect=function(e){return n.info(`Circle intersect`,t,i.width/2+a,e),K.circle(t,i.width/2+a,e)},r},`circle`),ct=r(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await q(e,t,X(t,void 0),!0),o=r.insert(`g`,`:first-child`),s=o.insert(`circle`),c=o.insert(`circle`);return o.attr(`class`,t.class),s.attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`r`,i.width/2+a+5).attr(`width`,i.width+t.padding+10).attr(`height`,i.height+t.padding+10),c.attr(`style`,t.style).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+t.padding).attr(`height`,i.height+t.padding),n.info(`DoubleCircle main`),J(t,s),t.intersect=function(e){return n.info(`DoubleCircle intersect`,t,i.width/2+a+5,e),K.circle(t,i.width/2+a+5,e)},r},`doublecircle`),lt=r(async(e,t)=>{let{shapeSvg:n,bbox:r}=await q(e,t,X(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],s=Y(n,i,a,o);return s.attr(`style`,t.style),J(t,s),t.intersect=function(e){return K.polygon(t,o,e)},n},`subroutine`),ut=r((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`);return r.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),J(t,r),t.intersect=function(e){return K.circle(t,7,e)},n},`start`),dt=r((e,t,n)=>{let r=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),i=70,a=10;return n===`LR`&&(i=10,a=70),J(t,r.append(`rect`).attr(`x`,-1*i/2).attr(`y`,-1*a/2).attr(`width`,i).attr(`height`,a).attr(`class`,`fork-join`)),t.height+=t.padding/2,t.width+=t.padding/2,t.intersect=function(e){return K.rect(t,e)},r},`forkJoin`),ft={rhombus:Ge,composite:rt,question:Ge,rect:nt,labelRect:it,rectWithTitle:at,choice:Ke,circle:st,doublecircle:ct,stadium:ot,hexagon:qe,block_arrow:Je,rect_left_inv_arrow:Ye,lean_right:Xe,lean_left:Ze,trapezoid:Qe,inv_trapezoid:$e,rect_right_inv_arrow:et,cylinder:tt,start:ut,end:r((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`),i=n.insert(`circle`,`:first-child`);return i.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),r.attr(`class`,`state-end`).attr(`r`,5).attr(`width`,10).attr(`height`,10),J(t,i),t.intersect=function(e){return K.circle(t,7,e)},n},`end`),note:Ue,subroutine:lt,fork:dt,join:dt,class_box:r(async(e,t)=>{let n=t.padding/2,r;r=t.classes?`node `+t.classes:`node default`;let a=e.insert(`g`).attr(`class`,r).attr(`id`,t.domId||t.id),o=a.insert(`rect`,`:first-child`),s=a.insert(`line`),l=a.insert(`line`),u=0,d=4,p=a.insert(`g`).attr(`class`,`label`),m=0,h=t.classData.annotations?.[0],g=await V(p,t.classData.annotations[0]?`«`+t.classData.annotations[0]+`»`:``,t.labelStyle,!0,!0),_=g.getBBox();if(f(c())){let e=g.children[0],t=i(g);_=e.getBoundingClientRect(),t.attr(`width`,_.width),t.attr(`height`,_.height)}t.classData.annotations[0]&&(d+=_.height+4,u+=_.width);let v=t.classData.label;t.classData.type!==void 0&&t.classData.type!==``&&(f(c())?v+=`<`+t.classData.type+`>`:v+=`<`+t.classData.type+`>`);let y=await V(p,v,t.labelStyle,!0,!0);i(y).attr(`class`,`classTitle`);let b=y.getBBox();if(f(c())){let e=y.children[0],t=i(y);b=e.getBoundingClientRect(),t.attr(`width`,b.width),t.attr(`height`,b.height)}d+=b.height+4,b.width>u&&(u=b.width);let x=[];t.classData.members.forEach(async e=>{let n=e.getDisplayDetails(),r=n.displayText;f(c())&&(r=r.replace(//g,`>`));let a=await V(p,r,n.cssStyle?n.cssStyle:t.labelStyle,!0,!0),o=a.getBBox();if(f(c())){let e=a.children[0],t=i(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}o.width>u&&(u=o.width),d+=o.height+4,x.push(a)}),d+=8;let S=[];if(t.classData.methods.forEach(async e=>{let n=e.getDisplayDetails(),r=n.displayText;f(c())&&(r=r.replace(//g,`>`));let a=await V(p,r,n.cssStyle?n.cssStyle:t.labelStyle,!0,!0),o=a.getBBox();if(f(c())){let e=a.children[0],t=i(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}o.width>u&&(u=o.width),d+=o.height+4,S.push(a)}),d+=8,h){let e=(u-_.width)/2;i(g).attr(`transform`,`translate( `+(-1*u/2+e)+`, `+-1*d/2+`)`),m=_.height+4}let C=(u-b.width)/2;return i(y).attr(`transform`,`translate( `+(-1*u/2+C)+`, `+(-1*d/2+m)+`)`),m+=b.height+4,s.attr(`class`,`divider`).attr(`x1`,-u/2-n).attr(`x2`,u/2+n).attr(`y1`,-d/2-n+8+m).attr(`y2`,-d/2-n+8+m),m+=8,x.forEach(e=>{i(e).attr(`transform`,`translate( `+-u/2+`, `+(-1*d/2+m+8/2)+`)`);let t=e?.getBBox();m+=(t?.height??0)+4}),m+=8,l.attr(`class`,`divider`).attr(`x1`,-u/2-n).attr(`x2`,u/2+n).attr(`y1`,-d/2-n+8+m).attr(`y2`,-d/2-n+8+m),m+=8,S.forEach(e=>{i(e).attr(`transform`,`translate( `+-u/2+`, `+(-1*d/2+m)+`)`);let t=e?.getBBox();m+=(t?.height??0)+4}),o.attr(`style`,t.style).attr(`class`,`outer title-state`).attr(`x`,-u/2-n).attr(`y`,-(d/2)-n).attr(`width`,u+t.padding).attr(`height`,d+t.padding),J(t,o),t.intersect=function(e){return K.rect(t,e)},a},`class_box`)},Q={},pt=r(async(e,t,n)=>{let r,i;if(t.link){let a;c().securityLevel===`sandbox`?a=`_top`:t.linkTarget&&(a=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,a),i=await ft[t.shape](r,t,n)}else i=await ft[t.shape](e,t,n),r=i;return t.tooltip&&i.attr(`title`,t.tooltip),t.class&&i.attr(`class`,`node default `+t.class),Q[t.id]=r,t.haveCallback&&Q[t.id].attr(`class`,Q[t.id].attr(`class`)+` clickable`),r},`insertNode`),mt=r(e=>{let t=Q[e.id];n.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);function ht(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=0,o=``,s;switch(r.type){case`round`:a=5,o=`rect`;break;case`composite`:a=0,o=`composite`,s=0;break;case`square`:o=`rect`;break;case`diamond`:o=`question`;break;case`hexagon`:o=`hexagon`;break;case`block_arrow`:o=`block_arrow`;break;case`odd`:o=`rect_left_inv_arrow`;break;case`lean_right`:o=`lean_right`;break;case`lean_left`:o=`lean_left`;break;case`trapezoid`:o=`trapezoid`;break;case`inv_trapezoid`:o=`inv_trapezoid`;break;case`rect_left_inv_arrow`:o=`rect_left_inv_arrow`;break;case`circle`:o=`circle`;break;case`ellipse`:o=`ellipse`;break;case`stadium`:o=`stadium`;break;case`subroutine`:o=`subroutine`;break;case`cylinder`:o=`cylinder`;break;case`group`:o=`rect`;break;case`doublecircle`:o=`doublecircle`;break;default:o=`rect`}let c=g(r?.styles??[]),l=r.label,u=r.size??{width:0,height:0,x:0,y:0},d=t.getDiagramId();return{labelStyle:c.labelStyle,shape:o,labelText:l,rx:a,ry:a,class:i,style:c.style,id:r.id,domId:d?`${d}-${r.id}`:r.id,directions:r.directions,width:u.width,height:u.height,x:u.x,y:u.y,positioned:n,intersect:void 0,type:r.type,padding:s??p()?.block?.padding??0}}r(ht,`getNodeFromBlock`);async function gt(e,t,n){let r=ht(t,n,!1);if(r.type===`group`)return;let i=await pt(e,r,{config:p()}),a=i.node().getBBox(),o=n.getBlock(r.id);o.size={width:a.width,height:a.height,x:0,y:0,node:i},n.setBlock(o),i.remove()}r(gt,`calculateBlockSize`);async function _t(e,t,n){let r=ht(t,n,!0);n.getBlock(r.id).type!==`space`&&(await pt(e,r,{config:p()}),t.intersect=r?.intersect,mt(r))}r(_t,`insertBlockPositioned`);async function $(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await $(e,i.children,n,r)}r($,`performOperations`);async function vt(e,t,n){await $(e,t,n,gt)}r(vt,`calculateBlockSizes`);async function yt(e,t,n){await $(e,t,n,_t)}r(yt,`insertBlocks`);async function bt(t,n,r,i,a){let o=new e({multigraph:!0,compound:!0});o.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of r)e.size&&o.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let e of n)if(e.start&&e.end){let n=i.getBlock(e.start),r=i.getBlock(e.end);if(n?.size&&r?.size){let i=n.size,s=r.size,c=[{x:i.x,y:i.y},{x:i.x+(s.x-i.x)/2,y:i.y+(s.y-i.y)/2},{x:s.x,y:s.y}],l=a?`${a}-${e.id}`:e.id;Ae(t,{v:e.start,w:e.end,name:l},{...e,id:l,arrowTypeEnd:e.arrowTypeEnd,arrowTypeStart:e.arrowTypeStart,points:c,classes:`edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1`},void 0,`block`,o,a),e.label&&(await Te(t,{...e,label:e.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:e.arrowTypeEnd,arrowTypeStart:e.arrowTypeStart,points:c,classes:`edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1`}),Ee({...e,x:c[1].x,y:c[1].y},{originalPath:c}))}}}r(bt,`insertEdges`);var xt={parser:D,db:me,renderer:{draw:r(async function(e,t,r,a){let{securityLevel:o,block:s}=p(),c=a.db;c.setDiagramId(t);let u;o===`sandbox`&&(u=i(`#i`+t));let d=i(o===`sandbox`?u.nodes()[0].contentDocument.body:`body`),f=o===`sandbox`?d.select(`[id="${t}"]`):i(`[id="${t}"]`);ve(f,[`point`,`circle`,`cross`],a.type,t);let m=c.getBlocks(),h=c.getBlocksFlat(),g=c.getEdges(),_=f.insert(`g`).attr(`class`,`block`);await vt(_,m,c);let v=xe(c);if(await yt(_,m,c),await bt(_,g,h,c,t),v){let e=v,t=Math.max(1,Math.round(.125*(e.width/e.height))),r=e.height+t+10,i=e.width+10,{useMaxWidth:a}=s;l(f,r,i,!!a),n.debug(`Here Bounds`,v,e),f.attr(`viewBox`,`${e.x-5} ${e.y-5} ${e.width+10} ${e.height+10}`)}},`draw`),getClasses:r(function(e,t){return t.db.getClasses()},`getClasses`)},styles:he};export{xt as diagram}; \ No newline at end of file diff --git a/webui/assets/c4Diagram-AHTNJAMY-B_uOIvUq.js b/webui/assets/c4Diagram-AHTNJAMY-B_uOIvUq.js new file mode 100644 index 0000000000000000000000000000000000000000..fd479754527f41df106225acf13c5c3f346f7f6d --- /dev/null +++ b/webui/assets/c4Diagram-AHTNJAMY-B_uOIvUq.js @@ -0,0 +1,10 @@ +import{g as e,h as t,p as n}from"./src-DZYWZEqD.js";import{B as r,L as i,V as a,_ as o,b as s,c as l,r as u,s as d,v as f}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{t as p}from"./dist-Ur6PXDdt.js";import{g as m,n as h,t as g}from"./chunk-5PVQY5BW-D8dVtMiH.js";import{a as _,s as v}from"./chunk-YZCP3GAM-BG6I4L-b.js";var y=p(),b=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,24],r=[1,25],i=[1,26],a=[1,27],o=[1,28],s=[1,63],l=[1,64],u=[1,65],d=[1,66],f=[1,67],p=[1,68],m=[1,69],h=[1,29],g=[1,30],_=[1,31],v=[1,32],y=[1,33],b=[1,34],x=[1,35],S=[1,36],C=[1,37],w=[1,38],T=[1,39],E=[1,40],D=[1,41],O=[1,42],k=[1,43],A=[1,44],j=[1,45],M=[1,46],N=[1,47],P=[1,48],F=[1,50],I=[1,51],L=[1,52],R=[1,53],ee=[1,54],te=[1,55],ne=[1,56],z=[1,57],B=[1,58],V=[1,59],H=[1,60],re=[14,42],ie=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ae=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],U=[1,82],W=[1,83],G=[1,84],K=[1,85],q=[12,14,42],oe=[12,14,33,42],se=[12,14,33,42,76,77,79,80],ce=[12,33],le=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],J={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:`error`,6:`direction_tb`,7:`direction_bt`,8:`direction_rl`,9:`direction_lr`,11:`C4_CONTEXT`,12:`NEWLINE`,14:`EOF`,15:`C4_CONTAINER`,16:`C4_COMPONENT`,17:`C4_DYNAMIC`,18:`C4_DEPLOYMENT`,22:`title`,23:`accDescription`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`LBRACE`,34:`ENTERPRISE_BOUNDARY`,36:`SYSTEM_BOUNDARY`,37:`BOUNDARY`,38:`CONTAINER_BOUNDARY`,39:`NODE`,40:`NODE_L`,41:`NODE_R`,42:`RBRACE`,44:`PERSON`,45:`PERSON_EXT`,46:`SYSTEM`,47:`SYSTEM_DB`,48:`SYSTEM_QUEUE`,49:`SYSTEM_EXT`,50:`SYSTEM_EXT_DB`,51:`SYSTEM_EXT_QUEUE`,52:`CONTAINER`,53:`CONTAINER_DB`,54:`CONTAINER_QUEUE`,55:`CONTAINER_EXT`,56:`CONTAINER_EXT_DB`,57:`CONTAINER_EXT_QUEUE`,58:`COMPONENT`,59:`COMPONENT_DB`,60:`COMPONENT_QUEUE`,61:`COMPONENT_EXT`,62:`COMPONENT_EXT_DB`,63:`COMPONENT_EXT_QUEUE`,64:`REL`,65:`BIREL`,66:`REL_U`,67:`REL_D`,68:`REL_L`,69:`REL_R`,70:`REL_B`,71:`REL_INDEX`,72:`UPDATE_EL_STYLE`,73:`UPDATE_REL_STYLE`,74:`UPDATE_LAYOUT_CONFIG`,76:`STR`,77:`STR_KEY`,78:`STR_VALUE`,79:`ATTRIBUTE`,80:`ATTRIBUTE_EMPTY`},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:r.setDirection(`TB`);break;case 4:r.setDirection(`BT`);break;case 5:r.setDirection(`RL`);break;case 6:r.setDirection(`LR`);break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(a[s-3]);break;case 19:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 28:a[s].splice(2,0,`ENTERPRISE`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 29:a[s].splice(2,0,`SYSTEM`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 30:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 31:a[s].splice(2,0,`CONTAINER`),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 32:r.addDeploymentNode(`node`,...a[s]),this.$=a[s];break;case 33:r.addDeploymentNode(`nodeL`,...a[s]),this.$=a[s];break;case 34:r.addDeploymentNode(`nodeR`,...a[s]),this.$=a[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem(`person`,...a[s]),this.$=a[s];break;case 40:r.addPersonOrSystem(`external_person`,...a[s]),this.$=a[s];break;case 41:r.addPersonOrSystem(`system`,...a[s]),this.$=a[s];break;case 42:r.addPersonOrSystem(`system_db`,...a[s]),this.$=a[s];break;case 43:r.addPersonOrSystem(`system_queue`,...a[s]),this.$=a[s];break;case 44:r.addPersonOrSystem(`external_system`,...a[s]),this.$=a[s];break;case 45:r.addPersonOrSystem(`external_system_db`,...a[s]),this.$=a[s];break;case 46:r.addPersonOrSystem(`external_system_queue`,...a[s]),this.$=a[s];break;case 47:r.addContainer(`container`,...a[s]),this.$=a[s];break;case 48:r.addContainer(`container_db`,...a[s]),this.$=a[s];break;case 49:r.addContainer(`container_queue`,...a[s]),this.$=a[s];break;case 50:r.addContainer(`external_container`,...a[s]),this.$=a[s];break;case 51:r.addContainer(`external_container_db`,...a[s]),this.$=a[s];break;case 52:r.addContainer(`external_container_queue`,...a[s]),this.$=a[s];break;case 53:r.addComponent(`component`,...a[s]),this.$=a[s];break;case 54:r.addComponent(`component_db`,...a[s]),this.$=a[s];break;case 55:r.addComponent(`component_queue`,...a[s]),this.$=a[s];break;case 56:r.addComponent(`external_component`,...a[s]),this.$=a[s];break;case 57:r.addComponent(`external_component_db`,...a[s]),this.$=a[s];break;case 58:r.addComponent(`external_component_queue`,...a[s]),this.$=a[s];break;case 60:r.addRel(`rel`,...a[s]),this.$=a[s];break;case 61:r.addRel(`birel`,...a[s]),this.$=a[s];break;case 62:r.addRel(`rel_u`,...a[s]),this.$=a[s];break;case 63:r.addRel(`rel_d`,...a[s]),this.$=a[s];break;case 64:r.addRel(`rel_l`,...a[s]),this.$=a[s];break;case 65:r.addRel(`rel_r`,...a[s]),this.$=a[s];break;case 66:r.addRel(`rel_b`,...a[s]),this.$=a[s];break;case 67:a[s].splice(0,1),r.addRel(`rel`,...a[s]),this.$=a[s];break;case 68:r.updateElStyle(`update_el_style`,...a[s]),this.$=a[s];break;case 69:r.updateRelStyle(`update_rel_style`,...a[s]),this.$=a[s];break;case 70:r.updateLayoutConfig(`update_layout_config`,...a[s]),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:let e={};e[a[s-1].trim()]=a[s].trim(),this.$=e;break;case 76:this.$=``;break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:70,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:71,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:72,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{13:73,19:20,20:21,21:22,22:n,23:r,24:i,26:a,28:o,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{14:[1,74]},e(re,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:l,37:u,38:d,39:f,40:p,41:m,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H}),e(re,[2,14]),e(ie,[2,16],{12:[1,76]}),e(re,[2,36],{12:[1,77]}),e(ae,[2,19]),e(ae,[2,20]),{25:[1,78]},{27:[1,79]},e(ae,[2,23]),{35:80,75:81,76:U,77:W,79:G,80:K},{35:86,75:81,76:U,77:W,79:G,80:K},{35:87,75:81,76:U,77:W,79:G,80:K},{35:88,75:81,76:U,77:W,79:G,80:K},{35:89,75:81,76:U,77:W,79:G,80:K},{35:90,75:81,76:U,77:W,79:G,80:K},{35:91,75:81,76:U,77:W,79:G,80:K},{35:92,75:81,76:U,77:W,79:G,80:K},{35:93,75:81,76:U,77:W,79:G,80:K},{35:94,75:81,76:U,77:W,79:G,80:K},{35:95,75:81,76:U,77:W,79:G,80:K},{35:96,75:81,76:U,77:W,79:G,80:K},{35:97,75:81,76:U,77:W,79:G,80:K},{35:98,75:81,76:U,77:W,79:G,80:K},{35:99,75:81,76:U,77:W,79:G,80:K},{35:100,75:81,76:U,77:W,79:G,80:K},{35:101,75:81,76:U,77:W,79:G,80:K},{35:102,75:81,76:U,77:W,79:G,80:K},{35:103,75:81,76:U,77:W,79:G,80:K},{35:104,75:81,76:U,77:W,79:G,80:K},e(q,[2,59]),{35:105,75:81,76:U,77:W,79:G,80:K},{35:106,75:81,76:U,77:W,79:G,80:K},{35:107,75:81,76:U,77:W,79:G,80:K},{35:108,75:81,76:U,77:W,79:G,80:K},{35:109,75:81,76:U,77:W,79:G,80:K},{35:110,75:81,76:U,77:W,79:G,80:K},{35:111,75:81,76:U,77:W,79:G,80:K},{35:112,75:81,76:U,77:W,79:G,80:K},{35:113,75:81,76:U,77:W,79:G,80:K},{35:114,75:81,76:U,77:W,79:G,80:K},{35:115,75:81,76:U,77:W,79:G,80:K},{20:116,29:49,30:61,32:62,34:s,36:l,37:u,38:d,39:f,40:p,41:m,43:23,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H},{12:[1,118],33:[1,117]},{35:119,75:81,76:U,77:W,79:G,80:K},{35:120,75:81,76:U,77:W,79:G,80:K},{35:121,75:81,76:U,77:W,79:G,80:K},{35:122,75:81,76:U,77:W,79:G,80:K},{35:123,75:81,76:U,77:W,79:G,80:K},{35:124,75:81,76:U,77:W,79:G,80:K},{35:125,75:81,76:U,77:W,79:G,80:K},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(re,[2,15]),e(ie,[2,17],{21:22,19:130,22:n,23:r,24:i,26:a,28:o}),e(re,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:n,23:r,24:i,26:a,28:o,34:s,36:l,37:u,38:d,39:f,40:p,41:m,44:h,45:g,46:_,47:v,48:y,49:b,50:x,51:S,52:C,53:w,54:T,55:E,56:D,57:O,58:k,59:A,60:j,61:M,62:N,63:P,64:F,65:I,66:L,67:R,68:ee,69:te,70:ne,71:z,72:B,73:V,74:H}),e(ae,[2,21]),e(ae,[2,22]),e(q,[2,39]),e(oe,[2,71],{75:81,35:132,76:U,77:W,79:G,80:K}),e(se,[2,73]),{78:[1,133]},e(se,[2,75]),e(se,[2,76]),e(q,[2,40]),e(q,[2,41]),e(q,[2,42]),e(q,[2,43]),e(q,[2,44]),e(q,[2,45]),e(q,[2,46]),e(q,[2,47]),e(q,[2,48]),e(q,[2,49]),e(q,[2,50]),e(q,[2,51]),e(q,[2,52]),e(q,[2,53]),e(q,[2,54]),e(q,[2,55]),e(q,[2,56]),e(q,[2,57]),e(q,[2,58]),e(q,[2,60]),e(q,[2,61]),e(q,[2,62]),e(q,[2,63]),e(q,[2,64]),e(q,[2,65]),e(q,[2,66]),e(q,[2,67]),e(q,[2,68]),e(q,[2,69]),e(q,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(ce,[2,28]),e(ce,[2,29]),e(ce,[2,30]),e(ce,[2,31]),e(ce,[2,32]),e(ce,[2,33]),e(ce,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ie,[2,18]),e(re,[2,38]),e(oe,[2,72]),e(se,[2,74]),e(q,[2,24]),e(q,[2,35]),e(le,[2,25]),e(le,[2,26],{12:[1,138]}),e(le,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,l=``,u=0,d=0,f=0,p=2,m=1,h=o.slice.call(arguments,1),g=Object.create(this.lexer),_={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(_.yy[v]=this.yy[v]);g.setInput(e,_.yy),_.yy.lexer=g,_.yy.parser=this,g.yylloc===void 0&&(g.yylloc={});var y=g.yylloc;o.push(y);var b=g.options&&g.options.ranges;typeof _.yy.parseError==`function`?this.parseError=_.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function x(e){r.length-=2*e,a.length-=e,o.length-=e}t(x,`popStack`);function S(){var e=i.pop()||g.lex()||m;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(S,`lex`);for(var C,w,T,E,D,O={},k,A,j,M;;){if(T=r[r.length-1],this.defaultActions[T]?E=this.defaultActions[T]:(C??=S(),E=s[T]&&s[T][C]),E===void 0||!E.length||!E[0]){var N=``;for(k in M=[],s[T])this.terminals_[k]&&k>p&&M.push(`'`+this.terminals_[k]+`'`);N=g.showPosition?`Parse error on line `+(u+1)+`: +`+g.showPosition()+` +Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on line `+(u+1)+`: Unexpected `+(C==m?`end of input`:`'`+(this.terminals_[C]||C)+`'`),this.parseError(N,{text:g.match,token:this.terminals_[C]||C,line:g.yylineno,loc:y,expected:M})}if(E[0]instanceof Array&&E.length>1)throw Error(`Parse Error: multiple actions possible at state: `+T+`, token: `+C);switch(E[0]){case 1:r.push(C),a.push(g.yytext),o.push(g.yylloc),r.push(E[1]),C=null,w?(C=w,w=null):(d=g.yyleng,l=g.yytext,u=g.yylineno,y=g.yylloc,f>0&&f--);break;case 2:if(A=this.productions_[E[1]][1],O.$=a[a.length-A],O._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(O._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),D=this.performAction.apply(O,[l,d,u,_.yy,E[1],a,o].concat(h)),D!==void 0)return D;A&&(r=r.slice(0,-1*A*2),a=a.slice(0,-1*A),o=o.slice(0,-1*A)),r.push(this.productions_[E[1]][0]),a.push(O.$),o.push(O._$),j=s[r[r.length-2]][r[r.length-1]],r.push(j);break;case 3:return!0}}return!0},`parse`)};J.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:t(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin(`acc_title`),24;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),26;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin(`person_ext`),45;case 23:return this.begin(`person`),44;case 24:return this.begin(`system_ext_queue`),51;case 25:return this.begin(`system_ext_db`),50;case 26:return this.begin(`system_ext`),49;case 27:return this.begin(`system_queue`),48;case 28:return this.begin(`system_db`),47;case 29:return this.begin(`system`),46;case 30:return this.begin(`boundary`),37;case 31:return this.begin(`enterprise_boundary`),34;case 32:return this.begin(`system_boundary`),36;case 33:return this.begin(`container_ext_queue`),57;case 34:return this.begin(`container_ext_db`),56;case 35:return this.begin(`container_ext`),55;case 36:return this.begin(`container_queue`),54;case 37:return this.begin(`container_db`),53;case 38:return this.begin(`container`),52;case 39:return this.begin(`container_boundary`),38;case 40:return this.begin(`component_ext_queue`),63;case 41:return this.begin(`component_ext_db`),62;case 42:return this.begin(`component_ext`),61;case 43:return this.begin(`component_queue`),60;case 44:return this.begin(`component_db`),59;case 45:return this.begin(`component`),58;case 46:return this.begin(`node`),39;case 47:return this.begin(`node`),39;case 48:return this.begin(`node_l`),40;case 49:return this.begin(`node_r`),41;case 50:return this.begin(`rel`),64;case 51:return this.begin(`birel`),65;case 52:return this.begin(`rel_u`),66;case 53:return this.begin(`rel_u`),66;case 54:return this.begin(`rel_d`),67;case 55:return this.begin(`rel_d`),67;case 56:return this.begin(`rel_l`),68;case 57:return this.begin(`rel_l`),68;case 58:return this.begin(`rel_r`),69;case 59:return this.begin(`rel_r`),69;case 60:return this.begin(`rel_b`),70;case 61:return this.begin(`rel_index`),71;case 62:return this.begin(`update_el_style`),72;case 63:return this.begin(`update_rel_style`),73;case 64:return this.begin(`update_layout_config`),74;case 65:return`EOF_IN_STRUCT`;case 66:return this.begin(`attribute`),`ATTRIBUTE_EMPTY`;case 67:this.begin(`attribute`);break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin(`string`);break;case 73:this.popState();break;case 74:return`STR`;case 75:this.begin(`string_kv`);break;case 76:return this.begin(`string_kv_key`),`STR_KEY`;case 77:this.popState(),this.begin(`string_kv_value`);break;case 78:return`STR_VALUE`;case 79:this.popState(),this.popState();break;case 80:return`STR`;case 81:return`LBRACE`;case 82:return`RBRACE`;case 83:return`SPACE`;case 84:return`EOL`;case 85:return 14}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}}})();function ue(){this.yy={}}return t(ue,`Parser`),ue.prototype=J,J.Parser=ue,new ue})();b.parser=b;var x=b,S=[],C=[``],w=`global`,T=``,E=[{alias:`global`,label:{text:`global`},type:{text:`global`},tags:null,link:null,parentBoundary:``}],D=[],O=``,k=!1,A=4,j=2,M,N=t(function(){return M},`getC4Type`),P=t(function(e){M=i(e,s())},`setC4Type`),F=t(function(e,t,n,r,i,a,o,s,l){if(e==null||t==null||n==null||r==null)return;let u={},d=D.find(e=>e.from===t&&e.to===n);if(d?u=d:D.push(u),u.type=e,u.from=t,u.to=n,u.label={text:r},i==null)u.techn={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];u[e]={text:t}}else u.techn={text:i};if(a==null)u.descr={text:``};else if(typeof a==`object`){let[e,t]=Object.entries(a)[0];u[e]={text:t}}else u.descr={text:a};if(typeof o==`object`){let[e,t]=Object.entries(o)[0];u[e]=t}else u.sprite=o;if(typeof s==`object`){let[e,t]=Object.entries(s)[0];u[e]=t}else u.tags=s;if(typeof l==`object`){let[e,t]=Object.entries(l)[0];u[e]=t}else u.link=l;u.wrap=J()},`addRel`),I=t(function(e,t,n,r,i,a,o){if(t===null||n===null)return;let s={},l=S.find(e=>e.alias===t);if(l&&t===l.alias?s=l:(s.alias=t,S.push(s)),n==null?s.label={text:``}:s.label={text:n},r==null)s.descr={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]={text:t}}else s.descr={text:r};if(typeof i==`object`){let[e,t]=Object.entries(i)[0];s[e]=t}else s.sprite=i;if(typeof a==`object`){let[e,t]=Object.entries(a)[0];s[e]=t}else s.tags=a;if(typeof o==`object`){let[e,t]=Object.entries(o)[0];s[e]=t}else s.link=o;s.typeC4Shape={text:e},s.parentBoundary=w,s.wrap=J()},`addPersonOrSystem`),L=t(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=S.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,S.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if(typeof a==`object`){let[e,t]=Object.entries(a)[0];l[e]=t}else l.sprite=a;if(typeof o==`object`){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if(typeof s==`object`){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.wrap=J(),l.typeC4Shape={text:e},l.parentBoundary=w},`addContainer`),R=t(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=S.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,S.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if(typeof a==`object`){let[e,t]=Object.entries(a)[0];l[e]=t}else l.sprite=a;if(typeof o==`object`){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if(typeof s==`object`){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.wrap=J(),l.typeC4Shape={text:e},l.parentBoundary=w},`addComponent`),ee=t(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=E.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,E.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`system`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]={text:t}}else a.type={text:n};if(typeof r==`object`){let[e,t]=Object.entries(r)[0];a[e]=t}else a.tags=r;if(typeof i==`object`){let[e,t]=Object.entries(i)[0];a[e]=t}else a.link=i;a.parentBoundary=w,a.wrap=J(),T=w,w=e,C.push(T)},`addPersonOrSystemBoundary`),te=t(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=E.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,E.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`container`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]={text:t}}else a.type={text:n};if(typeof r==`object`){let[e,t]=Object.entries(r)[0];a[e]=t}else a.tags=r;if(typeof i==`object`){let[e,t]=Object.entries(i)[0];a[e]=t}else a.link=i;a.parentBoundary=w,a.wrap=J(),T=w,w=e,C.push(T)},`addContainerBoundary`),ne=t(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=E.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,E.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.type={text:`node`};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.type={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if(typeof o==`object`){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if(typeof s==`object`){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.nodeType=e,l.parentBoundary=w,l.wrap=J(),T=w,w=t,C.push(T)},`addDeploymentNode`),z=t(function(){w=T,C.pop(),T=C.pop(),C.push(T)},`popBoundaryParseStack`),B=t(function(e,t,n,r,i,a,o,s,l,u,d){let f=S.find(e=>e.alias===t);if(!(f===void 0&&(f=E.find(e=>e.alias===t),f===void 0))){if(n!=null)if(typeof n==`object`){let[e,t]=Object.entries(n)[0];f[e]=t}else f.bgColor=n;if(r!=null)if(typeof r==`object`){let[e,t]=Object.entries(r)[0];f[e]=t}else f.fontColor=r;if(i!=null)if(typeof i==`object`){let[e,t]=Object.entries(i)[0];f[e]=t}else f.borderColor=i;if(a!=null)if(typeof a==`object`){let[e,t]=Object.entries(a)[0];f[e]=t}else f.shadowing=a;if(o!=null)if(typeof o==`object`){let[e,t]=Object.entries(o)[0];f[e]=t}else f.shape=o;if(s!=null)if(typeof s==`object`){let[e,t]=Object.entries(s)[0];f[e]=t}else f.sprite=s;if(l!=null)if(typeof l==`object`){let[e,t]=Object.entries(l)[0];f[e]=t}else f.techn=l;if(u!=null)if(typeof u==`object`){let[e,t]=Object.entries(u)[0];f[e]=t}else f.legendText=u;if(d!=null)if(typeof d==`object`){let[e,t]=Object.entries(d)[0];f[e]=t}else f.legendSprite=d}},`updateElStyle`),V=t(function(e,t,n,r,i,a,o){let s=D.find(e=>e.from===t&&e.to===n);if(s!==void 0){if(r!=null)if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r;if(i!=null)if(typeof i==`object`){let[e,t]=Object.entries(i)[0];s[e]=t}else s.lineColor=i;if(a!=null)if(typeof a==`object`){let[e,t]=Object.entries(a)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(a);if(o!=null)if(typeof o==`object`){let[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(o)}},`updateRelStyle`),H=t(function(e,t,n){let r=A,i=j;if(typeof t==`object`){let e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if(typeof n==`object`){let e=Object.values(n)[0];i=parseInt(e)}else i=parseInt(n);r>=1&&(A=r),i>=1&&(j=i)},`updateLayoutConfig`),re=t(function(){return A},`getC4ShapeInRow`),ie=t(function(){return j},`getC4BoundaryInRow`),ae=t(function(){return w},`getCurrentBoundaryParse`),U=t(function(){return T},`getParentBoundaryParse`),W=t(function(e){return e==null?S:S.filter(t=>t.parentBoundary===e)},`getC4ShapeArray`),G=t(function(e){return S.find(t=>t.alias===e)},`getC4Shape`),K=t(function(e){return Object.keys(W(e))},`getC4ShapeKeys`),q=t(function(e){return e==null?E:E.filter(t=>t.parentBoundary===e)},`getBoundaries`),oe=q,se=t(function(){return D},`getRels`),ce=t(function(){return O},`getTitle`),le=t(function(e){k=e},`setWrap`),J=t(function(){return k},`autoWrap`),ue={addPersonOrSystem:I,addPersonOrSystemBoundary:ee,addContainer:L,addContainerBoundary:te,addComponent:R,addDeploymentNode:ne,popBoundaryParseStack:z,addRel:F,updateElStyle:B,updateRelStyle:V,updateLayoutConfig:H,autoWrap:J,setWrap:le,getC4ShapeArray:W,getC4Shape:G,getC4ShapeKeys:K,getBoundaries:q,getBoundarys:oe,getCurrentBoundaryParse:ae,getParentBoundaryParse:U,getRels:se,getTitle:ce,getC4Type:N,getC4ShapeInRow:re,getC4BoundaryInRow:ie,setAccTitle:a,getAccTitle:f,getAccDescription:o,setAccDescription:r,getConfig:t(()=>s().c4,`getConfig`),clear:t(function(){S=[],E=[{alias:`global`,label:{text:`global`},type:{text:`global`},tags:null,link:null,parentBoundary:``}],T=``,w=`global`,C=[``],D=[],C=[``],O=``,k=!1,A=4,j=2},`clear`),LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:t(function(e){O=i(e,s())},`setTitle`),setC4Type:P},de=t(function(e,t){return _(e,t)},`drawRect`),fe=t(function(e,t,n,r,i,a){let o=e.append(`image`);o.attr(`width`,t),o.attr(`height`,n),o.attr(`x`,r),o.attr(`y`,i);let s=a.startsWith(`data:image/png;base64`)?a:(0,y.sanitizeUrl)(a);o.attr(`xlink:href`,s)},`drawImage`),pe=t((e,t,n,r)=>{let i=e.append(`g`),a=0;for(let e of t){let t=e.textColor?e.textColor:`#444444`,o=e.lineColor?e.lineColor:`#444444`,s=e.offsetX?parseInt(e.offsetX):0,l=e.offsetY?parseInt(e.offsetY):0;if(a===0){let t=i.append(`line`);t.attr(`x1`,e.startPoint.x),t.attr(`y1`,e.startPoint.y),t.attr(`x2`,e.endPoint.x),t.attr(`y2`,e.endPoint.y),t.attr(`stroke-width`,`1`),t.attr(`stroke`,o),t.style(`fill`,`none`),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`),a=-1}else{let t=i.append(`path`);t.attr(`fill`,`none`).attr(`stroke-width`,`1`).attr(`stroke`,o).attr(`d`,`Mstartx,starty Qcontrolx,controly stopx,stopy `.replaceAll(`startx`,e.startPoint.x).replaceAll(`starty`,e.startPoint.y).replaceAll(`controlx`,e.startPoint.x+(e.endPoint.x-e.startPoint.x)/2-(e.endPoint.x-e.startPoint.x)/4).replaceAll(`controly`,e.startPoint.y+(e.endPoint.y-e.startPoint.y)/2).replaceAll(`stopx`,e.endPoint.x).replaceAll(`stopy`,e.endPoint.y)),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`)}let u=n.messageFont();Y(n)(e.label.text,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+l,e.label.width,e.label.height,{fill:t},u),e.techn&&e.techn.text!==``&&(u=n.messageFont(),Y(n)(`[`+e.techn.text+`]`,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+n.messageFontSize+5+l,Math.max(e.label.width,e.techn.width),e.techn.height,{fill:t,"font-style":`italic`},u))}},`drawRels`),me=t(function(e,t,n){let r=e.append(`g`),i=t.bgColor?t.bgColor:`none`,a=t.borderColor?t.borderColor:`#444444`,o=t.fontColor?t.fontColor:`black`,s={"stroke-width":1,"stroke-dasharray":`7.0,7.0`};t.nodeType&&(s={"stroke-width":1}),de(r,{x:t.x,y:t.y,fill:i,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s});let l=n.boundaryFont();l.fontWeight=`bold`,l.fontSize+=2,l.fontColor=o,Y(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:`#444444`},l),t.type&&t.type.text!==``&&(l=n.boundaryFont(),l.fontColor=o,Y(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:`#444444`},l)),t.descr&&t.descr.text!==``&&(l=n.boundaryFont(),l.fontSize-=2,l.fontColor=o,Y(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:`#444444`},l))},`drawBoundary`),he=t(function(e,t,n){let r=t.bgColor?t.bgColor:n[t.typeC4Shape.text+`_bg_color`],i=t.borderColor?t.borderColor:n[t.typeC4Shape.text+`_border_color`],a=t.fontColor?t.fontColor:`#FFFFFF`,o=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=`;switch(t.typeC4Shape.text){case`person`:o=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=`;break;case`external_person`:o=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=`;break}let s=e.append(`g`);s.attr(`class`,`person-man`);let l=v();switch(t.typeC4Shape.text){case`person`:case`external_person`:case`system`:case`external_system`:case`container`:case`external_container`:case`component`:case`external_component`:l.x=t.x,l.y=t.y,l.fill=r,l.width=t.width,l.height=t.height,l.stroke=i,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},de(s,l);break;case`system_db`:case`external_system_db`:case`container_db`:case`external_container_db`:case`component_db`:case`external_component_db`:s.append(`path`).attr(`fill`,r).attr(`stroke-width`,`0.5`).attr(`stroke`,i).attr(`d`,`Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height`.replaceAll(`startx`,t.x).replaceAll(`starty`,t.y).replaceAll(`half`,t.width/2).replaceAll(`height`,t.height)),s.append(`path`).attr(`fill`,`none`).attr(`stroke-width`,`0.5`).attr(`stroke`,i).attr(`d`,`Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10`.replaceAll(`startx`,t.x).replaceAll(`starty`,t.y).replaceAll(`half`,t.width/2));break;case`system_queue`:case`external_system_queue`:case`container_queue`:case`external_container_queue`:case`component_queue`:case`external_component_queue`:s.append(`path`).attr(`fill`,r).attr(`stroke-width`,`0.5`).attr(`stroke`,i).attr(`d`,`Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half`.replaceAll(`startx`,t.x).replaceAll(`starty`,t.y).replaceAll(`width`,t.width).replaceAll(`half`,t.height/2)),s.append(`path`).attr(`fill`,`none`).attr(`stroke-width`,`0.5`).attr(`stroke`,i).attr(`d`,`Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half`.replaceAll(`startx`,t.x+t.width).replaceAll(`starty`,t.y).replaceAll(`half`,t.height/2));break}let u=Ce(n,t.typeC4Shape.text);switch(s.append(`text`).attr(`fill`,a).attr(`font-family`,u.fontFamily).attr(`font-size`,u.fontSize-2).attr(`font-style`,`italic`).attr(`lengthAdjust`,`spacing`).attr(`textLength`,t.typeC4Shape.width).attr(`x`,t.x+t.width/2-t.typeC4Shape.width/2).attr(`y`,t.y+t.typeC4Shape.Y).text(`<<`+t.typeC4Shape.text+`>>`),t.typeC4Shape.text){case`person`:case`external_person`:fe(s,48,48,t.x+t.width/2-24,t.y+t.image.Y,o);break}let d=n[t.typeC4Shape.text+`Font`]();return d.fontWeight=`bold`,d.fontSize+=2,d.fontColor=a,Y(n)(t.label.text,s,t.x,t.y+t.label.Y,t.width,t.height,{fill:a},d),d=n[t.typeC4Shape.text+`Font`](),d.fontColor=a,t.techn&&t.techn?.text!==``?Y(n)(t.techn.text,s,t.x,t.y+t.techn.Y,t.width,t.height,{fill:a,"font-style":`italic`},d):t.type&&t.type.text!==``&&Y(n)(t.type.text,s,t.x,t.y+t.type.Y,t.width,t.height,{fill:a,"font-style":`italic`},d),t.descr&&t.descr.text!==``&&(d=n.personFont(),d.fontColor=a,Y(n)(t.descr.text,s,t.x,t.y+t.descr.Y,t.width,t.height,{fill:a},d)),t.height},`drawC4Shape`),ge=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),_e=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),ve=t(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),ye=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`)},`insertArrowHead`),be=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowend`).attr(`refX`,1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`)},`insertArrowEnd`),xe=t(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,18).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`)},`insertArrowFilledHead`),Se=t(function(e,t){let n=e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,16).attr(`refY`,4);n.append(`path`).attr(`fill`,`black`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1px`).attr(`d`,`M 9,2 V 6 L16,4 Z`),n.append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1px`).attr(`d`,`M 0,1 L 6,7 M 6,1 L 0,7`)},`insertArrowCrossHead`),Ce=t((e,t)=>({fontFamily:e[t+`FontFamily`],fontSize:e[t+`FontSize`],fontWeight:e[t+`FontWeight`]}),`getC4ShapeFont`),Y=(function(){function e(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}t(e,`byText`);function n(e,t,n,r,a,o,s,l){let{fontSize:u,fontFamily:f,fontWeight:p}=l,m=e.split(d.lineBreakRegex);for(let e=0;e=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>Ee)&&(t=this.nextData.startx+e.margin+Z.nextLinePaddingX,r=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=r+e.height,this.nextData.cnt=1),e.x=t,e.y=r,this.updateVal(this.data,`startx`,t,Math.min),this.updateVal(this.data,`starty`,r,Math.min),this.updateVal(this.data,`stopx`,n,Math.max),this.updateVal(this.data,`stopy`,i,Math.max),this.updateVal(this.nextData,`startx`,t,Math.min),this.updateVal(this.nextData,`starty`,r,Math.min),this.updateVal(this.nextData,`stopx`,n,Math.max),this.updateVal(this.nextData,`stopy`,i,Math.max)}init(e){this.name=``,this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ke(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},ke=t(function(e){u(Z,e),e.fontFamily&&(Z.personFontFamily=Z.systemFontFamily=Z.messageFontFamily=e.fontFamily),e.fontSize&&(Z.personFontSize=Z.systemFontSize=Z.messageFontSize=e.fontSize),e.fontWeight&&(Z.personFontWeight=Z.systemFontWeight=Z.messageFontWeight=e.fontWeight)},`setConf`),Ae=t((e,t)=>({fontFamily:e[t+`FontFamily`],fontSize:e[t+`FontSize`],fontWeight:e[t+`FontWeight`]}),`c4ShapeFont`),je=t(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),`boundaryFont`),Me=t(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`);function Q(e,t,n,r,i){if(!t[e].width)if(n)t[e].text=m(t[e].text,i,r),t[e].textLines=t[e].text.split(d.lineBreakRegex).length,t[e].width=i,t[e].height=g(t[e].text,r);else{let n=t[e].text.split(d.lineBreakRegex);t[e].textLines=n.length;let i=0;t[e].height=0,t[e].width=0;for(let a of n)t[e].width=Math.max(h(a,r),t[e].width),i=g(a,r),t[e].height=t[e].height+i}}t(Q,`calcC4ShapeTextWH`);var Ne=t(function(e,t,n){t.x=n.data.startx,t.y=n.data.starty,t.width=n.data.stopx-n.data.startx,t.height=n.data.stopy-n.data.starty,t.label.y=Z.c4ShapeMargin-35;let r=t.wrap&&Z.wrap,i=je(Z);i.fontSize+=2,i.fontWeight=`bold`,Q(`label`,t,r,i,h(t.label.text,i)),X.drawBoundary(e,t,Z)},`drawBoundary`),Pe=t(function(e,t,n,r){let i=0;for(let a of r){i=0;let r=n[a],o=Ae(Z,r.typeC4Shape.text);switch(o.fontSize-=2,r.typeC4Shape.width=h(`«`+r.typeC4Shape.text+`»`,o),r.typeC4Shape.height=o.fontSize+2,r.typeC4Shape.Y=Z.c4ShapePadding,i=r.typeC4Shape.Y+r.typeC4Shape.height-4,r.image={width:0,height:0,Y:0},r.typeC4Shape.text){case`person`:case`external_person`:r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height;break}r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height);let s=r.wrap&&Z.wrap,l=Z.width-Z.c4ShapePadding*2,u=Ae(Z,r.typeC4Shape.text);u.fontSize+=2,u.fontWeight=`bold`,Q(`label`,r,s,u,l),r.label.Y=i+8,i=r.label.Y+r.label.height,r.type&&r.type.text!==``?(r.type.text=`[`+r.type.text+`]`,Q(`type`,r,s,Ae(Z,r.typeC4Shape.text),l),r.type.Y=i+5,i=r.type.Y+r.type.height):r.techn&&r.techn.text!==``&&(r.techn.text=`[`+r.techn.text+`]`,Q(`techn`,r,s,Ae(Z,r.techn.text),l),r.techn.Y=i+5,i=r.techn.Y+r.techn.height);let d=i,f=r.label.width;r.descr&&r.descr.text!==``&&(Q(`descr`,r,s,Ae(Z,r.typeC4Shape.text),l),r.descr.Y=i+20,i=r.descr.Y+r.descr.height,f=Math.max(r.label.width,r.descr.width),d=i-r.descr.textLines*5),f+=Z.c4ShapePadding,r.width=Math.max(r.width||Z.width,f,Z.width),r.height=Math.max(r.height||Z.height,d,Z.height),r.margin=r.margin||Z.c4ShapeMargin,e.insert(r),X.drawC4Shape(t,r,Z)}e.bumpLastMargin(Z.c4ShapeMargin)},`drawC4ShapeArray`),$=class{static{t(this,`Point`)}constructor(e,t){this.x=e,this.y=t}},Fe=t(function(e,t){let n=e.x,r=e.y,i=t.x,a=t.y,o=n+e.width/2,s=r+e.height/2,l=Math.abs(n-i),u=Math.abs(r-a),d=u/l,f=e.height/e.width,p=null;return r==a&&ni?p=new $(n,s):n==i&&ra&&(p=new $(o,r)),n>i&&r=d?new $(n,s+d*e.width/2):new $(o-l/u*e.height/2,r+e.height):n=d?new $(n+e.width,s+d*e.width/2):new $(o+l/u*e.height/2,r+e.height):na?p=f>=d?new $(n+e.width,s-d*e.width/2):new $(o+e.height/2*l/u,r):n>i&&r>a&&(p=f>=d?new $(n,s-e.width/2*d):new $(o-e.height/2*l/u,r)),p},`getIntersectPoint`),Ie=t(function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let r=Fe(e,n);return n.x=e.x+e.width/2,n.y=e.y+e.height/2,{startPoint:r,endPoint:Fe(t,n)}},`getIntersectPoints`),Le=t(function(e,t,n,r,i){let a=0;for(let e of t){a+=1;let t=e.wrap&&Z.wrap,i=Me(Z);r.db.getC4Type()===`C4Dynamic`&&(e.label.text=a+`: `+e.label.text);let o=h(e.label.text,i);Q(`label`,e,t,i,o),e.techn&&e.techn.text!==``&&(o=h(e.techn.text,i),Q(`techn`,e,t,i,o)),e.descr&&e.descr.text!==``&&(o=h(e.descr.text,i),Q(`descr`,e,t,i,o));let s=Ie(n(e.from),n(e.to));e.startPoint=s.startPoint,e.endPoint=s.endPoint}X.drawRels(e,t,Z,i)},`drawRels`);function Re(e,t,n,r,i){let a=new Oe(i);a.data.widthLimit=n.data.widthLimit/Math.min(De,r.length);for(let[o,s]of r.entries()){let r=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=r,r=s.image.Y+s.image.height);let l=s.wrap&&Z.wrap,u=je(Z);if(u.fontSize+=2,u.fontWeight=`bold`,Q(`label`,s,l,u,a.data.widthLimit),s.label.Y=r+8,r=s.label.Y+s.label.height,s.type&&s.type.text!==``&&(s.type.text=`[`+s.type.text+`]`,Q(`type`,s,l,je(Z),a.data.widthLimit),s.type.Y=r+5,r=s.type.Y+s.type.height),s.descr&&s.descr.text!==``){let e=je(Z);e.fontSize-=2,Q(`descr`,s,l,e,a.data.widthLimit),s.descr.Y=r+20,r=s.descr.Y+s.descr.height}if(o==0||o%De===0){let e=n.data.startx+Z.diagramMarginX,t=n.data.stopy+Z.diagramMarginY+r;a.setData(e,e,t,t)}else{let e=a.data.stopx===a.data.startx?a.data.startx:a.data.stopx+Z.diagramMarginX,t=a.data.starty;a.setData(e,e,t,t)}a.name=s.alias;let d=i.db.getC4ShapeArray(s.alias),f=i.db.getC4ShapeKeys(s.alias);f.length>0&&Pe(a,e,d,f),t=s.alias;let p=i.db.getBoundaries(t);p.length>0&&Re(e,t,a,p,i),s.alias!==`global`&&Ne(e,s,a),n.data.stopy=Math.max(a.data.stopy+Z.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(a.data.stopx+Z.c4ShapeMargin,n.data.stopx),we=Math.max(we,n.data.stopx),Te=Math.max(Te,n.data.stopy)}}t(Re,`drawInsideBoundary`);var ze={drawPersonOrSystemArray:Pe,drawBoundary:Ne,setConf:ke,draw:t(function(t,r,i,a){Z=s().c4;let o=s().securityLevel,u;o===`sandbox`&&(u=n(`#i`+r));let d=n(o===`sandbox`?u.nodes()[0].contentDocument.body:`body`),f=a.db;a.db.setWrap(Z.wrap),Ee=f.getC4ShapeInRow(),De=f.getC4BoundaryInRow(),e.debug(`C:${JSON.stringify(Z,null,2)}`);let p=o===`sandbox`?d.select(`[id="${r}"]`):n(`[id="${r}"]`);X.insertComputerIcon(p,r),X.insertDatabaseIcon(p,r),X.insertClockIcon(p,r);let m=new Oe(a);m.setData(Z.diagramMarginX,Z.diagramMarginX,Z.diagramMarginY,Z.diagramMarginY),m.data.widthLimit=screen.availWidth,we=Z.diagramMarginX,Te=Z.diagramMarginY;let h=a.db.getTitle();Re(p,``,m,a.db.getBoundaries(``),a),X.insertArrowHead(p,r),X.insertArrowEnd(p,r),X.insertArrowCrossHead(p,r),X.insertArrowFilledHead(p,r),Le(p,a.db.getRels(),a.db.getC4Shape,a,r),m.data.stopx=we,m.data.stopy=Te;let g=m.data,_=g.stopy-g.starty+2*Z.diagramMarginY,v=g.stopx-g.startx+2*Z.diagramMarginX;h&&p.append(`text`).text(h).attr(`x`,(g.stopx-g.startx)/2-4*Z.diagramMarginX).attr(`y`,g.starty+Z.diagramMarginY),l(p,_,v,Z.useMaxWidth);let y=h?60:0;p.attr(`viewBox`,g.startx-Z.diagramMarginX+` -`+(Z.diagramMarginY+y)+` `+v+` `+(_+y)),e.debug(`models:`,g)},`draw`)},Be={parser:x,db:ue,renderer:ze,styles:t(e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +`,`getStyles`),init:t(({c4:e,wrap:t})=>{ze.setConf(e),ue.setWrap(t)},`init`)};export{Be as diagram}; \ No newline at end of file diff --git a/webui/assets/cameligo-BYWbA6IW.js b/webui/assets/cameligo-BYWbA6IW.js new file mode 100644 index 0000000000000000000000000000000000000000..07eeae75c541b6c33513c9134d4b1f1c95f53be0 --- /dev/null +++ b/webui/assets/cameligo-BYWbA6IW.js @@ -0,0 +1 @@ +var e={comments:{lineComment:`//`,blockComment:[`(*`,`*)`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`},{open:`(*`,close:`*)`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`},{open:`(*`,close:`*)`}]},t={defaultToken:``,tokenPostfix:`.cameligo`,ignoreCase:!0,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],keywords:`abs.assert.block.Bytes.case.Crypto.Current.else.failwith.false.for.fun.if.in.let.let%entry.let%init.List.list.Map.map.match.match%nat.mod.not.operation.Operation.of.record.Set.set.sender.skip.source.String.then.to.true.type.with`.split(`.`),typeKeywords:[`int`,`unit`,`string`,`tz`,`nat`,`bool`],operators:[`=`,`>`,`<`,`<=`,`>=`,`<>`,`:`,`:=`,`and`,`mod`,`or`,`+`,`-`,`*`,`/`,`@`,`&`,`^`,`%`,`->`,`<-`,`&&`,`||`],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/\$[0-9a-fA-F]{1,16}/,`number.hex`],[/\d+/,`number`],[/[;,.]/,`delimiter`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'/,`string`,`@string`],[/'[^\\']'/,`string`],[/'/,`string.invalid`],[/\#\d+/,`string`]],comment:[[/[^\(\*]+/,`comment`],[/\*\)/,`comment`,`@pop`],[/\(\*/,`comment`]],string:[[/[^\\']+/,`string`],[/\\./,`string.escape.invalid`],[/'/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,`white`],[/\(\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]]}};export{e as conf,t as language}; \ No newline at end of file diff --git a/webui/assets/channel-Z-HM_XBZ.js b/webui/assets/channel-Z-HM_XBZ.js new file mode 100644 index 0000000000000000000000000000000000000000..e65f5796d45d892b68d03c575eca3ac02615a7e6 --- /dev/null +++ b/webui/assets/channel-Z-HM_XBZ.js @@ -0,0 +1 @@ +import{it as e,rt as t}from"./chunk-ICPOFSXX-BhJj4Z4R.js";var n=(n,r)=>e.lang.round(t.parse(n)[r]);export{n as t}; \ No newline at end of file diff --git a/webui/assets/chunk-2KRD3SAO-B3BH0DSA.js b/webui/assets/chunk-2KRD3SAO-B3BH0DSA.js new file mode 100644 index 0000000000000000000000000000000000000000..785a0ed151be5f98c355e35783d6f949e3b54a06 --- /dev/null +++ b/webui/assets/chunk-2KRD3SAO-B3BH0DSA.js @@ -0,0 +1 @@ +import{_ as e,g as t,h as n,i as r,m as i,s as a,t as o,u as s,v as c}from"./chunk-K5T4RW27-BU8zzKFc.js";var l=class extends o{static{i(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},u={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new r,`ValueConverter`)}};function d(r=n){let i=t(c(r),a),o=t(e({shared:i}),s,u);return i.ServiceRegistry.register(o),{shared:i,Radar:o}}i(d,`createRadarServices`);export{d as n,u as t}; \ No newline at end of file diff --git a/webui/assets/chunk-336JU56O-AgjSGONQ.js b/webui/assets/chunk-336JU56O-AgjSGONQ.js new file mode 100644 index 0000000000000000000000000000000000000000..54522cba48920882a4e022d2ec82d5adfdb197af --- /dev/null +++ b/webui/assets/chunk-336JU56O-AgjSGONQ.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-BN0FEuOt.js","assets/index-Cl8-DFW_.js","assets/chunk-Dlc7tRH4.js","assets/preload-helper-CPuF8Owr.js","assets/_baseFor-tDInUmcl.js","assets/create-EseJ7qR2.js","assets/app-IytcAxLh.js","assets/index-BTGffw30.css","assets/chunk-U2HBQHQK-C4Z8_HX4.js","assets/src-DZYWZEqD.js","assets/chunk-5PVQY5BW-D8dVtMiH.js","assets/dist-Ur6PXDdt.js","assets/chunk-ICPOFSXX-BhJj4Z4R.js","assets/dagre-D9ZGfMfF.js","assets/graphlib-BsE9CGET.js","assets/_baseUniq-_HXxrvbp.js","assets/_arrayReduce-Cj7sZjrj.js","assets/isEmpty-_CIYlAqN.js","assets/min-XT6kpV0t.js","assets/now-CeSGHkSX.js","assets/clone-BpXNvS5n.js","assets/chunk-5FUZZQ4R-dz-eHLU2.js","assets/chunk-X2U36JSP-BrQ3X179.js","assets/chunk-ZZ45TVLE-620quLQs.js","assets/rough.esm-6CnTHTkH.js","assets/chunk-BSJP7CBP-DfPpUNd1.js","assets/chunk-ENJZ2VHE-BgCfVyME.js","assets/line-CkXJICAw.js","assets/path-B0d9ncVi.js","assets/array-BwJyW1Dp.js","assets/cose-bilkent-S5V4N54A-BW7WHBib.js","assets/cytoscape.esm-DaXdO_t0.js"])))=>i.map(i=>d[i]); +import{t as e}from"./preload-helper-CPuF8Owr.js";import{g as t,h as n}from"./src-DZYWZEqD.js";import{s as r,y as i}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{u as a}from"./chunk-5PVQY5BW-D8dVtMiH.js";import{a as o,i as s,s as c}from"./chunk-5FUZZQ4R-dz-eHLU2.js";import{a as l,i as u,n as d,r as f}from"./chunk-ENJZ2VHE-BgCfVyME.js";var p={common:r,getConfig:i,insertCluster:s,insertEdge:d,insertEdgeLabel:f,insertMarkers:u,insertNode:o,interpolateToCurve:a,labelHelper:c,log:t,positionEdgeLabel:l},m={},h=n(e=>{for(let t of e)m[t.name]=t},`registerLayoutLoaders`);n(()=>{h([{name:`dagre`,loader:n(async()=>await e(()=>import(`./dagre-KV5264BT-BN0FEuOt.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])),`loader`)},...[{name:`cose-bilkent`,loader:n(async()=>await e(()=>import(`./cose-bilkent-S5V4N54A-BW7WHBib.js`),__vite__mapDeps([30,2,31,9])),`loader`)}]])},`registerDefaultLayoutLoaders`)();var g=n(async(e,t)=>{if(!(e.layoutAlgorithm in m))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=m[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:c}=a,l=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,c).attr(`stop-opacity`,1)}return r.render(e,t,p,{algorithm:n.algorithm})},`render`),_=n((e=``,{fallback:n=`dagre`}={})=>{if(e in m)return e;if(n in m)return t.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw Error(`Both layout algorithms ${e} and ${n} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{h as n,g as r,_ as t}; \ No newline at end of file diff --git a/webui/assets/chunk-426QAEUC-Cy3oYJ1h.js b/webui/assets/chunk-426QAEUC-Cy3oYJ1h.js new file mode 100644 index 0000000000000000000000000000000000000000..0ec3368acac1b6f2716fdf91a32e8e56c14e5909 --- /dev/null +++ b/webui/assets/chunk-426QAEUC-Cy3oYJ1h.js @@ -0,0 +1 @@ +import{h as e,p as t}from"./src-DZYWZEqD.js";import{b as n}from"./chunk-ICPOFSXX-BhJj4Z4R.js";var r=e(e=>{let{securityLevel:r}=n(),i=t(`body`);return r===`sandbox`&&(i=t((t(`#i${e}`).node()?.contentDocument??document).body)),i.select(`#${e}`)},`selectSvgElement`);export{r as t}; \ No newline at end of file diff --git a/webui/assets/chunk-4BX2VUAB-B9EB-szC.js b/webui/assets/chunk-4BX2VUAB-B9EB-szC.js new file mode 100644 index 0000000000000000000000000000000000000000..983ec0fe324ae1be7caa09e49ce5e0175db646f3 --- /dev/null +++ b/webui/assets/chunk-4BX2VUAB-B9EB-szC.js @@ -0,0 +1 @@ +import{h as e}from"./src-DZYWZEqD.js";function t(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}e(t,`populateCommonDb`);export{t}; \ No newline at end of file diff --git a/webui/assets/chunk-4TB4RGXK-WLjZEI1j.js b/webui/assets/chunk-4TB4RGXK-WLjZEI1j.js new file mode 100644 index 0000000000000000000000000000000000000000..377943ed4f2ab8e7559dac0dc289b381e03846b6 --- /dev/null +++ b/webui/assets/chunk-4TB4RGXK-WLjZEI1j.js @@ -0,0 +1,206 @@ +import{g as e,h as t,p as n}from"./src-DZYWZEqD.js";import{B as r,C as i,L as a,V as o,W as s,Z as c,_ as l,a as u,b as d,j as f,s as p,v as m}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{h,s as g}from"./chunk-5PVQY5BW-D8dVtMiH.js";import{t as _}from"./chunk-FMBD7UC4-CZ7KcSyF.js";import{t as v}from"./chunk-YZCP3GAM-BG6I4L-b.js";import{t as y}from"./chunk-55IACEB6--yvQRzzZ.js";import{t as b}from"./chunk-EDXVE4YY-PDqXJqq9.js";import{r as x,t as S}from"./chunk-336JU56O-AgjSGONQ.js";var C=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,18],r=[1,19],i=[1,20],a=[1,41],o=[1,26],s=[1,42],c=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],ee=[1,63],P=[1,64],F=[1,8,9,41],te=[1,77],I=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],L=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],R=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],ne=[13,60,68,69,70,71,72,86,100,102,103],B=[1,102],V=[1,120],H=[1,116],U=[1,112],W=[1,118],G=[1,113],K=[1,114],q=[1,115],J=[1,117],Y=[1,119],re=[22,50,60,61,82,86,87,88,89,90],X=[1,8,9,39,41,44,46],Z=[1,8,9,22],ie=[1,150],ae=[1,8,9,61],Q=[1,8,9,22,50,60,61,82,86,87,88,89,90],oe={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]);break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]);break;case 36:this.$=a[s],r.addNamespace(a[s]);break;case 37:this.$=[[a[s]],[]];break;case 38:this.$=[[a[s-1]],[]];break;case 39:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 40:this.$=[[],[a[s]]];break;case 41:this.$=[[],[a[s-1]]];break;case 42:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:r.setCssClass(a[s-2],a[s]);break;case 45:r.addMembers(a[s-3],a[s-1]);break;case 47:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 48:r.addAnnotation(a[s-3],a[s-1]);break;case 49:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 50:r.addAnnotation(a[s-5],a[s-3]);break;case 51:this.$=a[s],r.addClass(a[s]);break;case 52:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 56:r.addAnnotation(a[s],a[s-2]);break;case 57:case 70:this.$=[a[s]];break;case 58:a[s].push(a[s-1]),this.$=a[s];break;case 59:break;case 60:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 61:break;case 62:break;case 63:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 64:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 65:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 66:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 67:this.$=r.addNote(a[s],a[s-1]);break;case 68:this.$=r.addNote(a[s]);break;case 69:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 71:this.$=a[s-2].concat([a[s]]);break;case 72:r.setDirection(`TB`);break;case 73:r.setDirection(`BT`);break;case 74:r.setDirection(`RL`);break;case 75:r.setDirection(`LR`);break;case 76:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 77:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 78:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 79:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 80:this.$=r.relationType.AGGREGATION;break;case 81:this.$=r.relationType.EXTENSION;break;case 82:this.$=r.relationType.COMPOSITION;break;case 83:this.$=r.relationType.DEPENDENCY;break;case 84:this.$=r.relationType.LOLLIPOP;break;case 85:this.$=r.lineType.LINE;break;case 86:this.$=r.lineType.DOTTED_LINE;break;case 87:case 93:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 88:case 94:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 89:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 90:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 91:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 92:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 95:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 96:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 97:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 98:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 99:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 100:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 101:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 102:r.setCssClass(a[s-1],a[s]);break;case 103:this.$=[a[s]];break;case 104:a[s-2].push(a[s]),this.$=a[s-2];break;case 106:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:n,35:r,37:i,38:22,42:a,43:23,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:ee,74:P}),{39:[1,65]},e(F,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,61]),e(O,[2,62]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:te,55:76},{58:78,60:[1,79]},e(O,[2,72]),e(O,[2,73]),e(O,[2,74]),e(O,[2,75]),e(I,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),e(I,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},e(L,[2,129]),e(L,[2,130]),e(L,[2,131]),e(L,[2,132]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:n,35:r,37:i,42:a,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:n,35:r,37:i,38:22,42:a,43:23,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:ee,74:P},e(O,[2,60]),{67:93,73:ee,74:P},e(R,[2,79],{66:94,68:k,69:A,70:j,71:M,72:N}),e(z,[2,80]),e(z,[2,81]),e(z,[2,82]),e(z,[2,83]),e(z,[2,84]),e(ne,[2,85]),e(ne,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:s,54:u,56:d},{16:99,60:p,86:C,100:w,102:T},{41:[1,101],45:100,51:B},{16:103,60:p,86:C,100:w,102:T},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:V,50:H,59:109,60:U,82:W,84:110,85:111,86:G,87:K,88:q,89:J,90:Y},{60:[1,121]},{13:te,55:122},e(F,[2,68]),e(F,[2,134]),{22:V,50:H,59:123,60:U,61:[1,124],82:W,84:110,85:111,86:G,87:K,88:q,89:J,90:Y},e(re,[2,70]),{16:39,17:40,19:125,60:p,86:C,100:w,102:T,103:E},e(I,[2,16]),e(I,[2,17]),e(I,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:p,86:C,100:w,102:T,103:E},{39:[2,10]},e(X,[2,51],{11:128,12:[1,129]}),e(D,[2,7]),{9:[1,130]},e(Z,[2,63]),{16:39,17:40,19:131,60:p,86:C,100:w,102:T,103:E},{13:[1,133],16:39,17:40,19:132,60:p,86:C,100:w,102:T,103:E},e(R,[2,78],{66:134,68:k,69:A,70:j,71:M,72:N}),e(R,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:s,54:u,56:d},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},e(F,[2,44],{39:[1,139]}),{41:[1,140]},e(F,[2,46]),{41:[2,57],45:141,51:B},{47:[1,142]},{16:39,17:40,19:143,60:p,86:C,100:w,102:T,103:E},e(O,[2,87],{13:[1,144]}),e(O,[2,89],{13:[1,146],77:[1,145]}),e(O,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},e(O,[2,101],{61:ie}),e(ae,[2,103],{85:151,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),e(Q,[2,105]),e(Q,[2,107]),e(Q,[2,108]),e(Q,[2,109]),e(Q,[2,110]),e(Q,[2,111]),e(Q,[2,112]),e(Q,[2,113]),e(Q,[2,114]),e(Q,[2,115]),e(O,[2,102]),e(F,[2,67]),e(O,[2,69],{61:ie}),{60:[1,152]},e(I,[2,14]),{15:153,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{39:[2,12]},e(X,[2,52]),{13:[1,154]},{1:[2,4]},e(Z,[2,65]),e(Z,[2,64]),{16:39,17:40,19:155,60:p,86:C,100:w,102:T,103:E},e(R,[2,76]),e(O,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:s,54:u,56:d},{24:97,30:98,40:158,41:[2,41],43:23,48:s,54:u,56:d},{45:159,51:B},e(F,[2,45]),{41:[2,58]},e(F,[2,48],{39:[1,160]}),e(O,[2,56]),e(O,[2,88]),e(O,[2,90]),e(O,[2,91],{77:[1,161]}),e(O,[2,94]),e(O,[2,95],{13:[1,162]}),e(O,[2,97],{13:[1,164],77:[1,163]}),{22:V,50:H,60:U,82:W,84:165,85:111,86:G,87:K,88:q,89:J,90:Y},e(Q,[2,106]),e(re,[2,71]),{39:[2,11]},{14:[1,166]},e(Z,[2,66]),e(O,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:B},e(O,[2,92]),e(O,[2,96]),e(O,[2,98]),e(O,[2,99],{77:[1,170]}),e(ae,[2,104],{85:151,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),e(X,[2,8]),e(F,[2,47]),{41:[1,171]},e(F,[2,50]),e(O,[2,100]),e(F,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};oe.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:t(function(e,t,n,r){switch(n){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin(`acc_title`),33;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),35;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return`EDGE_STATE`;case 18:this.begin(`callback_name`);break;case 19:this.popState();break;case 20:this.popState(),this.begin(`callback_args`);break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return`STR`;case 26:this.begin(`string`);break;case 27:return 82;case 28:return 57;case 29:return this.begin(`namespace`),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin(`namespace-body`),39;case 33:return this.popState(),41;case 34:return`EOF_IN_STRUCT`;case 35:return 8;case 36:break;case 37:return`EDGE_STATE`;case 38:return this.begin(`class`),48;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin(`class-body`),39;case 43:return this.popState(),41;case 44:return`EOF_IN_STRUCT`;case 45:return`EDGE_STATE`;case 46:return`OPEN_IN_STRUCT`;case 47:break;case 48:return`MEMBER`;case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 46;case 56:return 47;case 57:return 81;case 58:this.popState();break;case 59:return`GENERICTYPE`;case 60:this.begin(`generic`);break;case 61:this.popState();break;case 62:return`BQUOTE_STR`;case 63:this.begin(`bqstring`);break;case 64:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return`PLUS`;case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return`EQUALS`;case 88:return`EQUALS`;case 89:return 60;case 90:return 12;case 91:return 14;case 92:return`PUNCTUATION`;case 93:return 86;case 94:return 102;case 95:return 50;case 96:return 50;case 97:return 9}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}}})();function $(){this.yy={}}return t($,`Parser`),$.prototype=oe,oe.Parser=$,new $})();C.parser=C;var w=C,T=[`#`,`+`,`~`,`-`,``],E=class{static{t(this,`ClassMember`)}constructor(e,t){this.memberType=t,this.visibility=``,this.classifier=``,this.text=``;let n=a(e,d());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+f(this.id);this.memberType===`method`&&(e+=`(${f(this.parameters.trim())})`,this.returnType&&(e+=` : `+f(this.returnType))),e=e.trim();let t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t=``;if(this.memberType===`method`){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(n){let e=n[1]?n[1].trim():``;if(T.includes(e)&&(this.visibility=e),this.id=n[2],this.parameters=n[3]?n[3].trim():``,t=n[4]?n[4].trim():``,this.returnType=n[5]?n[5].trim():``,t===``){let e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=e.length,r=e.substring(0,1),i=e.substring(n-1);T.includes(r)&&(this.visibility=r),/[$*]/.exec(i)&&(t=i),this.id=e.substring(this.visibility===``?0:1,t===``?n:n-1)}this.classifier=t,this.id=this.id.startsWith(` `)?` `+this.id.trim():this.id.trim();let n=`${this.visibility?`\\`+this.visibility:``}${f(this.id)}${this.memberType===`method`?`(${f(this.parameters)})${this.returnType?` : `+f(this.returnType):``}`:``}`;this.text=n.replaceAll(`<`,`<`).replaceAll(`>`,`>`),this.text.startsWith(`\\<`)&&(this.text=this.text.replace(`\\<`,`~`))}parseClassifier(){switch(this.classifier){case`*`:return`font-style:italic;`;case`$`:return`text-decoration:underline;`;default:return``}}},D=`classId-`,O=0,k=t(e=>p.sanitizeText(e,d()),`sanitizeText`),A=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.diagramId=``,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=t(e=>{let t=v();n(e).select(`svg`).selectAll(`g`).filter(function(){return n(this).attr(`title`)!==null}).on(`mouseover`,e=>{let r=n(e.currentTarget),i=r.attr(`title`);if(!i)return;let a=e.currentTarget.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.html(c.sanitize(i)).style(`left`,`${window.scrollX+a.left+a.width/2}px`).style(`top`,`${window.scrollY+a.bottom+4}px`),r.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),n(e.currentTarget).classed(`hover`,!1)})},`setupToolTips`),this.direction=`TB`,this.setAccTitle=o,this.getAccTitle=m,this.setAccDescription=r,this.getAccDescription=l,this.setDiagramTitle=s,this.getDiagramTitle=i,this.getConfig=t(()=>d().class,`getConfig`),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{t(this,`ClassDB`)}splitClassNameAndType(e){let t=p.sanitizeText(e,d()),n=``,r=t;if(t.indexOf(`~`)>0){let e=t.split(`~`);r=k(e[0]),n=k(e[1])}return{className:r,type:n}}setClassLabel(e,t){let n=p.sanitizeText(e,d());t&&=k(t);let{className:r}=this.splitClassNameAndType(n);this.classes.get(r).label=t,this.classes.get(r).text=`${t}${this.classes.get(r).type?`<${this.classes.get(r).type}>`:``}`}addClass(e){let t=p.sanitizeText(e,d()),{className:n,type:r}=this.splitClassNameAndType(t);if(this.classes.has(n))return;let i=p.sanitizeText(n,d());this.classes.set(i,{id:i,type:r,label:i,text:`${i}${r?`<${r}>`:``}`,shape:`classBox`,cssClasses:`default`,methods:[],members:[],annotations:[],styles:[],domId:D+i+`-`+O}),O++}addInterface(e,t){let n={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){let t=p.sanitizeText(e,d());if(this.classes.has(t)){let e=this.classes.get(t).domId;return this.diagramId?`${this.diagramId}-${e}`:e}throw Error(`Class not found: `+t)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.diagramId=``,this.direction=`TB`,u()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){let t=typeof e==`number`?`note${e}`:e;return this.notes.get(t)}getNotes(){return this.notes}addRelation(t){e.debug(`Adding relation: `+JSON.stringify(t));let n=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1===this.relationType.LOLLIPOP&&!n.includes(t.relation.type2)?(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1=`interface${this.interfaces.length-1}`):t.relation.type2===this.relationType.LOLLIPOP&&!n.includes(t.relation.type1)?(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2=`interface${this.interfaces.length-1}`):(this.addClass(t.id1),this.addClass(t.id2)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=p.sanitizeText(t.relationTitle1.trim(),d()),t.relationTitle2=p.sanitizeText(t.relationTitle2.trim(),d()),this.relations.push(t)}addAnnotation(e,t){let n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(t)}addMember(e,t){this.addClass(e);let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);if(typeof t==`string`){let e=t.trim();e.startsWith(`<<`)&&e.endsWith(`>>`)?r.annotations.push(k(e.substring(2,e.length-2))):e.indexOf(`)`)>0?r.methods.push(new E(e,`method`)):e&&r.members.push(new E(e,`attribute`))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){let n=this.notes.size,r={id:`note${n}`,class:t,text:e,index:n};return this.notes.set(r.id,r),r.id}cleanupLabel(e){return e.startsWith(`:`)&&(e=e.substring(1)),k(e.trim())}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=D+n);let r=this.classes.get(n);r&&(r.cssClasses+=` `+t)})}defineClass(e,t){for(let n of e){let e=this.styleClasses.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,e)),t&&t.forEach(t=>{if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(n)&&e.styles.push(...t.flatMap(e=>e.split(`,`)))})}}setTooltip(e,t){e.split(`,`).forEach(e=>{t!==void 0&&(this.classes.get(e).tooltip=k(t))})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,n){let r=d();e.split(`,`).forEach(e=>{let i=e;/\d/.exec(e[0])&&(i=D+i);let a=this.classes.get(i);a&&(a.link=h.formatUrl(t,r),r.securityLevel===`sandbox`?a.linkTarget=`_top`:typeof n==`string`?a.linkTarget=k(n):a.linkTarget=`_blank`)}),this.setCssClass(e,`clickable`)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFunc(e,t,n),this.classes.get(e).haveCallback=!0}),this.setCssClass(e,`clickable`)}setClickFunc(e,t,n){let r=p.sanitizeText(e,d());if(d().securityLevel!==`loose`||t===void 0)return;let i=r;if(this.classes.has(i)){let e=[];if(typeof n==`string`){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{let n=this.lookUpDomId(i),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{h.runFunc(t,...e)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(e)})}escapeHtml(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}getDirection(){return this.direction}setDirection(e){this.direction=e}addNamespace(e){this.namespaces.has(e)||(this.namespaces.set(e,{id:e,classes:new Map,notes:new Map,children:new Map,domId:D+e+`-`+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t,n){if(this.namespaces.has(e)){for(let n of t){let{className:t}=this.splitClassNameAndType(n),r=this.getClass(t);r.parent=e,this.namespaces.get(e).classes.set(t,r)}for(let t of n){let n=this.getNote(t);n.parent=e,this.namespaces.get(e).notes.set(t,n)}}}setCssStyle(e,t){let n=this.classes.get(e);if(!(!t||!n))for(let e of t)e.includes(`,`)?n.styles.push(...e.split(`,`)):n.styles.push(e)}getArrowMarker(e){let t;switch(e){case 0:t=`aggregation`;break;case 1:t=`extension`;break;case 2:t=`composition`;break;case 3:t=`dependency`;break;case 4:t=`lollipop`;break;default:t=`none`}return t}getData(){let e=[],t=[],n=d();for(let t of this.namespaces.values()){let r={id:t.id,label:t.id,isGroup:!0,padding:n.class.padding??16,shape:`rect`,cssStyles:[],look:n.look};e.push(r)}for(let t of this.classes.values()){let r={...t,type:void 0,isGroup:!1,parentId:t.parent,look:n.look};e.push(r)}for(let r of this.notes.values()){let i={id:r.id,label:r.text,isGroup:!1,shape:`note`,padding:n.class.padding??6,cssStyles:[`text-align: left`,`white-space: nowrap`,`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:r.parent,labelType:`markdown`};e.push(i);let a=this.classes.get(r.class)?.id;if(a){let e={id:`edgeNote${r.index}`,start:r.id,end:a,type:`normal`,thickness:`normal`,classes:`relation`,arrowTypeStart:`none`,arrowTypeEnd:`none`,arrowheadStyle:``,labelStyle:[``],style:[`fill: none`],pattern:`dotted`,look:n.look};t.push(e)}}for(let t of this.interfaces){let r={id:t.id,label:t.label,isGroup:!1,shape:`rect`,cssStyles:[`opacity: 0;`],look:n.look};e.push(r)}let r=0;for(let e of this.relations){r++;let i={id:g(e.id1,e.id2,{prefix:`id`,counter:r}),start:e.id1,end:e.id2,type:`normal`,label:e.title,labelpos:`c`,thickness:`normal`,classes:`relation`,arrowTypeStart:this.getArrowMarker(e.relation.type1),arrowTypeEnd:this.getArrowMarker(e.relation.type2),startLabelRight:e.relationTitle1===`none`?``:e.relationTitle1,endLabelLeft:e.relationTitle2===`none`?``:e.relationTitle2,arrowheadStyle:``,labelStyle:[`display: inline-block`],style:e.style||``,pattern:e.relation.lineType==1?`dashed`:`solid`,look:n.look,labelType:`markdown`};t.push(i)}return{nodes:e,edges:t,other:{},config:n,direction:this.getDirection()}}},j=t(e=>`g.classGroup text { + fill: ${e.nodeBorder||e.classText}; + stroke: none; + font-family: ${e.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .cluster rect { + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span { + color: ${e.titleColor}; + } + +.nodeLabel, .edgeLabel { + color: ${e.classText}; +} + +.noteLabel .nodeLabel, .noteLabel .edgeLabel { + color: ${e.noteTextColor}; +} +.edgeLabel .label rect { + fill: ${e.mainBkg}; +} +.label text { + fill: ${e.classText}; +} + +.labelBkg { + background: ${e.mainBkg}; +} +.edgeLabel .label span { + background: ${e.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${e.strokeWidth}; + } + + +.divider { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.classGroup line { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${e.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth}; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +[id$="-compositionStart"], .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-compositionEnd"], .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyStart"], .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyEnd"], .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionStart"], .extension { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionEnd"], .extension { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationStart"], .aggregation { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationEnd"], .aggregation { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopStart"], .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopEnd"], .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; + line-height: initial; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} + +.edgeLabel[data-look="neo"] { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; +} + ${_()} +`,`getStyles`),M={getClasses:t(function(e,t){return t.db.getClasses()},`getClasses`),draw:t(async function(t,n,r,i){e.info(`REF0:`),e.info(`Drawing class diagram (v3)`,n);let{securityLevel:a,state:o,layout:s}=d();i.db.setDiagramId(n);let c=i.db.getData(),l=y(n,a);c.type=i.type,c.layoutAlgorithm=S(s),c.nodeSpacing=o?.nodeSpacing||50,c.rankSpacing=o?.rankSpacing||50,c.markers=[`aggregation`,`extension`,`composition`,`dependency`,`lollipop`],c.diagramId=n,await x(c,l),h.insertTitle(l,`classDiagramTitleText`,o?.titleTopMargin??25,i.db.getDiagramTitle()),b(l,8,`classDiagram`,o?.useMaxWidth??!0)},`draw`),getDir:t((e,t=`TB`)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`)};export{j as i,w as n,M as r,A as t}; \ No newline at end of file diff --git a/webui/assets/chunk-55IACEB6--yvQRzzZ.js b/webui/assets/chunk-55IACEB6--yvQRzzZ.js new file mode 100644 index 0000000000000000000000000000000000000000..9080c07e65ee65a77dcc8e8972d929c10c1984bc --- /dev/null +++ b/webui/assets/chunk-55IACEB6--yvQRzzZ.js @@ -0,0 +1 @@ +import{h as e,p as t}from"./src-DZYWZEqD.js";var n=e((e,n)=>{let r;return n===`sandbox`&&(r=t(`#i`+e)),t(n===`sandbox`?r.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`);export{n as t}; \ No newline at end of file diff --git a/webui/assets/chunk-5FUZZQ4R-dz-eHLU2.js b/webui/assets/chunk-5FUZZQ4R-dz-eHLU2.js new file mode 100644 index 0000000000000000000000000000000000000000..92b4093c3f9fa5155c7e009d6f1463c58222f39c --- /dev/null +++ b/webui/assets/chunk-5FUZZQ4R-dz-eHLU2.js @@ -0,0 +1,62 @@ +import{g as e,h as t,p as n}from"./src-DZYWZEqD.js";import{L as r,R as i,b as a,h as o,j as s,k as c,w as l,y as u}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{i as d,l as f,n as p}from"./chunk-5PVQY5BW-D8dVtMiH.js";import{n as m,r as h}from"./chunk-U2HBQHQK-C4Z8_HX4.js";import{n as g,t as _}from"./chunk-ZZ45TVLE-620quLQs.js";import{a as v,i as y,r as b,t as x}from"./chunk-X2U36JSP-BrQ3X179.js";import{t as S}from"./rough.esm-6CnTHTkH.js";var C=t(async(e,t,i)=>{let s,c=t.useHtmlLabels||o(a()?.htmlLabels);s=i||`node default`;let l=e.insert(`g`).attr(`class`,s).attr(`id`,t.domId||t.id),u=l.insert(`g`).attr(`class`,`label`).attr(`style`,f(t.labelStyle)),p;p=t.label===void 0?``:typeof t.label==`string`?t.label:t.label[0];let h=!!t.icon||!!t.img,g=t.labelType===`markdown`,v=await m(u,r(d(p),a()),{useHtmlLabels:c,width:t.width||a().flowchart?.wrappingWidth,classes:g?`markdown-node-label`:``,style:t.labelStyle,addSvgBackground:h,markdown:g},a()),y=v.getBBox(),b=(t?.padding??0)/2;if(c){let e=v.children[0],t=n(v);await _(e,p),y=e.getBoundingClientRect(),t.attr(`width`,y.width),t.attr(`height`,y.height)}return c?u.attr(`transform`,`translate(`+-y.width/2+`, `+-y.height/2+`)`):u.attr(`transform`,`translate(0, `+-y.height/2+`)`),t.centerLabel&&u.attr(`transform`,`translate(`+-y.width/2+`, `+-y.height/2+`)`),u.insert(`rect`,`:first-child`),{shapeSvg:l,bbox:y,halfPadding:b,label:u}},`labelHelper`),w=t(async(e,t,i)=>{let o=i.useHtmlLabels??l(a()),s=e.insert(`g`).attr(`class`,`label`).attr(`style`,i.labelStyle||``),c=await m(s,r(d(t),a()),{useHtmlLabels:o,width:i.width||a()?.flowchart?.wrappingWidth,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),u=c.getBBox(),f=i.padding/2;if(l(a())){let e=c.children[0],t=n(c);u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}return o?s.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):s.attr(`transform`,`translate(0, `+-u.height/2+`)`),i.centerLabel&&s.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),s.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:u,halfPadding:f,label:s}},`insertLabel`),T=t((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),E=t((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function D(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}t(D,`createPathFromPoints`);function O(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}t(O,`generateFullSineWavePoints`);function k(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;ie.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=t((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}t(A,`mergePaths`);var j=t((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),M=t(async(e,t,n,r=!1,i=!1)=>{let o=t||``;typeof o==`object`&&(o=o[0]);let s=a(),c=l(s);return await m(e,o,{style:n,isTitle:r,useHtmlLabels:c,markdown:!1,isNode:i,width:1/0},s)},`createLabel`),N=t((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),P=t(async(t,r)=>{e.info(`Creating subgraph rect for `,r.id,r);let i=a(),{themeVariables:o,handDrawnSeed:s}=i,{clusterBkg:c,clusterBorder:u}=o,{labelStyles:d,nodeStyles:f,borderStyles:p,backgroundStyles:h}=y(r),_=t.insert(`g`).attr(`class`,`cluster `+r.cssClasses).attr(`id`,r.domId).attr(`data-look`,r.look),b=l(i),x=_.insert(`g`).attr(`class`,`cluster-label `),C;C=r.labelType===`markdown`?await m(x,r.label,{style:r.labelStyle,useHtmlLabels:b,isNode:!0,width:r.width}):await M(x,r.label,r.labelStyle||``,!1,!0);let w=C.getBBox();if(l(i)){let e=C.children[0],t=n(C);w=e.getBoundingClientRect(),t.attr(`width`,w.width),t.attr(`height`,w.height)}let T=r.width<=w.width+r.padding?w.width+r.padding:r.width;r.width<=w.width+r.padding?r.diff=(T-r.width)/2-r.padding:r.diff=-r.padding;let E=r.height,D=r.x-T/2,O=r.y-E/2;e.trace(`Data `,r,JSON.stringify(r));let k;if(r.look===`handDrawn`){let t=S.svg(_),n=v(r,{roughness:.7,fill:c,stroke:u,fillWeight:3,seed:s}),i=t.path(N(D,O,T,E,0),n);k=_.insert(()=>(e.debug(`Rough node insert CXC`,i),i),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,p.join(`;`)),k.select(`path`).attr(`style`,h.join(`;`).replace(`fill`,`stroke`))}else k=_.insert(`rect`,`:first-child`),k.attr(`style`,f).attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=g(i);if(x.attr(`transform`,`translate(${r.x-w.width/2}, ${r.y-r.height/2+A})`),d){let e=x.select(`span`);e&&e.attr(`style`,d)}let P=k.node().getBBox();return r.offsetX=0,r.width=P.width,r.height=P.height,r.offsetY=w.height-r.padding/2,r.intersect=function(e){return j(r,e)},{cluster:_,labelBBox:w}},`rect`),F={rect:P,squareRect:P,roundedWithTitle:t(async(e,t)=>{let r=a(),{themeVariables:i,handDrawnSeed:o}=r,{altBackground:s,compositeBackground:c,compositeTitleBackground:u,nodeBorder:d}=i,f=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-id`,t.id).attr(`data-look`,t.look),p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),h=f.append(`rect`),g=await M(m,t.label,t.labelStyle,void 0,!0),_=g.getBBox();if(l(r)){let e=g.children[0],t=n(g);_=e.getBoundingClientRect(),t.attr(`width`,_.width),t.attr(`height`,_.height)}let v=0*t.padding,y=v/2,b=(t.width<=_.width+t.padding?_.width+t.padding:t.width)+v;t.width<=_.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;let x=t.height+v,C=t.height+v-_.height-6,w=t.x-b/2,T=t.y-x/2;t.width=b;let E=t.y-t.height/2-y+_.height+2,D;if(t.look===`handDrawn`){let e=t.cssClasses.includes(`statediagram-cluster-alt`),n=S.svg(f),r=t.rx||t.ry?n.path(N(w,T,b,x,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:o}):n.rectangle(w,T,b,x,{seed:o});D=f.insert(()=>r,`:first-child`);let i=n.rectangle(w,E,b,C,{fill:e?s:c,fillStyle:e?`hachure`:`solid`,stroke:d,seed:o});D=f.insert(()=>r,`:first-child`),h=f.insert(()=>i)}else D=p.insert(`rect`,`:first-child`),D.attr(`class`,`outer`).attr(`x`,w).attr(`y`,T).attr(`width`,b).attr(`height`,x).attr(`data-look`,t.look),h.attr(`class`,`inner`).attr(`x`,w).attr(`y`,E).attr(`width`,b).attr(`height`,C);return m.attr(`transform`,`translate(${t.x-_.width/2}, ${T+1-(l(r)?0:3)})`),t.height=D.node().getBBox().height,t.offsetX=0,t.offsetY=_.height-t.padding/2,t.labelBBox=_,t.intersect=function(e){return j(t,e)},{cluster:f,labelBBox:_}},`roundedWithTitle`),noteGroup:t((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return j(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:t((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=a(),{nodeBorder:i}=n,o=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),s=o.insert(`g`,`:first-child`),c=0*t.padding,l=t.width+c;t.diff=-t.padding;let u=t.height+c,d=t.x-l/2,f=t.y-u/2;t.width=l;let p;if(t.look===`handDrawn`){let e=S.svg(o).rectangle(d,f,l,u,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:i,seed:r});p=o.insert(()=>e,`:first-child`)}else{p=s.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),p.attr(`class`,e).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u).attr(`data-look`,t.look)}return t.height=p.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return j(t,e)},{cluster:o,labelBBox:{}}},`divider`),kanbanSection:t(async(t,r)=>{e.info(`Creating subgraph rect for `,r.id,r);let i=a(),{themeVariables:o,handDrawnSeed:s}=i,{clusterBkg:c,clusterBorder:u}=o,{labelStyles:d,nodeStyles:f,borderStyles:p,backgroundStyles:h}=y(r),_=t.insert(`g`).attr(`class`,`cluster `+r.cssClasses).attr(`id`,r.domId).attr(`data-look`,r.look),b=l(i),x=_.insert(`g`).attr(`class`,`cluster-label `),C=await m(x,r.label,{style:r.labelStyle,useHtmlLabels:b,isNode:!0,width:r.width}),w=C.getBBox();if(l(i)){let e=C.children[0],t=n(C);w=e.getBoundingClientRect(),t.attr(`width`,w.width),t.attr(`height`,w.height)}let T=r.width<=w.width+r.padding?w.width+r.padding:r.width;r.width<=w.width+r.padding?r.diff=(T-r.width)/2-r.padding:r.diff=-r.padding;let E=r.height,D=r.x-T/2,O=r.y-E/2;e.trace(`Data `,r,JSON.stringify(r));let k;if(r.look===`handDrawn`){let t=S.svg(_),n=v(r,{roughness:.7,fill:c,stroke:u,fillWeight:4,seed:s}),i=t.path(N(D,O,T,E,r.rx),n);k=_.insert(()=>(e.debug(`Rough node insert CXC`,i),i),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,p.join(`;`)),k.select(`path`).attr(`style`,h.join(`;`).replace(`fill`,`stroke`))}else k=_.insert(`rect`,`:first-child`),k.attr(`style`,f).attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=g(i);if(x.attr(`transform`,`translate(${r.x-w.width/2}, ${r.y-r.height/2+A})`),d){let e=x.select(`span`);e&&e.attr(`style`,d)}let M=k.node().getBBox();return r.offsetX=0,r.width=M.width,r.height=M.height,r.offsetY=w.height-r.padding/2,r.intersect=function(e){return j(r,e)},{cluster:_,labelBBox:w}},`kanbanSection`)},I=new Map,ee=t(async(e,t)=>{let n=await F[t.shape||`rect`](e,t);return I.set(t.id,n),n},`insertCluster`),te=t(()=>{I=new Map},`clear`);function L(e,t){return e.intersect(t)}t(L,`intersectNode`);var R=L;function ne(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x0}t(re,`sameSign`);var ie=H;function U(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return au,`:first-child`);return d.attr(`class`,`anchor`).attr(`style`,f(s)),T(n,d),n.intersect=function(t){return e.info(`Circle intersect`,n,1,t),W.circle(n,1,t)},o}t(G,`anchor`);function K(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}t(K,`generateArcPoints`);function ae(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}t(ae,`calculateArcSagitta`);async function oe(e,n){let{labelStyles:r,nodeStyles:i}=y(n);n.labelStyle=r;let a=n.padding??0,o=n.look===`neo`?16:a,s=n.look===`neo`?12:a,c=t(e=>e+s,`calcTotalHeight`),l=t(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:u,bbox:d}=await C(e,n,E(n)),f=c(n?.height?n?.height:d.height),[p,m]=l(f),h=ae(f,p,m),g=(n?.width?n?.width:d.width)+o*2+h-h,_=f,{cssStyles:b}=n,x=[{x:g/2,y:-_/2},{x:-g/2,y:-_/2},...K(-g/2,-_/2,-g/2,_/2,p,m,!1),{x:g/2,y:_/2},...K(g/2,_/2,g/2,-_/2,p,m,!0)],w=S.svg(u),O=v(n,{});n.look!==`handDrawn`&&(O.roughness=0,O.fillStyle=`solid`);let k=D(x),A=w.path(k,O),j=u.insert(()=>A,`:first-child`);return j.attr(`class`,`basic label-container outer-path`),b&&n.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,b),i&&n.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,i),j.attr(`transform`,`translate(${p/2}, 0)`),T(n,j),n.intersect=function(e){return W.polygon(n,x,e)},u}t(oe,`bowTieRect`);function q(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}t(q,`insertPolygonShape`);var se=12;async function ce(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width??c.width)+(t.look===`neo`?a*2:a+se),u=(t?.height??c.height)+(t.look===`neo`?o*2:o),d=l,f=-u,p=[{x:0+se,y:f},{x:d,y:f},{x:d,y:0},{x:0,y:0},{x:0,y:f+se},{x:0+se,y:f}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=S.svg(s),n=v(t,{}),r=D(p),i=e.path(r,n);m=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-l/2}, ${u/2})`),h&&m.attr(`style`,h)}else m=q(s,l,u,p);return r&&m.attr(`style`,r),T(t,m),t.intersect=function(e){return W.polygon(t,p,e)},s}t(ce,`card`);function le(e,t){let{nodeStyles:n}=y(t);t.label=``;let r=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=S.svg(r),c=v(t,{});t.look!==`handDrawn`&&(c.roughness=0,c.fillStyle=`solid`);let l=D(o),u=s.path(l,c),d=r.insert(()=>u,`:first-child`);return i&&t.look!==`handDrawn`&&d.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&d.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return W.polygon(t,o,e)},r}t(le,`choice`);async function ue(t,n,r){let{labelStyles:i,nodeStyles:a}=y(n);n.labelStyle=i;let{shapeSvg:o,bbox:s,halfPadding:c}=await C(t,n,E(n)),l=r?.padding??c,u=n.look===`neo`?s.width/2+32:s.width/2+l,d,{cssStyles:p}=n;if(n.look===`handDrawn`){let e=S.svg(o),t=v(n,{}),r=e.circle(0,0,u*2,t);d=o.insert(()=>r,`:first-child`),d.attr(`class`,`basic label-container`).attr(`style`,f(p))}else d=o.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`r`,u).attr(`cx`,0).attr(`cy`,0);return T(n,d),n.calcIntersect=function(e,t){let n=e.width/2;return W.circle(e,n,t)},n.intersect=function(t){return e.info(`Circle intersect`,n,u,t),W.circle(n,u,t)},o}t(ue,`circle`);function de(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y} + M ${i.x},${i.y} L ${o.x},${o.y}`}t(de,`createLine`);function fe(t,n){let{labelStyles:r,nodeStyles:i}=y(n);n.labelStyle=r,n.label=``;let a=t.insert(`g`).attr(`class`,E(n)).attr(`id`,n.domId??n.id),o=Math.max(30,n?.width??0),{cssStyles:s}=n,c=S.svg(a),l=v(n,{});n.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=c.circle(0,0,o*2,l),d=de(o),f=c.path(d,l),p=a.insert(()=>u,`:first-child`);return p.insert(()=>f),p.attr(`class`,`outer-path`),s&&n.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,s),i&&n.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,i),T(n,p),n.intersect=function(t){return e.info(`crossedCircle intersect`,n,{radius:o,point:t}),W.circle(n,o,t)},a}t(fe,`crossedCircle`);function J(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;iw,`:first-child`).attr(`stroke-opacity`,0),O.insert(()=>b,`:first-child`),O.attr(`class`,`text`),f&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${d}, 0)`),o.attr(`transform`,`translate(${-l/2+d-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),T(t,O),t.intersect=function(e){return W.polygon(t,m,e)},i}t(pe,`curlyBraceLeft`);function Y(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;iw,`:first-child`).attr(`stroke-opacity`,0),O.insert(()=>b,`:first-child`),O.attr(`class`,`text`),f&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${-d}, 0)`),o.attr(`transform`,`translate(${-l/2+(t.padding??0)/2-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),T(t,O),t.intersect=function(e){return W.polygon(t,m,e)},i}t(me,`curlyBraceRight`);function X(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;iA,`:first-child`).attr(`stroke-opacity`,0),j.insert(()=>x,`:first-child`),j.insert(()=>O,`:first-child`),j.attr(`class`,`text`),f&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(${d-d/4}, 0)`),o.attr(`transform`,`translate(${-l/2+(t.padding??0)/2-(a.x-(a.left??0))},${-u/2+(t.padding??0)/2-(a.y-(a.top??0))})`),T(t,j),t.intersect=function(e){return W.polygon(t,h,e)},i}t(he,`curlyBraces`);async function ge(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=Math.max(20,(c.width+a*2)*1.25,t?.width??0),u=Math.max(5,c.height+o*2,t?.height??0),d=u/2,{cssStyles:f}=t,p=S.svg(s),m=v(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=l,g=u,_=h-d,b=g/4,x=[{x:_,y:0},{x:b,y:0},{x:0,y:g/2},{x:b,y:g},{x:_,y:g},...k(-_,-g/2,d,50,270,90)],w=D(x),O=p.path(w,m),A=s.insert(()=>O,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&A.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&A.selectChildren(`path`).attr(`style`,r),A.attr(`transform`,`translate(${-l/2}, ${-u/2})`),T(t,A),t.intersect=function(e){return W.polygon(t,x,e)},s}t(ge,`curvedTrapezoid`);var _e=t((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),ve=t((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),ye=t((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),be=8,xe=8;async function Se(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?24:i,o=t.look===`neo`?24:i;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-o,t.widtho,`:first-child`),h=s.insert(()=>a,`:first-child`),h.attr(`class`,`basic label-container`),g&&h.attr(`style`,g)}else{let e=_e(0,0,u,m,d,p);h=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,f(g)).attr(`style`,r)}return h.attr(`label-offset-y`,p),h.attr(`transform`,`translate(${-u/2}, ${-(m/2+p)})`),T(t,h),l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+(t.padding??0)/1.5-(c.y-(c.top??0))})`),t.intersect=function(e){let n=W.rect(t,e),r=n.x-(t.x??0);if(d!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-p)){let i=p*p*(1-r*r/(d*d));i>0&&(i=Math.sqrt(i)),i=p-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}t(Se,`cylinder`);async function Ce(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),l=s.width+i,u=s.height+a,d=u*.2,f=-l/2,p=-u/2-d/2,{cssStyles:m}=t,h=S.svg(o),g=v(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:f,y:p+d},{x:-f,y:p+d},{x:-f,y:-p},{x:f,y:-p},{x:f,y:p},{x:-f,y:p},{x:-f,y:p+d}],b=h.polygon(_.map(e=>[e.x,e.y]),g),x=o.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),c.attr(`transform`,`translate(${f+(t.padding??0)/2-(s.x-(s.left??0))}, ${p+d+(t.padding??0)/2-(s.y-(s.top??0))})`),T(t,x),t.intersect=function(e){return W.rect(t,e)},o}t(Ce,`dividedRectangle`);async function we(t,n){let{labelStyles:r,nodeStyles:i}=y(n),a=n.look===`neo`?12:5;n.labelStyle=r;let o=n.padding??0,s=n.look===`neo`?16:o,{shapeSvg:c,bbox:l}=await C(t,n,E(n)),u=(n?.width?n?.width/2:l.width/2)+(s??0),d=u-a,p,{cssStyles:m}=n;if(n.look===`handDrawn`){let e=S.svg(c),t=v(n,{roughness:.2,strokeWidth:2.5}),r=v(n,{roughness:.2,strokeWidth:1.5}),i=e.circle(0,0,u*2,t),a=e.circle(0,0,d*2,r);p=c.insert(`g`,`:first-child`),p.attr(`class`,f(n.cssClasses)).attr(`style`,f(m)),p.node()?.appendChild(i),p.node()?.appendChild(a)}else{p=c.insert(`g`,`:first-child`);let e=p.insert(`circle`,`:first-child`),t=p.insert(`circle`);p.attr(`class`,`basic label-container`).attr(`style`,i),e.attr(`class`,`outer-circle`).attr(`style`,i).attr(`r`,u).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,i).attr(`r`,d).attr(`cx`,0).attr(`cy`,0)}return T(n,p),n.intersect=function(t){return e.info(`DoubleCircle intersect`,n,u,t),W.circle(n,u,t)},c}t(we,`doublecircle`);function Te(t,n,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=y(n);n.label=``,n.labelStyle=i;let o=t.insert(`g`).attr(`class`,E(n)).attr(`id`,n.domId??n.id),{cssStyles:s}=n,c=S.svg(o),{nodeBorder:l}=r,u=v(n,{fillStyle:`solid`});n.look!==`handDrawn`&&(u.roughness=0);let d=c.circle(0,0,14,u),f=o.insert(()=>d,`:first-child`);return f.selectAll(`path`).attr(`style`,`fill: ${l} !important;`),s&&s.length>0&&n.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,s),a&&n.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,a),T(n,f),n.intersect=function(t){return e.info(`filledCircle intersect`,n,{radius:7,point:t}),W.circle(n,7,t)},o}t(Te,`filledCircle`);var Ee=10,De=10;async function Oe(t,n){let{labelStyles:r,nodeStyles:i}=y(n);n.labelStyle=r;let a=n.padding??0,o=n.look===`neo`?a*2:a;(n.width||n.height)&&(n.height=n?.height??0,n.heightb,`:first-child`).attr(`transform`,`translate(${-d/2}, ${d/2})`).attr(`class`,`outer-path`);return m&&n.look!==`handDrawn`&&x.selectChildren(`path`).attr(`style`,m),i&&n.look!==`handDrawn`&&x.selectChildren(`path`).attr(`style`,i),n.width=u,n.height=d,T(n,x),l.attr(`transform`,`translate(${-c.width/2-(c.x-(c.left??0))}, ${-d/2+(n.padding??0)/2+(c.y-(c.top??0))})`),n.intersect=function(t){return e.info(`Triangle intersect`,n,p,t),W.polygon(n,p,t)},s}t(Oe,`flippedTriangle`);function ke(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=y(t);t.label=``;let o=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,c=Math.max(70,t?.width??0),l=Math.max(10,t?.height??0);n===`LR`&&(c=Math.max(10,t?.width??0),l=Math.max(70,t?.height??0));let u=-1*c/2,d=-1*l/2,f=S.svg(o),p=v(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.rectangle(u,d,c,l,p),h=o.insert(()=>m,`:first-child`);s&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,a),T(t,h);let g=r?.padding??0;return t.width&&t.height&&(t.width+=g/2||0,t.height+=g/2||0),t.intersect=function(e){return W.rect(t,e)},o}t(ke,`forkJoin`);async function Ae(t,n){let{labelStyles:r,nodeStyles:i}=y(n);n.labelStyle=r;let a=n.look===`neo`?16:n.padding??0,o=n.look===`neo`?12:n.padding??0;(n.width||n.height)&&(n.height=(n?.height??0)-o*2,n.height<10&&(n.height=10),n.width=(n?.width??0)-a*2,n.width<15&&(n.width=15));let{shapeSvg:s,bbox:c}=await C(t,n,E(n)),l=(n?.width?n?.width:Math.max(15,c.width))+a*2,u=(n?.height?n?.height:Math.max(10,c.height))+o*2,d=u/2,{cssStyles:f}=n,p=S.svg(s),m=v(n,{});n.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-l/2,y:-u/2},{x:l/2-d,y:-u/2},...k(-l/2+d,0,d,50,90,270),{x:l/2-d,y:u/2},{x:-l/2,y:u/2}],g=D(h),_=p.path(g,m),b=s.insert(()=>_,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),f&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,f),i&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,i),T(n,b),n.intersect=function(t){return e.info(`Pill intersect`,n,{radius:d,point:t}),W.polygon(n,h,t)},s}t(Ae,`halfRoundedRectangle`);var je=t((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function Me(e,t){let{labelStyles:n,nodeStyles:r}=y(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?70:a,s=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-s,t.height=(t.height??0)-o}let{shapeSvg:c,bbox:l}=await C(e,t,E(t)),u=(t?.height?t?.height:l.height)+o,d=u/i,f=(t?.width?t?.width:l.width)+2*d+s,p=[{x:d,y:0},{x:f-d,y:0},{x:f,y:-u/2},{x:f-d,y:-u},{x:d,y:-u},{x:0,y:-u/2}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=S.svg(c),n=v(t,{}),r=je(0,0,f,u,d),i=e.path(r,n);m=c.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${u/2})`),h&&m.attr(`style`,h)}else m=q(c,f,u,p);return r&&m.attr(`style`,r),t.width=f,t.height=u,T(t,m),t.intersect=function(e){return W.polygon(t,p,e)},c}t(Me,`hexagon`);async function Ne(t,n){let{labelStyles:r,nodeStyles:i}=y(n);n.label=``,n.labelStyle=r;let{shapeSvg:a}=await C(t,n,E(n)),o=Math.max(30,n?.width??0),s=Math.max(30,n?.height??0),{cssStyles:c}=n,l=S.svg(a),u=v(n,{});n.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=[{x:0,y:0},{x:o,y:0},{x:0,y:s},{x:o,y:s}],f=D(d),p=l.path(f,u),m=a.insert(()=>p,`:first-child`);return m.attr(`class`,`basic label-container outer-path`),c&&n.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,c),i&&n.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,i),m.attr(`transform`,`translate(${-o/2}, ${-s/2})`),T(n,m),n.intersect=function(t){return e.info(`Pill intersect`,n,{points:d}),W.polygon(n,d,t)},a}t(Ne,`hourglass`);async function Pe(t,n,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=y(n);n.labelStyle=a;let o=n.assetHeight??48,s=n.assetWidth??48,c=Math.max(o,s),l=i?.wrappingWidth;n.width=Math.max(c,l??0);let{shapeSvg:u,bbox:d,label:f}=await C(t,n,`icon-shape default`),p=n.pos===`t`,m=c,g=c,{nodeBorder:_}=r,{stylesMap:b}=x(n),w=-g/2,E=-m/2,D=n.label?8:0,O=S.svg(u),k=v(n,{stroke:`none`,fill:`none`});n.look!==`handDrawn`&&(k.roughness=0,k.fillStyle=`solid`);let A=O.rectangle(w,E,g,m,k),j=Math.max(g,d.width),M=m+d.height+D,N=O.rectangle(-j/2,-M/2,j,M,{...k,fill:`transparent`,stroke:`none`}),P=u.insert(()=>A,`:first-child`),F=u.insert(()=>N);if(n.icon){let e=u.append(`g`);e.html(`${await h(n.icon,{height:c,width:c,fallbackPrefix:``})}`);let t=e.node().getBBox(),r=t.width,i=t.height,a=t.x,o=t.y;e.attr(`transform`,`translate(${-r/2-a},${p?d.height/2+D/2-i/2-o:-d.height/2-D/2-i/2-o})`),e.attr(`style`,`color: ${b.get(`stroke`)??_};`)}return f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${p?-M/2:M/2-d.height})`),P.attr(`transform`,`translate(0,${p?d.height/2+D/2:-d.height/2-D/2})`),T(n,F),n.intersect=function(t){if(e.info(`iconSquare intersect`,n,t),!n.label)return W.rect(n,t);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=p?[{x:r-d.width/2,y:i-a/2},{x:r+d.width/2,y:i-a/2},{x:r+d.width/2,y:i-a/2+d.height+D},{x:r+g/2,y:i-a/2+d.height+D},{x:r+g/2,y:i+a/2},{x:r-g/2,y:i+a/2},{x:r-g/2,y:i-a/2+d.height+D},{x:r-d.width/2,y:i-a/2+d.height+D}]:[{x:r-g/2,y:i-a/2},{x:r+g/2,y:i-a/2},{x:r+g/2,y:i-a/2+m},{x:r+d.width/2,y:i-a/2+m},{x:r+d.width/2/2,y:i+a/2},{x:r-d.width/2,y:i+a/2},{x:r-d.width/2,y:i-a/2+m},{x:r-g/2,y:i-a/2+m}],W.polygon(n,o,t)},u}t(Pe,`icon`);async function Fe(t,n,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=y(n);n.labelStyle=a;let o=n.assetHeight??48,s=n.assetWidth??48,c=Math.max(o,s),l=i?.wrappingWidth;n.width=Math.max(c,l??0);let{shapeSvg:u,bbox:d,label:f}=await C(t,n,`icon-shape default`),p=n.label?8:0,m=n.pos===`t`,{nodeBorder:g,mainBkg:_}=r,{stylesMap:b}=x(n),w=S.svg(u),E=v(n,{});n.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`),E.stroke=b.get(`fill`)??_;let D=u.append(`g`);n.icon&&D.html(`${await h(n.icon,{height:c,width:c,fallbackPrefix:``})}`);let O=D.node().getBBox(),k=O.width,A=O.height,j=O.x,M=O.y,N=Math.max(k,A)*Math.SQRT2+40,P=w.circle(0,0,N,E),F=Math.max(N,d.width),I=N+d.height+p,ee=w.rectangle(-F/2,-I/2,F,I,{...E,fill:`transparent`,stroke:`none`}),te=u.insert(()=>P,`:first-child`),L=u.insert(()=>ee);return D.attr(`transform`,`translate(${-k/2-j},${m?d.height/2+p/2-A/2-M:-d.height/2-p/2-A/2-M})`),D.attr(`style`,`color: ${b.get(`stroke`)??g};`),f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-I/2:I/2-d.height})`),te.attr(`transform`,`translate(0,${m?d.height/2+p/2:-d.height/2-p/2})`),T(n,L),n.intersect=function(t){return e.info(`iconSquare intersect`,n,t),W.rect(n,t)},u}t(Fe,`iconCircle`);async function Ie(t,n,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=y(n);n.labelStyle=a;let o=n.assetHeight??48,s=n.assetWidth??48,c=Math.max(o,s),l=i?.wrappingWidth;n.width=Math.max(c,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await C(t,n,`icon-shape default`),m=n.pos===`t`,g=c+f*2,_=c+f*2,{nodeBorder:b,mainBkg:w}=r,{stylesMap:E}=x(n),D=-_/2,O=-g/2,k=n.label?8:0,A=S.svg(u),j=v(n,{});n.look!==`handDrawn`&&(j.roughness=0,j.fillStyle=`solid`),j.stroke=E.get(`fill`)??w;let M=A.path(N(D,O,_,g,5),j),P=Math.max(_,d.width),F=g+d.height+k,I=A.rectangle(-P/2,-F/2,P,F,{...j,fill:`transparent`,stroke:`none`}),ee=u.insert(()=>M,`:first-child`).attr(`class`,`icon-shape2`),te=u.insert(()=>I);if(n.icon){let e=u.append(`g`);e.html(`${await h(n.icon,{height:c,width:c,fallbackPrefix:``})}`);let t=e.node().getBBox(),r=t.width,i=t.height,a=t.x,o=t.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+k/2-i/2-o:-d.height/2-k/2-i/2-o})`),e.attr(`style`,`color: ${E.get(`stroke`)??b};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-F/2:F/2-d.height})`),ee.attr(`transform`,`translate(0,${m?d.height/2+k/2:-d.height/2-k/2})`),T(n,te),n.intersect=function(t){if(e.info(`iconSquare intersect`,n,t),!n.label)return W.rect(n,t);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=m?[{x:r-d.width/2,y:i-a/2},{x:r+d.width/2,y:i-a/2},{x:r+d.width/2,y:i-a/2+d.height+k},{x:r+_/2,y:i-a/2+d.height+k},{x:r+_/2,y:i+a/2},{x:r-_/2,y:i+a/2},{x:r-_/2,y:i-a/2+d.height+k},{x:r-d.width/2,y:i-a/2+d.height+k}]:[{x:r-_/2,y:i-a/2},{x:r+_/2,y:i-a/2},{x:r+_/2,y:i-a/2+g},{x:r+d.width/2,y:i-a/2+g},{x:r+d.width/2/2,y:i+a/2},{x:r-d.width/2,y:i+a/2},{x:r-d.width/2,y:i-a/2+g},{x:r-_/2,y:i-a/2+g}],W.polygon(n,o,t)},u}t(Ie,`iconRounded`);async function Le(t,n,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=y(n);n.labelStyle=a;let o=n.assetHeight??48,s=n.assetWidth??48,c=Math.max(o,s),l=i?.wrappingWidth;n.width=Math.max(c,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await C(t,n,`icon-shape default`),m=n.pos===`t`,g=c+f*2,_=c+f*2,{nodeBorder:b,mainBkg:w}=r,{stylesMap:E}=x(n),D=-_/2,O=-g/2,k=n.label?8:0,A=S.svg(u),j=v(n,{});n.look!==`handDrawn`&&(j.roughness=0,j.fillStyle=`solid`),j.stroke=E.get(`fill`)??w;let M=A.path(N(D,O,_,g,.1),j),P=Math.max(_,d.width),F=g+d.height+k,I=A.rectangle(-P/2,-F/2,P,F,{...j,fill:`transparent`,stroke:`none`}),ee=u.insert(()=>M,`:first-child`),te=u.insert(()=>I);if(n.icon){let e=u.append(`g`);e.html(`${await h(n.icon,{height:c,width:c,fallbackPrefix:``})}`);let t=e.node().getBBox(),r=t.width,i=t.height,a=t.x,o=t.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+k/2-i/2-o:-d.height/2-k/2-i/2-o})`),e.attr(`style`,`color: ${E.get(`stroke`)??b};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-F/2:F/2-d.height})`),ee.attr(`transform`,`translate(0,${m?d.height/2+k/2:-d.height/2-k/2})`),T(n,te),n.intersect=function(t){if(e.info(`iconSquare intersect`,n,t),!n.label)return W.rect(n,t);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=m?[{x:r-d.width/2,y:i-a/2},{x:r+d.width/2,y:i-a/2},{x:r+d.width/2,y:i-a/2+d.height+k},{x:r+_/2,y:i-a/2+d.height+k},{x:r+_/2,y:i+a/2},{x:r-_/2,y:i+a/2},{x:r-_/2,y:i-a/2+d.height+k},{x:r-d.width/2,y:i-a/2+d.height+k}]:[{x:r-_/2,y:i-a/2},{x:r+_/2,y:i-a/2},{x:r+_/2,y:i-a/2+g},{x:r+d.width/2,y:i-a/2+g},{x:r+d.width/2/2,y:i+a/2},{x:r-d.width/2,y:i+a/2},{x:r-d.width/2,y:i-a/2+g},{x:r-_/2,y:i-a/2+g}],W.polygon(n,o,t)},u}t(Le,`iconSquare`);async function Re(t,n,{config:{flowchart:r}}){let i=new Image;i.src=n?.img??``,await i.decode();let a=Number(i.naturalWidth.toString().replace(`px`,``)),o=Number(i.naturalHeight.toString().replace(`px`,``));n.imageAspectRatio=a/o;let{labelStyles:s}=y(n);n.labelStyle=s;let c=r?.wrappingWidth;n.defaultWidth=r?.wrappingWidth;let l=Math.max(n.label?c??0:0,n?.assetWidth??a),u=n.constraint===`on`&&n?.assetHeight?n.assetHeight*n.imageAspectRatio:l,d=n.constraint===`on`?u/n.imageAspectRatio:n?.assetHeight??o;n.width=Math.max(u,c??0);let{shapeSvg:f,bbox:p,label:m}=await C(t,n,`image-shape default`),h=n.pos===`t`,g=-u/2,_=-d/2,b=n.label?8:0,x=S.svg(f),w=v(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let E=x.rectangle(g,_,u,d,w),D=Math.max(u,p.width),O=d+p.height+b,k=x.rectangle(-D/2,-O/2,D,O,{...w,fill:`none`,stroke:`none`}),A=f.insert(()=>E,`:first-child`),j=f.insert(()=>k);if(n.img){let e=f.append(`image`);e.attr(`href`,n.img),e.attr(`width`,u),e.attr(`height`,d),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-u/2},${h?O/2-d:-O/2})`)}return m.attr(`transform`,`translate(${-p.width/2-(p.x-(p.left??0))},${h?-d/2-p.height/2-b/2:d/2-p.height/2+b/2})`),A.attr(`transform`,`translate(0,${h?p.height/2+b/2:-p.height/2-b/2})`),T(n,j),n.intersect=function(t){if(e.info(`iconSquare intersect`,n,t),!n.label)return W.rect(n,t);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=h?[{x:r-p.width/2,y:i-a/2},{x:r+p.width/2,y:i-a/2},{x:r+p.width/2,y:i-a/2+p.height+b},{x:r+u/2,y:i-a/2+p.height+b},{x:r+u/2,y:i+a/2},{x:r-u/2,y:i+a/2},{x:r-u/2,y:i-a/2+p.height+b},{x:r-p.width/2,y:i-a/2+p.height+b}]:[{x:r-u/2,y:i-a/2},{x:r+u/2,y:i-a/2},{x:r+u/2,y:i-a/2+d},{x:r+p.width/2,y:i-a/2+d},{x:r+p.width/2/2,y:i+a/2},{x:r-p.width/2,y:i+a/2},{x:r-p.width/2,y:i-a/2+d},{x:r-u/2,y:i-a/2+d}],W.polygon(n,o,t)},f}t(Re,`imageSquare`);async function ze(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=Math.max(c.width+(o??0)*2,t?.width??0),u=Math.max(c.height+(a??0)*2,t?.height??0),d=[{x:0,y:0},{x:l,y:0},{x:l+3*u/6,y:-u},{x:-3*u/6,y:-u}],f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=S.svg(s),n=v(t,{}),r=D(d),i=e.path(r,n);f=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-l/2}, ${u/2})`),p&&f.attr(`style`,p)}else f=q(s,l,u,d);return r&&f.attr(`style`,r),t.width=l,t.height=u,T(t,f),t.intersect=function(e){return W.polygon(t,d,e)},s}t(ze,`inv_trapezoid`);async function Be(e,t,n){let{labelStyles:r,nodeStyles:i}=y(t);t.labelStyle=r;let{shapeSvg:a,bbox:o}=await C(e,t,E(t)),s=Math.max(o.width+n.labelPaddingX*2,t?.width||0),c=Math.max(o.height+n.labelPaddingY*2,t?.height||0),l=-s/2,u=-c/2,d,{rx:p,ry:m}=t,{cssStyles:h}=t;if(n?.rx&&n.ry&&(p=n.rx,m=n.ry),t.look===`handDrawn`){let e=S.svg(a),n=v(t,{}),r=p||m?e.path(N(l,u,s,c,p||0),n):e.rectangle(l,u,s,c,n);d=a.insert(()=>r,`:first-child`),d.attr(`class`,`basic label-container`).attr(`style`,f(h))}else d=a.insert(`rect`,`:first-child`),d.attr(`class`,`basic label-container`).attr(`style`,i).attr(`rx`,f(p)).attr(`ry`,f(m)).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c);return T(t,d),t.calcIntersect=function(e,t){return W.rect(e,t)},t.intersect=function(e){return W.rect(t,e)},a}t(Be,`drawRect`);async function Ve(e,t){let{shapeSvg:n,bbox:r,label:i}=await C(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),T(t,a),t.intersect=function(e){return W.rect(t,e)},n}t(Ve,`labelRect`);async function He(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.height??c.height)+a,u=(t?.width??c.width)+o,d=[{x:0,y:0},{x:u+3*l/6,y:0},{x:u,y:-l},{x:-(3*l)/6,y:-l}],f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=S.svg(s),n=v(t,{}),r=D(d),i=e.path(r,n);f=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${l/2})`),p&&f.attr(`style`,p)}else f=q(s,u,l,d);return r&&f.attr(`style`,r),t.width=u,t.height=l,T(t,f),t.intersect=function(e){return W.polygon(t,d,e)},s}t(He,`lean_left`);async function Ue(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.height??c.height)+a,u=(t?.width??c.width)+o,d=[{x:-3*l/6,y:0},{x:u,y:0},{x:u+3*l/6,y:-l},{x:0,y:-l}],f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=S.svg(s),n=v(t,{}),r=D(d),i=e.path(r,n);f=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${l/2})`),p&&f.attr(`style`,p)}else f=q(s,u,l,d);return r&&f.attr(`style`,r),t.width=u,t.height=l,T(t,f),t.intersect=function(e){return W.polygon(t,d,e)},s}t(Ue,`lean_right`);function We(t,n){let{labelStyles:r,nodeStyles:i}=y(n);n.label=``,n.labelStyle=r;let a=t.insert(`g`).attr(`class`,E(n)).attr(`id`,n.domId??n.id),{cssStyles:o}=n,s=Math.max(35,n?.width??0),c=Math.max(35,n?.height??0),l=[{x:s,y:0},{x:0,y:c+7/2},{x:s-14,y:c+7/2},{x:0,y:2*c},{x:s,y:c-7/2},{x:14,y:c-7/2}],u=S.svg(a),d=v(n,{});n.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=D(l),p=u.path(f,d),m=a.insert(()=>p,`:first-child`);return m.attr(`class`,`outer-path`),o&&n.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,o),i&&n.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,i),m.attr(`transform`,`translate(-${s/2},${-c})`),T(n,m),n.intersect=function(t){return e.info(`lightningBolt intersect`,n,t),W.polygon(n,l,t)},a}t(We,`lightningBolt`);var Ge=t((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),Ke=t((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),qe=t((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Je=10,Ye=10;async function Xe(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?24:i;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-a,t.widtho,`:first-child`).attr(`class`,`line`),g=s.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=Ge(0,0,u,m,d,p,h);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,f(_)).attr(`style`,r)}return g.attr(`label-offset-y`,p),g.attr(`transform`,`translate(${-u/2}, ${-(m/2+p)})`),T(t,g),l.attr(`transform`,`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+p-(c.y-(c.top??0))})`),t.intersect=function(e){let n=W.rect(t,e),r=n.x-(t.x??0);if(d!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-p)){let i=p*p*(1-r*r/(d*d));i>0&&(i=Math.sqrt(i)),i=p-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}t(Xe,`linedCylinder`);async function Ze(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:s,bbox:c,label:l}=await C(e,t,E(t)),u=(t?.width?t?.width:c.width)+(a??0)*2,d=(t?.height?t?.height:c.height)+(o??0)*2,f=t.look===`neo`?d/4:d/8,p=d+f,{cssStyles:m}=t,h=S.svg(s),g=v(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-u/2-u/2*.1,y:-p/2},{x:-u/2-u/2*.1,y:p/2},...O(-u/2-u/2*.1,p/2,u/2+u/2*.1,p/2,f,.8),{x:u/2+u/2*.1,y:-p/2},{x:-u/2-u/2*.1,y:-p/2},{x:-u/2,y:-p/2},{x:-u/2,y:p/2*1.1},{x:-u/2,y:-p/2}],b=h.polygon(_.map(e=>[e.x,e.y]),g),x=s.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),x.attr(`transform`,`translate(0,${-f/2})`),l.attr(`transform`,`translate(${-u/2+(t.padding??0)+u/2*.1/2-(c.x-(c.left??0))},${-d/2+(t.padding??0)-f/2-(c.y-(c.top??0))})`),T(t,x),t.intersect=function(e){return W.polygon(t,_,e)},s}t(Ze,`linedWaveEdgedRect`);async function Qe(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*s,10),t.height=Math.max((t?.height??0)-o*2-2*s,10));let{shapeSvg:c,bbox:l,label:u}=await C(e,t,E(t)),d=(t?.width?t?.width:l.width)+a*2+2*s,f=(t?.height?t?.height:l.height)+o*2+2*s,p=d-2*s,m=f-2*s,h=-p/2,g=-m/2,{cssStyles:_}=t,b=S.svg(c),x=v(t,{}),w=[{x:h-s,y:g+s},{x:h-s,y:g+m+s},{x:h+p-s,y:g+m+s},{x:h+p-s,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g+m-s},{x:h+p+s,y:g+m-s},{x:h+p+s,y:g-s},{x:h+s,y:g-s},{x:h+s,y:g},{x:h,y:g},{x:h,y:g+s}],O=[{x:h,y:g+s},{x:h+p-s,y:g+s},{x:h+p-s,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g},{x:h,y:g}];t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let k=D(w),j=b.path(k,x),M=D(O),N=b.path(M,x);t.look!==`handDrawn`&&(j=A(j),N=A(N));let P=c.insert(`g`,`:first-child`);return P.insert(()=>j),P.insert(()=>N),P.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&P.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&P.selectAll(`path`).attr(`style`,r),u.attr(`transform`,`translate(${-(l.width/2)-s-(l.x-(l.left??0))}, ${-(l.height/2)+s-(l.y-(l.top??0))})`),T(t,P),t.intersect=function(e){return W.polygon(t,w,e)},c}t(Qe,`multiRect`);async function $e(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await C(e,t,E(t)),s=t.padding??0,c=t.look===`neo`?16:s,l=t.look===`neo`?12:s,u=!0;(t.width||t.height)&&(u=!1,t.width=(t?.width??0)-c*2,t.height=(t?.height??0)-l*3);let d=Math.max(a.width,t?.width??0)+c*2,f=Math.max(a.height,t?.height??0)+l*3,p=t.look===`neo`?f/4:f/8,m=f+(u?p/2:-p/2),h=-d/2,g=-m/2,{cssStyles:_}=t,b=O(h-10,g+m+10,h+d-10,g+m+10,p,.8),x=b?.[b.length-1],w=[{x:h-10,y:g+10},{x:h-10,y:g+m+10},...b,{x:h+d-10,y:x.y-10},{x:h+d,y:x.y-10},{x:h+d,y:x.y-20},{x:h+d+10,y:x.y-20},{x:h+d+10,y:g-10},{x:h+10,y:g-10},{x:h+10,y:g},{x:h,y:g},{x:h,y:g+10}],k=[{x:h,y:g+10},{x:h+d-10,y:g+10},{x:h+d-10,y:x.y-10},{x:h+d,y:x.y-10},{x:h+d,y:g},{x:h,y:g}],A=S.svg(i),j=v(t,{});t.look!==`handDrawn`&&(j.roughness=0,j.fillStyle=`solid`);let M=D(w),N=A.path(M,j),P=D(k),F=A.path(P,j),I=i.insert(()=>N,`:first-child`);return I.insert(()=>F),I.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&I.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&I.selectAll(`path`).attr(`style`,r),I.attr(`transform`,`translate(0,${-p/2})`),o.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-p/2-(a.y-(a.top??0))})`),T(t,I),t.intersect=function(e){return W.polygon(t,w,e)},i}t($e,`multiWaveEdgedRectangle`);async function et(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=y(t);t.labelStyle=r,t.useHtmlLabels||l(u())||(t.centerLabel=!0);let{shapeSvg:a,bbox:o,label:s}=await C(e,t,E(t)),c=Math.max(o.width+(t.padding??0)*2,t?.width??0),d=Math.max(o.height+(t.padding??0)*2,t?.height??0),f=-c/2,p=-d/2,{cssStyles:m}=t,h=S.svg(a),g=v(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=h.rectangle(f,p,c,d,g),b=a.insert(()=>_,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),s.attr(`class`,`label noteLabel`),m&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,m),i&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,i),s.attr(`transform`,`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),T(t,b),t.intersect=function(e){return W.rect(t,e)},a}t(et,`note`);var tt=t((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function nt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await C(e,t,E(t)),o=a.width+(t.padding??0)+(a.height+(t.padding??0)),s=.5,c=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],l,{cssStyles:u}=t;if(t.look===`handDrawn`){let e=S.svg(i),n=v(t,{}),r=tt(0,0,o),a=e.path(r,n);l=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+s}, ${o/2})`),u&&l.attr(`style`,u)}else l=q(i,o,o,c),l.attr(`transform`,`translate(${-o/2+s}, ${o/2})`);return r&&l.attr(`style`,r),T(t,l),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=W.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}t(nt,`question`);async function rt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,o=t.look===`neo`?12:i??0,{shapeSvg:s,bbox:c,label:l}=await C(e,t,E(t)),u=(t?.width??c.width)+(t.look===`neo`?a*2:a),d=(t?.height??c.height)+(t.look===`neo`?o*2:o),f=-u/2,p=-d/2,m=p/2,h=[{x:f+m,y:p},{x:f,y:0},{x:f+m,y:-p},{x:-f,y:-p},{x:-f,y:p}],{cssStyles:g}=t,_=S.svg(s),b=v(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=D(h),w=_.path(x,b),O=s.insert(()=>w,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${-m/2},0)`),l.attr(`transform`,`translate(${-m/2-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),T(t,O),t.intersect=function(e){return W.polygon(t,h,e)},s}t(rt,`rect_left_inv_arrow`);async function it(t,r){let{labelStyles:i,nodeStyles:o}=y(r);r.labelStyle=i;let s;s=r.cssClasses?`node `+r.cssClasses:`node default`;let c=t.insert(`g`).attr(`class`,s).attr(`id`,r.domId||r.id),u=c.insert(`g`),d=c.insert(`g`).attr(`class`,`label`).attr(`style`,o),f=r.description,p=r.label,m=await M(d,p,r.labelStyle,!0,!0),h={width:0,height:0};if(l(a())){let e=m.children[0],t=n(m);h=e.getBoundingClientRect(),t.attr(`width`,h.width),t.attr(`height`,h.height)}e.info(`Text 2`,f);let g=f||[],_=m.getBBox(),b=await M(d,Array.isArray(g)?g.join(`
`):g,r.labelStyle,!0,!0),x=b.children[0],C=n(b);h=x.getBoundingClientRect(),C.attr(`width`,h.width),C.attr(`height`,h.height);let w=(r.padding||0)/2;n(b).attr(`transform`,`translate( `+(h.width>_.width?0:(_.width-h.width)/2)+`, `+(_.height+w+5)+`)`),n(m).attr(`transform`,`translate( `+(h.width<_.width?0:-(_.width-h.width)/2)+`, 0)`),h=d.node().getBBox(),d.attr(`transform`,`translate(`+-h.width/2+`, `+(-h.height/2-w+3)+`)`);let E=h.width+(r.padding||0),D=h.height+(r.padding||0),O=-h.width/2-w,k=-h.height/2-w,A,j;if(r.look===`handDrawn`){let t=S.svg(c),n=v(r,{}),i=t.path(N(O,k,E,D,r.rx||0),n),a=t.line(-h.width/2-w,-h.height/2-w+_.height+w,h.width/2+w,-h.height/2-w+_.height+w,n);j=c.insert(()=>(e.debug(`Rough node insert CXC`,i),a),`:first-child`),A=c.insert(()=>(e.debug(`Rough node insert CXC`,i),i),`:first-child`)}else A=u.insert(`rect`,`:first-child`),j=u.insert(`line`),A.attr(`class`,`outer title-state`).attr(`style`,o).attr(`x`,-h.width/2-w).attr(`y`,-h.height/2-w).attr(`width`,h.width+(r.padding||0)).attr(`height`,h.height+(r.padding||0)),j.attr(`class`,`divider`).attr(`x1`,-h.width/2-w).attr(`x2`,h.width/2+w).attr(`y1`,-h.height/2-w+_.height+w).attr(`y2`,-h.height/2-w+_.height+w);return T(r,A),r.intersect=function(e){return W.rect(r,e)},c}t(it,`rectWithTitle`);async function at(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Be(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}t(at,`roundedRect`);var Z=8;async function ot(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0,{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),l=(t?.width??s.width)+i*2+(t.look===`neo`?Z:Z*2),u=(t?.height??s.height)+a*2,d=l-Z,p=u,m=Z-l/2,h=-u/2,{cssStyles:g}=t,_=S.svg(o),b=v(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:m,y:h},{x:m+d,y:h},{x:m+d,y:h+p},{x:m-Z,y:h+p},{x:m-Z,y:h},{x:m,y:h},{x:m,y:h+p}],w=_.polygon(x.map(e=>[e.x,e.y]),b),D=o.insert(()=>w,`:first-child`);return D.attr(`class`,`basic label-container outer-path`).attr(`style`,f(g)),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),g&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),c.attr(`transform`,`translate(${Z/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),T(t,D),t.intersect=function(e){return W.rect(t,e)},o}t(ot,`shadedProcess`);async function st(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:s,bbox:c,label:l}=await C(e,t,E(t)),u=(t?.width?t?.width:c.width)+a*2,d=((t?.height?t?.height:c.height)+o*2)*1.5,f=u,p=d/1.5,m=-f/2,h=-p/2,{cssStyles:g}=t,_=S.svg(s),b=v(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:m,y:h},{x:m,y:h+p},{x:m+f,y:h+p},{x:m+f,y:h-p/2}],w=D(x),O=_.path(w,b),k=s.insert(()=>O,`:first-child`);return k.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,r),k.attr(`transform`,`translate(0, ${p/4})`),l.attr(`transform`,`translate(${-f/2+(t.padding??0)-(c.x-(c.left??0))}, ${-p/4+(t.padding??0)-(c.y-(c.top??0))})`),T(t,k),t.intersect=function(e){return W.polygon(t,x,e)},s}t(st,`slopedRect`);async function ct(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return Be(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}t(ct,`squareRect`);async function lt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?20:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=c.height+(t.look===`neo`?o*2:o),u=c.width+l/4+(t.look===`neo`?a*2:a),d=l/2,{cssStyles:f}=t,p=S.svg(s),m=v(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-u/2+d,y:-l/2},{x:u/2-d,y:-l/2},...k(-u/2+d,0,d,50,90,270),{x:u/2-d,y:l/2},...k(u/2-d,0,d,50,270,450)],g=D(h),_=p.path(g,m),b=s.insert(()=>_,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,r),T(t,b),t.intersect=function(e){return W.polygon(t,h,e)},s}t(lt,`stadium`);async function ut(e,t){return Be(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}t(ut,`state`);function dt(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=y(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:c,nodeShadow:l}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let u=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),d=S.svg(u),f=v(t,{});t.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=d.circle(0,0,t.width,{...f,stroke:o,strokeWidth:2}),m=s??c,h=(t.width??0)*5/14,g=d.circle(0,0,h,{...f,fill:m,stroke:m,strokeWidth:2,fillStyle:`solid`}),_=u.insert(()=>p,`:first-child`);if(_.insert(()=>g),t.look!==`handDrawn`&&_.attr(`class`,`outer-path`),a&&_.selectAll(`path`).attr(`style`,a),i&&_.selectAll(`path`).attr(`style`,i),t.width<25&&l&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;_.attr(`style`,`filter:url(#${n})`)}return T(t,_),t.intersect=function(e){return W.circle(t,(t.width??0)/2,e)},u}t(dt,`stateEnd`);function ft(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),o;if(t.look===`handDrawn`){let e=S.svg(a).circle(0,0,t.width,b(r));o=a.insert(()=>e),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else o=a.insert(`circle`,`:first-child`),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;o.attr(`style`,`filter:url(#${n})`)}return T(t,o),t.intersect=function(e){return W.circle(t,(t.width??7)/2,e)},a}t(ft,`stateStart`);var pt=8;async function mt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t?.padding??8,a=t.look===`neo`?28:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width??c.width)+2*pt+a,u=(t?.height??c.height)+o,d=l-2*pt,p=u,m=-l/2,h=-u/2,g=[{x:0,y:0},{x:d,y:0},{x:d,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:d+8,y:0},{x:d+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if(t.look===`handDrawn`){let e=S.svg(s),n=v(t,{}),r=e.rectangle(m,h,d+16,p,n),i=e.line(m+pt,h,m+pt,h+p,n),a=e.line(m+pt+d,h,m+pt+d,h+p,n);s.insert(()=>i,`:first-child`),s.insert(()=>a,`:first-child`);let o=s.insert(()=>r,`:first-child`),{cssStyles:c}=t;o.attr(`class`,`basic label-container`).attr(`style`,f(c)),T(t,o)}else{let e=q(s,d,p,g);r&&e.attr(`style`,r),T(t,e)}return t.intersect=function(e){return W.polygon(t,g,e)},s}t(mt,`subroutine`);var ht=.2;async function gt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-a*2-ht*(t.height+o*2),10));let{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.height?t?.height:c.height)+o*2,u=ht*l,d=ht*l,f=(t?.width?t?.width:c.width)+a*2+u-u,p=l,m=-f/2,h=-p/2,{cssStyles:g}=t,_=S.svg(s),b=v(t,{}),x=[{x:m-u/2,y:h},{x:m+f+u/2,y:h},{x:m+f+u/2,y:h+p},{x:m-u/2,y:h+p}],w=[{x:m+f-u/2,y:h+p},{x:m+f+u/2,y:h+p},{x:m+f+u/2,y:h+p-d}];t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let O=D(x),k=_.path(O,b),A=D(w),j=_.path(A,{...b,fillStyle:`solid`}),M=s.insert(()=>j,`:first-child`);return M.insert(()=>k,`:first-child`),M.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&M.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&M.selectAll(`path`).attr(`style`,r),T(t,M),t.intersect=function(e){return W.polygon(t,x,e)},s}t(gt,`taggedRect`);async function _t(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await C(e,t,E(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=c/8,u=.2*s,d=.2*c,f=c+l,{cssStyles:p}=t,m=S.svg(i),h=v(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-s/2-s/2*.1,y:f/2},...O(-s/2-s/2*.1,f/2,s/2+s/2*.1,f/2,l,.8),{x:s/2+s/2*.1,y:-f/2},{x:-s/2-s/2*.1,y:-f/2}],_=-s/2+s/2*.1,b=-f/2-d*.4,x=[{x:_+s-u,y:(b+c)*1.3},{x:_+s,y:b+c-d},{x:_+s,y:(b+c)*.9},...O(_+s,(b+c)*1.25,_+s-u,(b+c)*1.3,-c*.02,.5)],w=D(g),k=m.path(w,h),A=D(x),j=m.path(A,{...h,fillStyle:`solid`}),M=i.insert(()=>j,`:first-child`);return M.insert(()=>k,`:first-child`),M.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&M.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&M.selectAll(`path`).attr(`style`,r),M.attr(`transform`,`translate(0,${-l/2})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-l/2-(a.y-(a.top??0))})`),T(t,M),t.intersect=function(e){return W.polygon(t,g,e)},i}t(_t,`taggedWaveEdgedRectangle`);async function vt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await C(e,t,E(t)),o=Math.max(a.width+(t.padding??0),t?.width||0),s=Math.max(a.height+(t.padding??0),t?.height||0),c=-o/2,l=-s/2,u=i.insert(`rect`,`:first-child`);return u.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,c).attr(`y`,l).attr(`width`,o).attr(`height`,s),T(t,u),t.intersect=function(e){return W.rect(t,e)},i}t(vt,`text`);var yt=t((e,t,n,r,i,a)=>`M${e},${t} + a${i},${a} 0,0,1 0,${-r} + l${n},0 + a${i},${a} 0,0,1 0,${r} + M${n},${-r} + a${i},${a} 0,0,0 0,${r} + l${-n},0`,`createCylinderPathD`),bt=t((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),xt=t((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),St=5,Ct=10;async function wt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?12:i/2;if(t.width||t.height){let e=t.height??0;t.height=(t.height??0)-a,t.heighta,`:first-child`),h=o.insert(()=>i,`:first-child`),h.attr(`class`,`basic label-container`),m&&h.attr(`style`,m)}else{let e=yt(0,0,p,l,d,u);h=o.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,f(m)).attr(`style`,r),h.attr(`class`,`basic label-container outer-path`),m&&h.selectAll(`path`).attr(`style`,m),r&&h.selectAll(`path`).attr(`style`,r)}return h.attr(`label-offset-x`,d),h.attr(`transform`,`translate(${-p/2}, ${l/2} )`),c.attr(`transform`,`translate(${-(s.width/2)-d-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),T(t,h),t.intersect=function(e){let n=W.rect(t,e),r=n.y-(t.y??0);if(u!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-d)){let i=d*d*(1-r*r/(u*u));i!=0&&(i=Math.sqrt(Math.abs(i))),i=d-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},o}t(wt,`tiltedCylinder`);async function Tt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.height??c.height)+a,u=(t?.width??c.width)+o,d=[{x:-3*l/6,y:0},{x:u+3*l/6,y:0},{x:u,y:-l},{x:0,y:-l}],f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=S.svg(s),n=v(t,{}),r=D(d),i=e.path(r,n);f=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${l/2})`),p&&f.attr(`style`,p)}else f=q(s,u,l,d);return r&&f.attr(`style`,r),t.width=u,t.height=l,T(t,f),t.intersect=function(e){return W.polygon(t,d,e)},s}t(Tt,`trapezoid`);async function Et(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width?t?.width:c.width)+a*2,u=(t?.height?t?.height:c.height)+o*2,{cssStyles:d}=t,f=S.svg(s),p=v(t,{});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=[{x:-l/2*.8,y:-u/2},{x:l/2*.8,y:-u/2},{x:l/2,y:-u/2*.6},{x:l/2,y:u/2},{x:-l/2,y:u/2},{x:-l/2,y:-u/2*.6}],h=D(m),g=f.path(h,p),_=s.insert(()=>g,`:first-child`);return _.attr(`class`,`basic label-container outer-path`),d&&t.look!==`handDrawn`&&_.selectChildren(`path`).attr(`style`,d),r&&t.look!==`handDrawn`&&_.selectChildren(`path`).attr(`style`,r),T(t,_),t.intersect=function(e){return W.polygon(t,m,e)},s}t(Et,`trapezoidalPentagon`);var Dt=10,Ot=10;async function kt(t,n){let{labelStyles:r,nodeStyles:i}=y(n);n.labelStyle=r;let s=n.padding??0,c=n.look===`neo`?s*2:s;(n.width||n.height)&&(n.width=((n?.width??0)-c)/2,n.widthO,`:first-child`).attr(`transform`,`translate(${-m/2}, ${m/2})`).attr(`class`,`outer-path`);return _&&n.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,_),i&&n.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,i),n.width=p,n.height=m,T(n,k),d.attr(`transform`,`translate(${-u.width/2-(u.x-(u.left??0))}, ${m/2-(u.height+(n.padding??0)/(f?2:1)-(u.y-(u.top??0)))})`),n.intersect=function(t){return e.info(`Triangle intersect`,n,g,t),W.polygon(n,g,t)},l}t(kt,`triangle`);async function At(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=!0;(t.width||t.height)&&(s=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:c,bbox:l,label:u}=await C(e,t,E(t)),d=(t?.width?t?.width:l.width)+(a??0)*2,f=(t?.height?t?.height:l.height)+(o??0)*2,p=t.look===`neo`?f/4:f/8,m=f+(s?p:-p),{cssStyles:h}=t,g=14-d,_=g>0?g/2:0,b=S.svg(c),x=v(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let w=[{x:-d/2-_,y:m/2},...O(-d/2-_,m/2,d/2+_,m/2,p,.8),{x:d/2+_,y:-m/2},{x:-d/2-_,y:-m/2}],k=D(w),A=b.path(k,x),j=c.insert(()=>A,`:first-child`);return j.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-p/2})`),u.attr(`transform`,`translate(${-d/2+(t.padding??0)-(l.x-(l.left??0))},${-f/2+(t.padding??0)-p-(l.y-(l.top??0))})`),T(t,j),t.intersect=function(e){return W.polygon(t,w,e)},c}t(At,`waveEdgedRectangle`);async function jt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-20/9*e),t.width-=a*2}let{shapeSvg:s,bbox:c}=await C(e,t,E(t)),l=(t?.width?t?.width:c.width)+a*2,u=(t?.height?t?.height:c.height)+o,d=u/8,f=u+d*2,{cssStyles:p}=t,m=S.svg(s),h=v(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-l/2,y:f/2},...O(-l/2,f/2,l/2,f/2,d,1),{x:l/2,y:-f/2},...O(l/2,-f/2,-l/2,-f/2,d,-1)],_=D(g),b=m.path(_,h),x=s.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container`),p&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),T(t,x),t.intersect=function(e){return W.polygon(t,g,e)},s}t(jt,`waveRectangle`);var Q=10;async function Mt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-Q,10),t.height=Math.max((t?.height??0)-a*2-Q,10));let{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),l=(t?.width?t?.width:s.width)+i*2+Q,u=(t?.height?t?.height:s.height)+a*2+Q,d=l-Q,f=u-Q,p=-d/2,m=-f/2,{cssStyles:h}=t,g=S.svg(o),_=v(t,{}),b=[{x:p-Q,y:m-Q},{x:p-Q,y:m+f},{x:p+d,y:m+f},{x:p+d,y:m-Q}],x=`M${p-Q},${m-Q} L${p+d},${m-Q} L${p+d},${m+f} L${p-Q},${m+f} L${p-Q},${m-Q} + M${p-Q},${m} L${p+d},${m} + M${p},${m-Q} L${p},${m+f}`;t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let w=g.path(x,_),D=o.insert(()=>w,`:first-child`);return D.attr(`transform`,`translate(${Q/2}, ${Q/2})`),D.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),c.attr(`transform`,`translate(${-(s.width/2)+Q/2-(s.x-(s.left??0))}, ${-(s.height/2)+Q/2-(s.y-(s.top??0))})`),T(t,D),t.intersect=function(e){return W.polygon(t,b,e)},o}t(Mt,`windowPane`);var Nt=new Set([`redux-color`,`redux-dark-color`]),Pt=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]);async function Ft(e,t){let r=t;r.alias&&(t.label=r.alias);let{theme:i,themeVariables:a}=u(),{rowEven:s,rowOdd:c,nodeBorder:l,borderColorArray:d}=a;if(t.look===`handDrawn`){let{themeVariables:n}=u(),{background:r}=n;await Ft(e,{...t,id:t.id+`-background`,domId:(t.domId||t.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let f=u();t.useHtmlLabels=f.htmlLabels;let m=f.er?.diagramPadding??10,h=f.er?.entityPadding??6,{cssStyles:g}=t,{labelStyles:_,nodeStyles:b}=y(t);if(r.attributes.length===0&&t.label){let n={rx:0,ry:0,labelPaddingX:m,labelPaddingY:m*1.5,classes:``};p(t.label,f)+n.labelPaddingX*20){let e=w.width+m*2-(A+j+M+N);A+=e/I,j+=e/I,M>0&&(M+=e/I),N>0&&(N+=e/I)}let te=A+j+M+N,L=S.svg(C),R=v(t,{});t.look!==`handDrawn`&&(R.roughness=0,R.fillStyle=`solid`);let ne=0;k.length>0&&(ne=k.reduce((e,t)=>e+(t?.rowHeight??0),0));let z=Math.max(ee.width+m*2,t?.width||0,te),B=Math.max((ne??0)+w.height,t?.height||0),V=-z/2,H=-B/2;if(C.selectAll(`g:not(:first-child)`).each((e,t,r)=>{let i=n(r[t]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),i.attr(`class`).includes(`attribute-name`)?o+=A:i.attr(`class`).includes(`attribute-keys`)?o+=A+j:i.attr(`class`).includes(`attribute-comment`)&&(o+=A+j+M))}i.attr(`transform`,`translate(${V+m/2+o}, ${s+H+w.height+h/2})`)}),C.select(`.name`).attr(`transform`,`translate(`+-w.width/2+`, `+(H+h/2)+`)`),i!=null&&Nt.has(i)){let e=r.colorIndex??0;C.attr(`data-color-id`,`color-${e%d.length}`)}let re=L.rectangle(V,H,z,B,R),ie=C.insert(()=>re,`:first-child`).attr(`class`,`outer-path`).attr(`style`,g.join(``));O.push(0);for(let[e,t]of k.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=L.rectangle(V,w.height+H+t?.yOffset,z,t?.rowHeight,{...R,fill:n?s:c,stroke:l});C.insert(()=>r,`g.label`).attr(`style`,g.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let U=1e-4,G=Lt(V,w.height+H,z+V,w.height+H,U),K=L.polygon(G.map(e=>[e.x,e.y]),R);if(C.insert(()=>K).attr(`class`,`divider`),G=Lt(A+V,w.height+H,A+V,B+H,U),K=L.polygon(G.map(e=>[e.x,e.y]),R),C.insert(()=>K).attr(`class`,`divider`),P){let e=A+j+V;G=Lt(e,w.height+H,e,B+H,U),K=L.polygon(G.map(e=>[e.x,e.y]),R),C.insert(()=>K).attr(`class`,`divider`)}if(F){let e=A+j+M+V;G=Lt(e,w.height+H,e,B+H,U),K=L.polygon(G.map(e=>[e.x,e.y]),R),C.insert(()=>K).attr(`class`,`divider`)}for(let e of O){let t=w.height+H+e;G=Lt(V,t,z+V,t,U),K=L.polygon(G.map(e=>[e.x,e.y]),R),C.insert(()=>K).attr(`class`,`divider`)}if(T(t,ie),b&&t.look!==`handDrawn`)if(i!=null&&Pt.has(i))C.selectAll(`path`).attr(`style`,b);else{let e=b.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);C.selectAll(`path`).attr(`style`,e??``),C.selectAll(`.row-rect-even path`).attr(`style`,b)}return t.intersect=function(e){return W.rect(t,e)},C}t(Ft,`erBox`);async function It(e,t,r,i=0,a=0,c=[],l=``){let u=e.insert(`g`).attr(`class`,`label ${c.join(` `)}`).attr(`transform`,`translate(${i}, ${a})`).attr(`style`,l);t!==s(t)&&(t=s(t),t=t.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let d=u.node().appendChild(await m(u,t,{width:p(t,r)+100,style:l,useHtmlLabels:r.htmlLabels},r));if(t.includes(`<`)||t.includes(`>`)){let e=d.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let f=d.getBBox();if(o(r.htmlLabels)){let e=d.children[0];e.style.textAlign=`start`;let t=n(d);f=e.getBoundingClientRect(),t.attr(`width`,f.width),t.attr(`height`,f.height)}return f}t(It,`addText`);function Lt(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}t(Lt,`lineToPolygon`);async function Rt(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,E(t)).attr(`id`,t.domId||t.id),s=null,c=null,l=null,u=null,d=0,f=0,p=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await zt(s,{text:`\xAB${e}\xBB`},0),d=s.node().getBBox().height}c=o.insert(`g`).attr(`class`,`label-group text`),await zt(c,t,0,[`font-weight: bolder`]);let m=c.node().getBBox();f=m.height,l=o.insert(`g`).attr(`class`,`members-group text`);let h=0;for(let e of t.members){let t=await zt(l,e,h,[e.parseClassifier()]);h+=t+a}p=l.node().getBBox().height,p<=0&&(p=i/2),u=o.insert(`g`).attr(`class`,`methods-group text`);let g=0;for(let e of t.methods){let t=await zt(u,e,g,[e.parseClassifier()]);g+=t+a}let _=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return c.attr(`transform`,`translate(${-m.width/2}, ${d})`),_=o.node().getBBox(),l.attr(`transform`,`translate(0, ${d+f+i*2})`),_=o.node().getBBox(),u.attr(`transform`,`translate(0, ${d+f+(p?p+i*4:i*2)})`),_=o.node().getBBox(),{shapeSvg:o,bbox:_}}t(Rt,`textHelper`);async function zt(e,r,a,s=[]){let l=e.insert(`g`).attr(`class`,`label`).attr(`style`,s.join(`; `)),f=u(),h=`useHtmlLabels`in r?r.useHtmlLabels:o(f.htmlLabels)??!0,g=``;g=`text`in r?r.text:r.label,!h&&g.startsWith(`\\`)&&(g=g.substring(1)),c(g)&&(h=!0);let _=await m(l,i(d(g)),{width:p(g,f)+50,classes:`markdown-node-label`,useHtmlLabels:h},f),v,y=1;if(h){let e=_.children[0],r=n(_);y=e.innerHTML.split(`
`).length,e.innerHTML.includes(``)&&(y+=e.innerHTML.split(``).length-1);let i=e.getElementsByTagName(`img`);if(i){let e=g.replace(/]*>/g,``).trim()===``;await Promise.all([...i].map(n=>new Promise(r=>{function i(){if(n.style.display=`flex`,n.style.flexDirection=`column`,e){let e=f.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,t=parseInt(e,10)*5+`px`;n.style.minWidth=t,n.style.maxWidth=t}else n.style.width=`100%`;r(n)}t(i,`setupImage`),setTimeout(()=>{n.complete&&i()}),n.addEventListener(`error`,i),n.addEventListener(`load`,i)})))}v=e.getBoundingClientRect(),r.attr(`width`,v.width),r.attr(`height`,v.height)}else{s.includes(`font-weight: bolder`)&&n(_).selectAll(`tspan`).attr(`font-weight`,``),y=_.children.length;let e=_.children[0];(_.textContent===``||_.textContent.includes(`>`))&&(e.textContent=g[0]+g.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),g[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),v=_.getBBox()}return l.attr(`transform`,`translate(0,`+(-v.height/(2*y)+a)+`)`),v.height}t(zt,`addText`);async function Bt(e,t){let r=a(),{themeVariables:i}=r,{useGradient:s}=i,c=r.class.padding??12,l=c,u=t.useHtmlLabels??o(r.htmlLabels)??!0,d=t;d.annotations=d.annotations??[],d.members=d.members??[],d.methods=d.methods??[];let{shapeSvg:f,bbox:p}=await Rt(e,t,r,u,l),{labelStyles:m,nodeStyles:h}=y(t);t.labelStyle=m,t.cssStyles=d.styles||``;let g=d.styles?.join(`;`)||h||``;t.cssStyles||=g.replaceAll(`!important`,``).split(`;`);let _=d.members.length===0&&d.methods.length===0&&!r.class?.hideEmptyMembersBox,b=S.svg(f),x=v(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let C=Math.max(t.width??0,p.width),w=Math.max(t.height??0,p.height),E=(t.height??0)>p.height;d.members.length===0&&d.methods.length===0?w+=l:d.members.length>0&&d.methods.length===0&&(w+=l*2);let D=-C/2,O=-w/2,k=_?c*2:d.members.length===0&&d.methods.length===0?-c:0;E&&(k=c*2);let A=b.rectangle(D-c,O-c-(_?c:d.members.length===0&&d.methods.length===0?-c/2:0),C+2*c,w+2*c+k,x),j=f.insert(()=>A,`:first-child`);j.attr(`class`,`basic label-container outer-path`);let M=j.node().getBBox(),N=f.select(`.annotation-group`).node().getBBox().height-(_?c/2:0)||0,P=f.select(`.label-group`).node().getBBox().height-(_?c/2:0)||0,F=f.select(`.members-group`).node().getBBox().height-(_?c/2:0)||0,I=(N+P+O+c-(O-c-(_?c:d.members.length===0&&d.methods.length===0?-c/2:0)))/2;if(f.selectAll(`.text`).each((e,t,i)=>{let a=n(i[t]),o=a.attr(`transform`),s=0;if(o){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);e&&(s=parseFloat(e[2]))}let p=s+O+c-(_?c:d.members.length===0&&d.methods.length===0?-c/2:0);if(a.attr(`class`).includes(`methods-group`)){let e=Math.max(F,l/2);p=E?Math.max(I,N+P+e+O+l*2+c)+l*2:N+P+e+O+l*4+c}d.members.length===0&&d.methods.length===0&&r.class?.hideEmptyMembersBox&&(p=d.annotations.length>0?s-l:s),u||(p-=4);let m=D;(a.attr(`class`).includes(`label-group`)||a.attr(`class`).includes(`annotation-group`))&&(m=-a.node()?.getBBox().width/2||0,f.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(m=0)})),a.attr(`transform`,`translate(${m}, ${p})`)}),d.members.length>0||d.methods.length>0||_){let e=N+P+O+c,n=b.line(M.x,e,M.x+M.width,e+.001,x);f.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!s?` neo-line`:``}`).attr(`style`,g)}if(_||d.members.length>0||d.methods.length>0){let e=N+P+F+O+l*2+c,n=b.line(M.x,E?Math.max(I,e):e,M.x+M.width,(E?Math.max(I,e):e)+.001,x);f.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!s?` neo-line`:``}`).attr(`style`,g)}if(d.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,g),j.select(`:nth-child(2)`).attr(`style`,g),f.selectAll(`.divider`).select(`path`).attr(`style`,g),t.labelStyle?f.selectAll(`span`).attr(`style`,t.labelStyle):f.selectAll(`span`).attr(`style`,g),!u){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(g);if(t){let e=t[0].replace(`color`,`fill`);f.selectAll(`tspan`).attr(`style`,e)}else if(m){let t=e.exec(m);if(t){let e=t[0].replace(`color`,`fill`);f.selectAll(`tspan`).attr(`style`,e)}}}return T(t,j),t.intersect=function(e){return W.rect(t,e)},f}t(Bt,`classBox`);async function Vt(e,t){let{labelStyles:r,nodeStyles:i}=y(t);t.labelStyle=r;let o=t,s=t,c=`verifyMethod`in t,l=E(t),{themeVariables:u}=a(),{borderColorArray:d,requirementEdgeLabelBackground:f}=u,p=e.insert(`g`).attr(`class`,l).attr(`id`,t.domId??t.id),m;m=c?await $(p,`<<${o.type}>>`,0,t.labelStyle):await $(p,`<<Element>>`,0,t.labelStyle);let h=m,g=await $(p,o.name,h,t.labelStyle+`; font-weight: bold;`);if(h+=g+20,c){let e=await $(p,`${o.requirementId?`ID: ${o.requirementId}`:``}`,h,t.labelStyle);h+=e;let n=await $(p,`${o.text?`Text: ${o.text}`:``}`,h,t.labelStyle);h+=n;let r=await $(p,`${o.risk?`Risk: ${o.risk}`:``}`,h,t.labelStyle);h+=r,await $(p,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:``}`,h,t.labelStyle)}else{let e=await $(p,`${s.type?`Type: ${s.type}`:``}`,h,t.labelStyle);h+=e,await $(p,`${s.docRef?`Doc Ref: ${s.docRef}`:``}`,h,t.labelStyle)}let _=(p.node()?.getBBox().width??200)+20,b=(p.node()?.getBBox().height??200)+20,x=-_/2,C=-b/2,w=S.svg(p),D=v(t,{});t.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=w.rectangle(x,C,_,b,D),k=p.insert(()=>O,`:first-child`);if(k.attr(`class`,`basic label-container outer-path`).attr(`style`,i),d?.length){let e=t.colorIndex??0;p.attr(`data-color-id`,`color-${e%d.length}`)}if(p.selectAll(`.label`).each((e,t,r)=>{let i=n(r[t]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]))}let c=s-b/2,l=x+20/2;(t===0||t===1)&&(l=o),i.attr(`transform`,`translate(${l}, ${c+20})`)}),h>m+g+20){let e=C+m+g+20,n;if(t.look===`neo`){let t=.001,r=[[x,e],[x+_,e],[x+_,e+t],[x,e+t]];n=w.polygon(r,D)}else n=w.line(x,e,x+_,e,D);p.insert(()=>n).attr(`class`,`divider`)}return T(t,k),t.intersect=function(e){return W.rect(t,e)},i&&t.look!==`handDrawn`&&(f||d?.length)&&p.selectAll(`path`).attr(`style`,i),p}t(Vt,`requirementBox`);async function $(e,t,r,o=``){if(t===``)return 0;let s=e.insert(`g`).attr(`class`,`label`).attr(`style`,o),c=a(),l=c.htmlLabels??!0,u=await m(s,i(d(t)),{width:p(t,c)+50,classes:`markdown-node-label`,useHtmlLabels:l,style:o},c),f;if(l){let e=u.children[0],t=n(u);f=e.getBoundingClientRect(),t.attr(`width`,f.width),t.attr(`height`,f.height)}else{let e=u.children[0];for(let t of e.children)o&&t.setAttribute(`style`,o);f=u.getBBox(),f.height+=6}return s.attr(`transform`,`translate(${-f.width/2},${-f.height/2+r})`),f.height}t($,`addText`);var Ht=t(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 Ut(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=y(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:o,bbox:s,label:c}=await C(e,t,E(t)),l=t.padding||10,u=``,d;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(u=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),d=o.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,u).attr(`target`,`_blank`));let f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},p,m;d?{label:p,bbox:m}=await w(d,`ticket`in t&&t.ticket||``,f):{label:p,bbox:m}=await w(o,`ticket`in t&&t.ticket||``,f);let{label:h,bbox:g}=await w(o,`assigned`in t&&t.assigned||``,f);t.width=a;let _=t?.width||0,b=Math.max(m.height,g.height)/2,x=Math.max(s.height+20,t?.height||0)+b,D=-_/2,O=-x/2;c.attr(`transform`,`translate(`+(l-_/2)+`, `+(-b-s.height/2)+`)`),p.attr(`transform`,`translate(`+(l-_/2)+`, `+(-b+s.height/2)+`)`),h.attr(`transform`,`translate(`+(l+_/2-g.width-20)+`, `+(-b+s.height/2)+`)`);let k,{rx:A,ry:j}=t,{cssStyles:M}=t;if(t.look===`handDrawn`){let e=S.svg(o),n=v(t,{}),r=A||j?e.path(N(D,O,_,x,A||0),n):e.rectangle(D,O,_,x,n);k=o.insert(()=>r,`:first-child`),k.attr(`class`,`basic label-container`).attr(`style`,M||null)}else{k=o.insert(`rect`,`:first-child`),k.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,A??5).attr(`ry`,j??5).attr(`x`,D).attr(`y`,O).attr(`width`,_).attr(`height`,x);let e=`priority`in t&&t.priority;if(e){let t=o.append(`line`),n=D+2,r=O+Math.floor((A??0)/2),i=O+x-Math.floor((A??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,Ht(e))}}return T(t,k),t.height=x,t.intersect=function(e){return W.rect(t,e)},o}t(Ut,`kanbanItem`);async function Wt(t,n){let{labelStyles:r,nodeStyles:i}=y(n);n.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:c}=await C(t,n,E(n)),l=o.width+10*s,u=o.height+8*s,d=.15*l,{cssStyles:p}=n,m=o.width+20,h=o.height+20,g=Math.max(l,m),_=Math.max(u,h);c.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`);let b,x=`M0 0 + a${d},${d} 1 0,0 ${g*.25},${-1*_*.1} + a${d},${d} 1 0,0 ${g*.25},0 + a${d},${d} 1 0,0 ${g*.25},0 + a${d},${d} 1 0,0 ${g*.25},${_*.1} + + a${d},${d} 1 0,0 ${g*.15},${_*.33} + a${d*.8},${d*.8} 1 0,0 0,${_*.34} + a${d},${d} 1 0,0 ${-1*g*.15},${_*.33} + + a${d},${d} 1 0,0 ${-1*g*.25},${_*.15} + a${d},${d} 1 0,0 ${-1*g*.25},0 + a${d},${d} 1 0,0 ${-1*g*.25},0 + a${d},${d} 1 0,0 ${-1*g*.25},${-1*_*.15} + + a${d},${d} 1 0,0 ${-1*g*.1},${-1*_*.33} + a${d*.8},${d*.8} 1 0,0 0,${-1*_*.34} + a${d},${d} 1 0,0 ${g*.1},${-1*_*.33} + H0 V0 Z`;if(n.look===`handDrawn`){let e=S.svg(a),t=v(n,{}),r=e.path(x,t);b=a.insert(()=>r,`:first-child`),b.attr(`class`,`basic label-container`).attr(`style`,f(p))}else b=a.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`d`,x);return b.attr(`transform`,`translate(${-g/2}, ${-_/2})`),T(n,b),n.calcIntersect=function(e,t){return W.rect(e,t)},n.intersect=function(t){return e.info(`Bang intersect`,n,t),W.rect(n,t)},a}t(Wt,`bang`);async function Gt(t,n){let{labelStyles:r,nodeStyles:i}=y(n);n.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:c}=await C(t,n,E(n)),l=o.width+2*s,u=o.height+2*s,d=.15*l,p=.25*l,m=.35*l,h=.2*l,{cssStyles:g}=n,_,b=`M0 0 + a${d},${d} 0 0,1 ${l*.25},${-1*l*.1} + a${m},${m} 1 0,1 ${l*.4},${-1*l*.1} + a${p},${p} 1 0,1 ${l*.35},${l*.2} + + a${d},${d} 1 0,1 ${l*.15},${u*.35} + a${h},${h} 1 0,1 ${-1*l*.15},${u*.65} + + a${p},${d} 1 0,1 ${-1*l*.25},${l*.15} + a${m},${m} 1 0,1 ${-1*l*.5},0 + a${d},${d} 1 0,1 ${-1*l*.25},${-1*l*.15} + + a${d},${d} 1 0,1 ${-1*l*.1},${-1*u*.35} + a${h},${h} 1 0,1 ${l*.1},${-1*u*.65} + H0 V0 Z`;if(n.look===`handDrawn`){let e=S.svg(a),t=v(n,{}),r=e.path(b,t);_=a.insert(()=>r,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,f(g))}else _=a.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`d`,b);return c.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`),_.attr(`transform`,`translate(${-l/2}, ${-u/2})`),T(n,_),n.calcIntersect=function(e,t){return W.rect(e,t)},n.intersect=function(t){return e.info(`Cloud intersect`,n,t),W.rect(n,t)},a}t(Gt,`cloud`);async function Kt(e,t){let{labelStyles:n,nodeStyles:r}=y(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await C(e,t,E(t)),c=a.width+8*o,l=a.height+2*o,u=t.look===`neo`?` + M${-c/2} ${l/2-5} + v${-l+10} + q0,-5 5,-5 + h${c-10} + q5,0 5,5 + v${l-5} + H${-c/2} + Z + `:` + M${-c/2} ${l/2-5} + v${-l+10} + q0,-5 5,-5 + h${c-10} + q5,0 5,5 + v${l-10} + q0,5 -5,5 + h${-(c-10)} + q-5,0 -5,-5 + Z + `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let d=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,u);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-c/2).attr(`y1`,l/2).attr(`x2`,c/2).attr(`y2`,l/2),s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>s.node()),T(t,d),t.calcIntersect=function(e,t){return W.rect(e,t)},t.intersect=function(e){return W.rect(t,e)},i}t(Kt,`defaultMindmapNode`);async function qt(e,t){return ue(e,t,{padding:t.padding??0})}t(qt,`mindmapCircle`);var Jt=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:ct},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:at},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:lt},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:mt},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:Se},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:ue},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Wt},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Gt},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:nt},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:Me},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:Ue},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:He},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:Tt},{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:ze},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:we},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:vt},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:ce},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:ot},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:ft},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:dt},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:ke},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:Ne},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:pe},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:me},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:he},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:We},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:At},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:Ae},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:wt},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:Xe},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:ge},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:Ce},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:kt},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:Mt},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:Te},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:Et},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:Oe},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:st},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:$e},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:Qe},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:oe},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:fe},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:_t},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:gt},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:jt},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:rt},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Ze}],Yt=t(()=>{let e=[...Object.entries({state:ut,choice:le,note:et,rectWithTitle:it,labelRect:Ve,iconSquare:Le,iconCircle:Fe,icon:Pe,iconRounded:Ie,imageSquare:Re,anchor:G,kanbanItem:Ut,mindmapCircle:qt,defaultMindmapNode:Kt,classBox:Bt,erBox:Ft,requirementBox:Vt}),...Jt.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function Xt(e){return e in Yt}t(Xt,`isValidShape`);var Zt=new Map;async function Qt(e,t,n){let r,i;t.shape===`rect`&&(t.rx&&t.ry?t.shape=`roundedRect`:t.shape=`squareRect`);let a=t.shape?Yt[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel===`sandbox`?o=`_top`:t.linkTarget&&(o=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return r.attr(`data-look`,f(t.look)),t.tooltip&&i.attr(`title`,t.tooltip),Zt.set(t.id,r),t.haveCallback&&r.attr(`class`,r.attr(`class`)+` clickable`),r}t(Qt,`insertNode`);var $t=t((e,t)=>{Zt.set(t.id,e)},`setNodeElem`),en=t(()=>{Zt.clear()},`clear`),tn=t(t=>{let n=Zt.get(t.id);e.trace(`Transforming node`,t.diff,t,`translate(`+(t.x-t.width/2-5)+`, `+t.width/2+`)`);let r=t.diff||0;return t.clusterNode?n.attr(`transform`,`translate(`+(t.x+r-t.width/2)+`, `+(t.y-t.height/2-8)+`)`):n.attr(`transform`,`translate(`+t.x+`, `+t.y+`)`),r},`positionNode`);export{Qt as a,tn as c,ee as i,$t as l,en as n,Xt as o,M as r,C as s,te as t,T as u}; \ No newline at end of file diff --git a/webui/assets/chunk-5PVQY5BW-D8dVtMiH.js b/webui/assets/chunk-5PVQY5BW-D8dVtMiH.js new file mode 100644 index 0000000000000000000000000000000000000000..576c8e0cec51707f987ed2fa7fadc8e04c6fafbf --- /dev/null +++ b/webui/assets/chunk-5PVQY5BW-D8dVtMiH.js @@ -0,0 +1,2 @@ +import{Bt as e,ct as t}from"./index-Cl8-DFW_.js";import{g as n,h as r,p as i}from"./src-DZYWZEqD.js";import{I as a,f as o,m as s,r as c,s as l}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{t as u}from"./dist-Ur6PXDdt.js";function d(e){this._context=e}d.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 f(e){return new d(e)}var p=class{constructor(e,t){this._context=e,this._x=t}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(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function m(e){return new p(e,!0)}function h(e){return new p(e,!1)}function g(){}function _(e,t,n){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+n)/6)}function v(e){this._context=e}v.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:_(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:_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ee(e){return new v(e)}function te(e){this._context=e}te.prototype={areaStart:g,areaEnd:g,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:_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ne(e){return new te(e)}function re(e){this._context=e}re.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ie(e){return new re(e)}function ae(e,t){this._basis=new v(e),this._beta=t}ae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var oe=(function e(t){function n(e){return t===1?new v(e):new ae(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function y(e,t,n){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-n),e._x2,e._y2)}function b(e,t){this._context=e,this._k=(1-t)/6}b.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:y(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:y(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}};var x=(function e(t){function n(e){return new b(e,t)}return n.tension=function(t){return e(+t)},n})(0);function S(e,t){this._context=e,this._k=(1-t)/6}S.prototype={areaStart:g,areaEnd:g,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:y(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}};var se=(function e(t){function n(e){return new S(e,t)}return n.tension=function(t){return e(+t)},n})(0);function C(e,t){this._context=e,this._k=(1-t)/6}C.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:y(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}};var ce=(function e(t){function n(e){return new C(e,t)}return n.tension=function(t){return e(+t)},n})(0);function w(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function le(e,t){this._context=e,this._alpha=t}le.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 n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+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:w(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}};var ue=(function e(t){function n(e){return t?new le(e,t):new b(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function T(e,t){this._context=e,this._alpha=t}T.prototype={areaStart:g,areaEnd:g,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 n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+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:w(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}};var de=(function e(t){function n(e){return t?new T(e,t):new S(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function E(e,t){this._context=e,this._alpha=t}E.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 n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+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:w(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}};var fe=(function e(t){function n(e){return t?new E(e,t):new C(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function D(e){this._context=e}D.prototype={areaStart:g,areaEnd:g,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 pe(e){return new D(e)}function O(e){return e<0?-1:1}function k(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(O(a)+O(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function A(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function j(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function M(e){this._context=e}M.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:j(this,this._t0,A(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 n=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,j(this,A(this,n=k(this,e,t)),n);break;default:j(this,this._t0,n=k(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function N(e){this._context=new P(e)}(N.prototype=Object.create(M.prototype)).point=function(e,t){M.prototype.point.call(this,t,e)};function P(e){this._context=e}P.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,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function F(e){return new M(e)}function I(e){return new N(e)}function L(e){this._context=e}L.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=R(e),i=R(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function me(e){return new B(e,.5)}function V(e){return new B(e,0)}function H(e){return new B(e,1)}var he=u(),ge={curveBasis:ee,curveBasisClosed:ne,curveBasisOpen:ie,curveBumpX:m,curveBumpY:h,curveBundle:oe,curveCardinalClosed:se,curveCardinalOpen:ce,curveCardinal:x,curveCatmullRomClosed:de,curveCatmullRomOpen:fe,curveCatmullRom:ue,curveLinear:f,curveLinearClosed:pe,curveMonotoneX:F,curveMonotoneY:I,curveNatural:z,curveStep:me,curveStepAfter:H,curveStepBefore:V},_e=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ve=r(function(e,t){let n=U(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);a(e),r=c(r,[...e])}else r=n.args;if(!r)return;let i=o(e,t),s=`config`;return r[s]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[s],delete r[s]),r},`detectInit`),U=r(function(e,t=null){try{let r=RegExp(`[%]{2}(?![{]${_e.source})(?=[}][%]{2}).* +`,`ig`);e=e.trim().replace(r,``).replace(/'/gm,`"`),n.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let i,a=[];for(;(i=s.exec(e))!==null;)if(i.index===s.lastIndex&&s.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){let e=i[1]?i[1]:i[2],t=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;a.push({type:e,args:t})}return a.length===0?{type:e,args:null}:a.length===1?a[0]:a}catch(r){return n.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),ye=r(function(e){return e.replace(s,``)},`removeDirectives`),be=r(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function W(e,t){return e?ge[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}r(W,`interpolateToCurve`);function xe(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,he.sanitizeUrl)(n)}r(xe,`formatUrl`);var Se=r((e,...t)=>{let r=e.split(`.`),i=r.length-1,a=r[i],o=window;for(let t=0;t{n+=G(e,t),t=e}),K(e,n/2)}r(Ce,`traverseEdge`);function we(e){return e.length===1?e[0]:Ce(e)}r(we,`calcLabelPosition`);var Te=r((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),K=r((e,t)=>{let n,r=t;for(let t of e){if(n){let e=G(t,n);if(e===0)return n;if(e=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:Te((1-i)*n.x+i*t.x,5),y:Te((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),Ee=r((e,t,r)=>{n.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let i=K(t,25),a=e?10:5,o=Math.atan2(t[0].y-i.y,t[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(t[0].x+i.x)/2,s.y=-Math.cos(o)*a+(t[0].y+i.y)/2,s},`calcCardinalityPosition`);function De(e,t,r){let i=structuredClone(r);n.info(`our points`,i),t!==`start_left`&&t!==`start_right`&&i.reverse();let a=K(i,25+e),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return t===`start_left`?(c.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):t===`end_right`?(c.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):t===`end_left`?(c.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(c.x=Math.sin(s)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2),c}r(De,`calcTerminalLabelPosition`);function q(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}r(q,`getStylesFromArray`);var Oe=0,ke=r(()=>(Oe++,`id-`+Math.random().toString(36).substr(2,12)+`-`+Oe),`generateId`);function Ae(e){let t=``;for(let n=0;nAe(e.length),`random`),Me=r(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`),Ne=r(function(e,t){let n=t.text.replace(l.lineBreakRegex,` `),[,r]=Q(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`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),Pe=e((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`
`},n),l.lineBreakRegex.test(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=Y(`${e} `,n),c=Y(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=Fe(e,t,`-`,n);i.push(a,...r),a=o}else c+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Fe=e((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let c=`${o}${e}`;if(Y(c,r)>=t){let e=s+1,t=i.length===e,r=`${c}${n}`;a.push(t?c:r),o=``}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function J(e,t){return X(e,t).height}r(J,`calculateTextHeight`);function Y(e,t){return X(e,t).width}r(Y,`calculateTextWidth`);var X=e((e,t)=>{let{fontSize:n=12,fontFamily:r=`Arial`,fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,o]=Q(n),s=[`sans-serif`,r],c=e.split(l.lineBreakRegex),u=[],d=i(`body`);if(!d.remove)return{width:0,height:0,lineHeight:0};let f=d.append(`svg`);for(let e of s){let t=0,n={width:0,height:0,lineHeight:0};for(let r of c){let i=Me();i.text=r||`​`;let s=Ne(f,i).style(`font-size`,o).style(`font-weight`,a).style(`font-family`,e),c=(s._groups||s)[0][0].getBBox();if(c.width===0&&c.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}u.push(n)}return f.remove(),u[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]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ie=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{r(this,`InitIDGenerator`)}},Z,Le=r(function(e){return Z||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),Z.innerHTML=e,unescape(Z.textContent)},`entityDecode`);function Re(e){return`str`in e}r(Re,`isDetailedError`);var ze=r((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Q=r(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`);function $(e,n){return t({},e,n)}r($,`cleanAndMerge`);var Be={assignWithDepth:c,wrapLabel:Pe,calculateTextHeight:J,calculateTextWidth:Y,calculateTextDimensions:X,cleanAndMerge:$,detectInit:ve,detectDirective:U,isSubstringInArray:be,interpolateToCurve:W,calcLabelPosition:we,calcCardinalityPosition:Ee,calcTerminalLabelPosition:De,formatUrl:xe,getStylesFromArray:q,generateId:ke,random:je,runFunc:Se,entityDecode:Le,insertTitle:ze,isLabelCoordinateInPath:Ge,parseFontSize:Q,InitIDGenerator:Ie},Ve=r(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),He=r(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),Ue=r((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function We(e){return e??null}r(We,`handleUndefinedAttr`);function Ge(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}r(Ge,`isLabelCoordinateInPath`);export{ue as C,h as D,m as E,f as O,I as S,ee as T,H as _,Ve as a,z as b,q as c,Re as d,Q as f,Pe as g,Be as h,He as i,We as l,ye as m,Y as n,ke as o,je as p,$ as r,Ue as s,J as t,W as u,V as v,x as w,F as x,me as y}; \ No newline at end of file diff --git a/webui/assets/chunk-67CJDMHE-D3QVoK36.js b/webui/assets/chunk-67CJDMHE-D3QVoK36.js new file mode 100644 index 0000000000000000000000000000000000000000..6dfc355719ae4f22ceaccb8fc4effdaad7f5fa78 --- /dev/null +++ b/webui/assets/chunk-67CJDMHE-D3QVoK36.js @@ -0,0 +1 @@ +import{_ as e,a as t,g as n,h as r,i,m as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BU8zzKFc.js";var l=class extends s{static{a(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},u={parser:{TokenBuilder:a(()=>new l,`TokenBuilder`),ValueConverter:a(()=>new i,`ValueConverter`)}};function d(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,u);return a.ServiceRegistry.register(s),{shared:a,GitGraph:s}}a(d,`createGitGraphServices`);export{d as n,u as t}; \ No newline at end of file diff --git a/webui/assets/chunk-7N4EOEYR-B9kzn-Lt.js b/webui/assets/chunk-7N4EOEYR-B9kzn-Lt.js new file mode 100644 index 0000000000000000000000000000000000000000..e92a1b2c9986de76689d0d8ce65b78b7708fcd4b --- /dev/null +++ b/webui/assets/chunk-7N4EOEYR-B9kzn-Lt.js @@ -0,0 +1 @@ +import{_ as e,g as t,h as n,m as r,n as i,r as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BU8zzKFc.js";var l=class extends s{static{r(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},u=class extends i{static{r(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},d={parser:{TokenBuilder:r(()=>new l,`TokenBuilder`),ValueConverter:r(()=>new u,`ValueConverter`)}};function f(r=n){let i=t(c(r),o),s=t(e({shared:i}),a,d);return i.ServiceRegistry.register(s),{shared:i,Architecture:s}}r(f,`createArchitectureServices`);export{f as n,d as t}; \ No newline at end of file diff --git a/webui/assets/chunk-AA7GKIK3-B4RTVCBF.js b/webui/assets/chunk-AA7GKIK3-B4RTVCBF.js new file mode 100644 index 0000000000000000000000000000000000000000..9345ad9afa7c7e242598af74b7df5616b4b56b9a --- /dev/null +++ b/webui/assets/chunk-AA7GKIK3-B4RTVCBF.js @@ -0,0 +1 @@ +import{_ as e,g as t,h as n,l as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BU8zzKFc.js";var l=class extends s{static{i(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},u=class extends a{static{i(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},d={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new u,`ValueConverter`)}};function f(i=n){let a=t(c(i),o),s=t(e({shared:a}),r,d);return a.ServiceRegistry.register(s),{shared:a,Pie:s}}i(f,`createPieServices`);export{f as n,d as t}; \ No newline at end of file diff --git a/webui/assets/chunk-BSJP7CBP-DfPpUNd1.js b/webui/assets/chunk-BSJP7CBP-DfPpUNd1.js new file mode 100644 index 0000000000000000000000000000000000000000..446d584d3121548bdf8bb352c897088c5986725c --- /dev/null +++ b/webui/assets/chunk-BSJP7CBP-DfPpUNd1.js @@ -0,0 +1 @@ +import{h as e}from"./src-DZYWZEqD.js";var t=e((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),n={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},r={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function i(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=a(e),t=a(t);let[n,r]=[e.x,e.y],[i,o]=[t.x,t.y],s=i-n,c=o-r;return{angle:Math.atan(c/s),deltaX:s,deltaY:c}}e(i,`calculateDeltaAndAngle`);var a=e(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),o=e(t=>({x:e(function(e,r,o){let s=0,c=a(o[0]).x=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaX:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let l=Math.abs(a(e).x-a(o[o.length-1]).x),u=Math.abs(a(e).y-a(o[o.length-1]).y),d=Math.abs(a(e).x-a(o[0]).x),f=Math.abs(a(e).y-a(o[0]).y),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l0&&u0&&f=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaY:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let l=Math.abs(a(e).y-a(o[o.length-1]).y),u=Math.abs(a(e).x-a(o[o.length-1]).x),d=Math.abs(a(e).y-a(o[0]).y),f=Math.abs(a(e).x-a(o[0]).x),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l0&&u0&&fnew c,`ValueConverter`)}};function u(r=n){let i=t(s(r),o),c=t(e({shared:i}),a,l);return i.ServiceRegistry.register(c),{shared:i,Wardley:c}}r(u,`createWardleyServices`);export{u as n,l as t}; \ No newline at end of file diff --git a/webui/assets/chunk-Dlc7tRH4.js b/webui/assets/chunk-Dlc7tRH4.js new file mode 100644 index 0000000000000000000000000000000000000000..a359e96c569f1d375c2952149dc9b434af2d2517 --- /dev/null +++ b/webui/assets/chunk-Dlc7tRH4.js @@ -0,0 +1 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(e,t,n)=>(l(e,t,`default`),n&&l(n,t,`default`)),d=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),f=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);export{f as a,u as i,o as n,d as o,c as r,s as t}; \ No newline at end of file diff --git a/webui/assets/chunk-EDXVE4YY-PDqXJqq9.js b/webui/assets/chunk-EDXVE4YY-PDqXJqq9.js new file mode 100644 index 0000000000000000000000000000000000000000..4b495bbf76681f7fb0573b78586254c044917e90 --- /dev/null +++ b/webui/assets/chunk-EDXVE4YY-PDqXJqq9.js @@ -0,0 +1 @@ +import{g as e,h as t}from"./src-DZYWZEqD.js";import{c as n}from"./chunk-ICPOFSXX-BhJj4Z4R.js";var r=t((t,r,o,s)=>{t.attr(`class`,o);let{width:c,height:l,x:u,y:d}=i(t,r);n(t,l,c,s);let f=a(u,d,c,l,r);t.attr(`viewBox`,f),e.debug(`viewBox configured: ${f} with padding: ${r}`)},`setupViewPortForSVG`),i=t((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),a=t((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);export{r as t}; \ No newline at end of file diff --git a/webui/assets/chunk-ENJZ2VHE-BgCfVyME.js b/webui/assets/chunk-ENJZ2VHE-BgCfVyME.js new file mode 100644 index 0000000000000000000000000000000000000000..da79e44fba60c8e1deef3805436d1fde5aa2243a --- /dev/null +++ b/webui/assets/chunk-ENJZ2VHE-BgCfVyME.js @@ -0,0 +1,10 @@ +import{g as e,h as t,p as n}from"./src-DZYWZEqD.js";import{b as r,w as i,y as a}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{C as o,D as s,E as c,O as l,S as u,T as d,_ as f,b as p,h as m,l as h,v as g,w as _,x as v,y}from"./chunk-5PVQY5BW-D8dVtMiH.js";import{t as b}from"./line-CkXJICAw.js";import{n as x}from"./chunk-U2HBQHQK-C4Z8_HX4.js";import{i as S,n as ee,r as C,t as w}from"./chunk-BSJP7CBP-DfPpUNd1.js";import{n as T}from"./chunk-ZZ45TVLE-620quLQs.js";import{i as E,n as D}from"./chunk-X2U36JSP-BrQ3X179.js";import{t as te}from"./rough.esm-6CnTHTkH.js";import{r as O}from"./chunk-5FUZZQ4R-dz-eHLU2.js";var ne=t((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&j(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&j(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),k={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{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}},A=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],j=t((t,n,r,i,a,o,s=!1,c)=>{let l=k[r],u=l&&A.includes(l.type);if(!l){e.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${n===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let e=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(e)){let t=document.getElementById(d);if(t){let n=t.cloneNode(!0);n.id=e,n.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),t.parentNode?.appendChild(n)}}t.attr(`marker-${n}`,`url(${i}#${e})`)}else t.attr(`marker-${n}`,`url(${i}#${d})`)},`addEdgeMarker`),re=t(e=>typeof e==`string`?e:r()?.flowchart?.curve,`resolveEdgeCurveType`),M=new Map,N=new Map,P=t(()=>{M.clear(),N.clear()},`clear`),F=t(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),I=t(async(t,a)=>{let o=r(),s=i(o),{labelStyles:c}=E(a);a.labelStyle=c;let l=t.insert(`g`).attr(`class`,`edgeLabel`),u=l.insert(`g`).attr(`class`,`label`).attr(`data-id`,a.id),d=a.labelType===`markdown`,f=await x(t,a.label,{style:F(a.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:void 0},o);u.node().appendChild(f),e.info(`abc82`,a,a.labelType);let p=f.getBBox(),m=p;if(s){let e=f.children[0],t=n(f);p=e.getBoundingClientRect(),m=p,t.attr(`width`,p.width),t.attr(`height`,p.height)}else{let e=n(f).select(`text`).node();e&&typeof e.getBBox==`function`&&(m=e.getBBox())}u.attr(`transform`,w(m,s)),M.set(a.id,l),a.width=p.width,a.height=p.height;let h;if(a.startLabelLeft){let e=t.insert(`g`).attr(`class`,`edgeTerminals`),r=e.insert(`g`).attr(`class`,`inner`),i=await O(r,a.startLabelLeft,F(a.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=n(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}r.attr(`transform`,w(o,s)),N.get(a.id)||N.set(a.id,{}),N.get(a.id).startLeft=e,L(h,a.startLabelLeft)}if(a.startLabelRight){let e=t.insert(`g`).attr(`class`,`edgeTerminals`),r=e.insert(`g`).attr(`class`,`inner`),i=await O(r,a.startLabelRight,F(a.labelStyle)||``,!1,!1);h=i,r.node().appendChild(i);let o=i.getBBox();if(s){let e=i.children[0],t=n(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}r.attr(`transform`,w(o,s)),N.get(a.id)||N.set(a.id,{}),N.get(a.id).startRight=e,L(h,a.startLabelRight)}if(a.endLabelLeft){let e=t.insert(`g`).attr(`class`,`edgeTerminals`),r=e.insert(`g`).attr(`class`,`inner`),i=await O(r,a.endLabelLeft,F(a.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=n(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}r.attr(`transform`,w(o,s)),e.node().appendChild(i),N.get(a.id)||N.set(a.id,{}),N.get(a.id).endLeft=e,L(h,a.endLabelLeft)}if(a.endLabelRight){let e=t.insert(`g`).attr(`class`,`edgeTerminals`),r=e.insert(`g`).attr(`class`,`inner`),i=await O(r,a.endLabelRight,F(a.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=n(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}r.attr(`transform`,w(o,s)),e.node().appendChild(i),N.get(a.id)||N.set(a.id,{}),N.get(a.id).endRight=e,L(h,a.endLabelRight)}return f},`insertEdgeLabel`);function L(e,t){i(r())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}t(L,`setTerminalWidth`);var R=t((t,n)=>{e.debug(`Moving label abc88 `,t.id,t.label,M.get(t.id),n);let i=n.updatedPath?n.updatedPath:n.originalPath,{subGraphTitleTotalMargin:a}=T(r());if(t.label){let r=M.get(t.id),o=t.x,s=t.y;if(i){let r=m.calcLabelPosition(i);e.debug(`Moving label `+t.label+` from (`,o,`,`,s,`) to (`,r.x,`,`,r.y,`) abc88`),n.updatedPath&&(o=r.x,s=r.y)}r.attr(`transform`,`translate(${o}, ${s+a/2})`)}if(t.startLabelLeft){let e=N.get(t.id).startLeft,n=t.x,r=t.y;if(i){let e=m.calcTerminalLabelPosition(t.arrowTypeStart?10:0,`start_left`,i);n=e.x,r=e.y}e.attr(`transform`,`translate(${n}, ${r})`)}if(t.startLabelRight){let e=N.get(t.id).startRight,n=t.x,r=t.y;if(i){let e=m.calcTerminalLabelPosition(t.arrowTypeStart?10:0,`start_right`,i);n=e.x,r=e.y}e.attr(`transform`,`translate(${n}, ${r})`)}if(t.endLabelLeft){let e=N.get(t.id).endLeft,n=t.x,r=t.y;if(i){let e=m.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,`end_left`,i);n=e.x,r=e.y}e.attr(`transform`,`translate(${n}, ${r})`)}if(t.endLabelRight){let e=N.get(t.id).endRight,n=t.x,r=t.y;if(i){let e=m.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,`end_right`,i);n=e.x,r=e.y}e.attr(`transform`,`translate(${n}, ${r})`)}},`positionEdgeLabel`),z=t((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),B=t((t,n,r)=>{e.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(n)} + insidePoint : ${JSON.stringify(r)} + node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let i=t.x,a=t.y,o=Math.abs(i-r.x),s=t.width/2,c=r.xMath.abs(i-n.x)*l){let t=r.y{e.warn(`abc88 cutPathAtIntersect`,t,n);let r=[],i=t[0],a=!1;return t.forEach(t=>{if(e.info(`abc88 checking point`,t,n),!z(n,t)&&!a){let o=B(n,i,t);e.debug(`abc88 inside`,t,i,o),e.debug(`abc88 intersection`,o,n);let s=!1;r.forEach(e=>{s||=e.x===o.x&&e.y===o.y}),r.some(e=>e.x===o.x&&e.y===o.y)?e.warn(`abc88 no intersect`,o,r):r.push(o),a=!0}else e.warn(`abc88 outside`,t,i),i=t,a||r.push(t)}),e.debug(`returning points`,r),r},`cutPathAtIntersect`);function H(e){let t=[],n=[];for(let r=1;r5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}t(H,`extractCornerPoints`);var U=t(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),ie=t(function(t){let{cornerPointPositions:n}=H(t),r=[];for(let i=0;i10&&Math.abs(a.y-n.y)>=10?(e.debug(`Corner point fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),f=o.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:u<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:u<0?s.y-5+d:s.y+5-d}):e.debug(`Corner point skipping fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),r.push(f,c)}else r.push(t[i]);return r},`fixCorners`),W=t((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),G=t(function(t,i,a,x,C,w,T,E=!1){if(!T)throw Error(`insertEdge: missing diagramId for edge "${i.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:O}=r(),k=i.points,A=!1,j=C;var M=w;let N=[];for(let e in i.cssCompiledStyles)D(e)||N.push(i.cssCompiledStyles[e]);e.debug(`UIO intersect check`,i.points,M.x,j.x),M.intersect&&j.intersect&&!E&&(k=k.slice(1,i.points.length-1),k.unshift(j.intersect(k[0])),e.debug(`Last point UIO`,i.start,`-->`,i.end,k[k.length-1],M,M.intersect(k[k.length-1])),k.push(M.intersect(k[k.length-1])));let P=btoa(JSON.stringify(k));i.toCluster&&(e.info(`to cluster abc88`,a.get(i.toCluster)),k=V(i.points,a.get(i.toCluster).node),A=!0),i.fromCluster&&(e.debug(`from cluster abc88`,a.get(i.fromCluster),JSON.stringify(k,null,2)),k=V(k.reverse(),a.get(i.fromCluster).node).reverse(),A=!0);let F=k.filter(e=>!Number.isNaN(e.y)),I=re(i.curve);I!==`rounded`&&(F=ie(F));let L=l;switch(I){case`linear`:L=l;break;case`basis`:L=d;break;case`cardinal`:L=_;break;case`bumpX`:L=c;break;case`bumpY`:L=s;break;case`catmullRom`:L=o;break;case`monotoneX`:L=v;break;case`monotoneY`:L=u;break;case`natural`:L=p;break;case`step`:L=y;break;case`stepAfter`:L=f;break;case`stepBefore`:L=g;break;case`rounded`:L=l;break;default:L=d}let{x:R,y:z}=ee(i),B=b().x(R).y(z).curve(L),H;switch(i.thickness){case`normal`:H=`edge-thickness-normal`;break;case`thick`:H=`edge-thickness-thick`;break;case`invisible`:H=`edge-thickness-invisible`;break;default:H=`edge-thickness-normal`}switch(i.pattern){case`solid`:H+=` edge-pattern-solid`;break;case`dotted`:H+=` edge-pattern-dotted`;break;case`dashed`:H+=` edge-pattern-dashed`;break;default:H+=` edge-pattern-solid`}let U,G=I===`rounded`?K(J(F,i),5):B(F),q=Array.isArray(i.style)?i.style:[i.style],Y=q.find(e=>e?.startsWith(`stroke:`)),X=``;i.animate&&(X=`edge-animation-fast`),i.animation&&(X=`edge-animation-`+i.animation);let Z=!1;if(i.look===`handDrawn`){let e=te.svg(t);Object.assign([],F);let r=e.path(G,{roughness:.3,seed:O});H+=` transition`,U=n(r).select(`path`).attr(`id`,`${T}-${i.id}`).attr(`class`,` `+H+(i.classes?` `+i.classes:``)+(X?` `+X:``)).attr(`style`,q?q.reduce((e,t)=>e+`;`+t,``):``);let a=U.attr(`d`);U.attr(`d`,a),t.node().appendChild(U.node())}else{let e=N.join(`;`),n=q?q.reduce((e,t)=>e+t+`;`,``):``,r=(e?e+`;`+n+`;`:n)+`;`+(q?q.reduce((e,t)=>e+`;`+t,``):``);U=t.append(`path`).attr(`d`,G).attr(`id`,`${T}-${i.id}`).attr(`class`,` `+H+(i.classes?` `+i.classes:``)+(X?` `+X:``)).attr(`style`,r),Y=r.match(/stroke:([^;]+)/)?.[1],Z=i.animate===!0||!!i.animation||e.includes(`animation`);let a=U.node(),o=typeof a.getTotalLength==`function`?a.getTotalLength():0,s=S[i.arrowTypeStart]||0,c=S[i.arrowTypeEnd]||0;if(i.look===`neo`&&!Z){let e=`stroke-dasharray: ${i.pattern===`dotted`||i.pattern===`dashed`?W(o,s,c):`0 ${s} ${o-s-c} ${c}`}; stroke-dashoffset: 0;`;U.attr(`style`,e+U.attr(`style`))}}U.attr(`data-edge`,!0),U.attr(`data-et`,`edge`),U.attr(`data-id`,i.id),U.attr(`data-points`,P),U.attr(`data-look`,h(i.look)),i.showPoints&&F.forEach(e=>{t.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,e.x).attr(`cy`,e.y)});let Q=``;(r().flowchart.arrowMarkerAbsolute||r().state.arrowMarkerAbsolute)&&(Q=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),e.info(`arrowTypeStart`,i.arrowTypeStart),e.info(`arrowTypeEnd`,i.arrowTypeEnd);let ae=!Z&&i?.look===`neo`;ne(U,i,Q,T,x,ae,Y);let oe=Math.floor(k.length/2),se=k[oe];m.isLabelCoordinateInPath(se,U.attr(`d`))||(A=!0);let $={};return A&&($.updatedPath=k),$.originalPath=i.points,$},`insertEdge`);function K(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a({...e}));if(e.length>=2&&C[t.arrowTypeStart]){let r=C[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=q(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&C[t.arrowTypeEnd]){let i=C[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=q(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}t(J,`applyMarkerOffsetsToPoints`);var Y=t((e,t,n,r)=>{t.forEach(t=>{X[t](e,n,r)})},`insertMarkers`),X={extension:t((t,n,r)=>{e.trace(`Making markers for `,r),t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionStart`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd`).attr(`class`,`marker extension `+n).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`),t.append(`marker`).attr(`id`,r+`_`+n+`-extensionStart-margin`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),t.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd-margin`).attr(`class`,`marker extension `+n).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:t((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`),barbNeo:t((e,t,n)=>{let{themeVariables:r}=a(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),zero_or_one:t((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`),one_or_more:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`,n+`_`+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`),zero_or_more:t((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`),only_one_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i,mainBkg:o}=r,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),c.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i,mainBkg:o}=r,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),c.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:t((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+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`),requirement_contains:t((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`stroke-width`,`${i}`).attr(`viewBox`,`0 0 25 20`).append(`path`).attr(`d`,`M0,0 + L20,10 + M20,10 + L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:t((e,t,n)=>{let{themeVariables:r}=a(),{strokeWidth:i}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);o.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),o.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),o.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),o.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},Z=Y;export{R as a,Z as i,G as n,I as r,P as t}; \ No newline at end of file diff --git a/webui/assets/chunk-FMBD7UC4-CZ7KcSyF.js b/webui/assets/chunk-FMBD7UC4-CZ7KcSyF.js new file mode 100644 index 0000000000000000000000000000000000000000..98bb4bd87e1896760d5aab9acd0ebfce7748c1e7 --- /dev/null +++ b/webui/assets/chunk-FMBD7UC4-CZ7KcSyF.js @@ -0,0 +1,15 @@ +import{h as e}from"./src-DZYWZEqD.js";var t=e(()=>` + /* Font Awesome icon styling - consolidated */ + .label-icon { + display: inline-block; + height: 1em; + overflow: visible; + vertical-align: -0.125em; + } + + .node .label-icon path { + fill: currentColor; + stroke: revert; + stroke-width: revert; + } +`,`getIconStyles`);export{t}; \ No newline at end of file diff --git a/webui/assets/chunk-FOC6F5B3-BL8w9NZc.js b/webui/assets/chunk-FOC6F5B3-BL8w9NZc.js new file mode 100644 index 0000000000000000000000000000000000000000..31bfc2db258805890af4c6a6172f4dbeccc89382 --- /dev/null +++ b/webui/assets/chunk-FOC6F5B3-BL8w9NZc.js @@ -0,0 +1 @@ +import{_ as e,c as t,g as n,h as r,i,m as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BU8zzKFc.js";var l=class extends s{static{a(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},u={parser:{TokenBuilder:a(()=>new l,`TokenBuilder`),ValueConverter:a(()=>new i,`ValueConverter`)}};function d(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,u);return a.ServiceRegistry.register(s),{shared:a,Packet:s}}a(d,`createPacketServices`);export{d as n,u as t}; \ No newline at end of file diff --git a/webui/assets/chunk-ICPOFSXX-BhJj4Z4R.js b/webui/assets/chunk-ICPOFSXX-BhJj4Z4R.js new file mode 100644 index 0000000000000000000000000000000000000000..e143918474fe9208db8e27d43b870d2fa4a1ab9e --- /dev/null +++ b/webui/assets/chunk-ICPOFSXX-BhJj4Z4R.js @@ -0,0 +1,122 @@ +import{t as e}from"./preload-helper-CPuF8Owr.js";import{_ as t,g as n,h as r,m as i}from"./src-DZYWZEqD.js";var a={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=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let i=n<.5?n*(1+t):n+t-n*t,o=2*n-i;switch(r){case`r`:return a.hue2rgb(o,i,e+1/3)*255;case`g`:return a.hue2rgb(o,i,e)*255;case`b`:return a.hue2rgb(o,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,c=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return c*100;switch(i){case e:return((t-n)/s+(tt>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}},s={};for(let e=0;e<=255;e++)s[e]=o.unit.dec2hex(e);var c={ALL:0,RGB:1,HSL:2},l=class{constructor(){this.type=c.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=c.ALL}is(e){return this.type===e}},u=new class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new l}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=c.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=o.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=o.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=o.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=o.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=o.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=o.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(c.HSL)&&t!==void 0?t:(this._ensureHSL(),o.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(c.HSL)&&t!==void 0?t:(this._ensureHSL(),o.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(c.HSL)&&t!==void 0?t:(this._ensureHSL(),o.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(c.RGB)&&t!==void 0?t:(this._ensureRGB(),o.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(c.RGB)&&t!==void 0?t:(this._ensureRGB(),o.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(c.RGB)&&t!==void 0?t:(this._ensureRGB(),o.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(c.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(c.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(c.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(c.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(c.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(c.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},`transparent`),d={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(d.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,c=o?8:4,l=a?0:-1,f=o?255:15;return u.set({r:(r>>c*(l+3)&f)*s,g:(r>>c*(l+2)&f)*s,b:(r>>c*(l+1)&f)*s,a:a?(r&f)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}${s[Math.round(i*255)]}`:`#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}`}},f={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=>{let t=e.match(f.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return o.channel.clamp.h(parseFloat(e)*.9);case`rad`:return o.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return o.channel.clamp.h(parseFloat(e)*360)}}return o.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(f.re);if(!n)return;let[,r,i,a,s,c]=n;return u.set({h:f._hue2deg(r),s:o.channel.clamp.s(parseFloat(i)),l:o.channel.clamp.l(parseFloat(a)),a:s?o.channel.clamp.a(c?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%, ${i})`:`hsl(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%)`}},p={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();let t=p.colors[e];if(t)return d.parse(t)},stringify:e=>{let t=d.stringify(e);for(let e in p.colors)if(p.colors[e]===t)return e}},m={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=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(m.re);if(!n)return;let[,r,i,a,s,c,l,d,f]=n;return u.set({r:o.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:o.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:o.channel.clamp.b(l?parseFloat(c)*2.55:parseFloat(c)),a:d?o.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)}, ${o.lang.round(i)})`:`rgb(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)})`}},h={format:{keyword:p,hex:d,rgb:m,rgba:m,hsl:f,hsla:f},parse:e=>{if(typeof e!=`string`)return e;let t=d.parse(e)||m.parse(e)||f.parse(e)||p.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(c.HSL)||e.data.r===void 0?f.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?m.stringify(e):d.stringify(e)},ee=(e,t)=>{let n=h.parse(e);for(let e in t)n[e]=o.channel.clamp[e](t[e]);return h.stringify(n)},g=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return ee(e,{a:t});let i=u.set({r:o.channel.clamp.r(e),g:o.channel.clamp.g(t),b:o.channel.clamp.b(n),a:o.channel.clamp.a(r)});return h.stringify(i)},te=e=>{let{r:t,g:n,b:r}=h.parse(e),i=.2126*o.channel.toLinear(t)+.7152*o.channel.toLinear(n)+.0722*o.channel.toLinear(r);return o.lang.round(i)},ne=e=>te(e)>=.5,_=e=>!ne(e),v=(e,t,n)=>{let r=h.parse(e),i=r[t],a=o.channel.clamp[t](i+n);return i!==a&&(r[t]=a),h.stringify(r)},y=(e,t)=>v(e,`l`,t),b=(e,t)=>v(e,`l`,-t),x=(e,t)=>{let n=h.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return ee(e,r)},re=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=h.parse(e),{r:s,g:c,b:l,a:u}=h.parse(t),d=n/100,f=d*2-1,p=o-u,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,ee=1-m;return g(r*m+s*ee,i*m+c*ee,a*m+l*ee,o*d+u*(1-d))},S=(e,t=100)=>{let n=h.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,re(n,e,t)},{entries:ie,setPrototypeOf:C,isFrozen:ae,getPrototypeOf:oe,getOwnPropertyDescriptor:se}=Object,{freeze:w,seal:T,create:ce}=Object,{apply:le,construct:ue}=typeof Reflect<`u`&&Reflect;w||=function(e){return e},T||=function(e){return e},le||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ue||=function(e){return new e(...[...arguments].slice(1))};var de=A(Array.prototype.forEach),fe=A(Array.prototype.lastIndexOf),pe=A(Array.prototype.pop),me=A(Array.prototype.push),he=A(Array.prototype.splice),E=Array.isArray,ge=A(String.prototype.toLowerCase),_e=A(String.prototype.toString),ve=A(String.prototype.match),ye=A(String.prototype.replace),be=A(String.prototype.indexOf),xe=A(String.prototype.trim),Se=A(Number.prototype.toString),Ce=A(Boolean.prototype.toString),we=typeof BigInt>`u`?null:A(BigInt.prototype.toString),D=typeof Symbol>`u`?null:A(Symbol.prototype.toString),O=A(Object.prototype.hasOwnProperty),Te=A(Object.prototype.toString),k=A(RegExp.prototype.test),Ee=De(TypeError);function A(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return le(e,t,n)}}function De(e){return function(){return ue(e,[...arguments])}}function j(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge;if(C&&C(e,null),!E(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ae(t)||(t[r]=e),i=e)}e[i]=!0}return e}function M(e){for(let t=0;t/gm),P=T(/\$\{[\w\W]*/gm),We=T(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ge=T(/^aria-[\-\w]+$/),Ke=T(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qe=T(/^(?:\w+script|data):/i),Je=T(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ye=T(/^html$/i),F=T(/^[a-z][.\w]*(-[.\w]+)+$/i),Xe=Object.freeze({__proto__:null,ARIA_ATTR:Ge,ATTR_WHITESPACE:Je,CUSTOM_ELEMENT:F,DATA_ATTR:We,DOCTYPE_NAME:Ye,ERB_EXPR:Ue,IS_ALLOWED_URI:Ke,IS_SCRIPT_OR_DATA:qe,MUSTACHE_EXPR:He,TMPLIT_EXPR:P}),Ze={element:1,text:3,progressingInstruction:7,comment:8,document:9},Qe=function(){return typeof window>`u`?null:window},$e=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qe(),t=e=>tt(e);if(t.version=`3.4.1`,t.removed=[],!e||!e.document||e.document.nodeType!==Ze.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=ke(m,`cloneNode`),ee=ke(m,`remove`),g=ke(m,`nextSibling`),te=ke(m,`childNodes`),ne=ke(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let _,v=``,{implementation:y,createNodeIterator:b,createDocumentFragment:x,getElementsByTagName:re}=n,{importNode:S}=r,C=et();t.isSupported=typeof ie==`function`&&typeof ne==`function`&&y&&y.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ae,ERB_EXPR:oe,TMPLIT_EXPR:se,DATA_ATTR:T,ARIA_ATTR:le,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:Ce}=Xe,{IS_ALLOWED_URI:we}=Xe,D=null,Te=j({},[...je,...Me,...Ne,...Fe,...Le]),A=null,De=j({},[...Re,...ze,...Be,...Ve]),M=Object.seal(ce(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}})),He=null,Ue=null,P=Object.seal(ce(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),We=!0,Ge=!0,qe=!1,Je=!0,F=!1,I=!0,L=!1,nt=!1,rt=!1,R=!1,z=!1,it=!1,at=!0,ot=!1,st=`user-content-`,ct=!0,B=!1,V={},H=null,U=j({},[`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`]),lt=null,ut=j({},[`audio`,`video`,`img`,`source`,`image`,`track`]),dt=null,ft=j({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),pt=`http://www.w3.org/1998/Math/MathML`,mt=`http://www.w3.org/2000/svg`,W=`http://www.w3.org/1999/xhtml`,ht=W,gt=!1,_t=null,vt=j({},[pt,mt,W],_e),yt=j({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),bt=j({},[`annotation-xml`]),xt=j({},[`title`,`style`,`font`,`a`,`script`]),St=null,Ct=[`application/xhtml+xml`,`text/html`],G=null,wt=null,Tt=n.createElement(`form`),Et=function(e){return e instanceof RegExp||e instanceof Function},Dt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(wt&&wt===e)return;(!e||typeof e!=`object`)&&(e={}),e=N(e),St=Ct.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,G=St===`application/xhtml+xml`?_e:ge,D=O(e,`ALLOWED_TAGS`)&&E(e.ALLOWED_TAGS)?j({},e.ALLOWED_TAGS,G):Te,A=O(e,`ALLOWED_ATTR`)&&E(e.ALLOWED_ATTR)?j({},e.ALLOWED_ATTR,G):De,_t=O(e,`ALLOWED_NAMESPACES`)&&E(e.ALLOWED_NAMESPACES)?j({},e.ALLOWED_NAMESPACES,_e):vt,dt=O(e,`ADD_URI_SAFE_ATTR`)&&E(e.ADD_URI_SAFE_ATTR)?j(N(ft),e.ADD_URI_SAFE_ATTR,G):ft,lt=O(e,`ADD_DATA_URI_TAGS`)&&E(e.ADD_DATA_URI_TAGS)?j(N(ut),e.ADD_DATA_URI_TAGS,G):ut,H=O(e,`FORBID_CONTENTS`)&&E(e.FORBID_CONTENTS)?j({},e.FORBID_CONTENTS,G):U,He=O(e,`FORBID_TAGS`)&&E(e.FORBID_TAGS)?j({},e.FORBID_TAGS,G):N({}),Ue=O(e,`FORBID_ATTR`)&&E(e.FORBID_ATTR)?j({},e.FORBID_ATTR,G):N({}),V=O(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?N(e.USE_PROFILES):e.USE_PROFILES:!1,We=e.ALLOW_ARIA_ATTR!==!1,Ge=e.ALLOW_DATA_ATTR!==!1,qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=e.SAFE_FOR_TEMPLATES||!1,I=e.SAFE_FOR_XML!==!1,L=e.WHOLE_DOCUMENT||!1,R=e.RETURN_DOM||!1,z=e.RETURN_DOM_FRAGMENT||!1,it=e.RETURN_TRUSTED_TYPE||!1,rt=e.FORCE_BODY||!1,at=e.SANITIZE_DOM!==!1,ot=e.SANITIZE_NAMED_PROPS||!1,ct=e.KEEP_CONTENT!==!1,B=e.IN_PLACE||!1,we=Ae(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ke,ht=typeof e.NAMESPACE==`string`?e.NAMESPACE:W,yt=O(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?N(e.MATHML_TEXT_INTEGRATION_POINTS):j({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),bt=O(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?N(e.HTML_INTEGRATION_POINTS):j({},[`annotation-xml`]);let t=O(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?N(e.CUSTOM_ELEMENT_HANDLING):ce(null);if(M=ce(null),O(t,`tagNameCheck`)&&Et(t.tagNameCheck)&&(M.tagNameCheck=t.tagNameCheck),O(t,`attributeNameCheck`)&&Et(t.attributeNameCheck)&&(M.attributeNameCheck=t.attributeNameCheck),O(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(M.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),F&&(Ge=!1),z&&(R=!0),V&&(D=j({},Le),A=ce(null),V.html===!0&&(j(D,je),j(A,Re)),V.svg===!0&&(j(D,Me),j(A,ze),j(A,Ve)),V.svgFilters===!0&&(j(D,Ne),j(A,ze),j(A,Ve)),V.mathMl===!0&&(j(D,Fe),j(A,Be),j(A,Ve))),P.tagCheck=null,P.attributeCheck=null,O(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?P.tagCheck=e.ADD_TAGS:E(e.ADD_TAGS)&&(D===Te&&(D=N(D)),j(D,e.ADD_TAGS,G))),O(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?P.attributeCheck=e.ADD_ATTR:E(e.ADD_ATTR)&&(A===De&&(A=N(A)),j(A,e.ADD_ATTR,G))),O(e,`ADD_URI_SAFE_ATTR`)&&E(e.ADD_URI_SAFE_ATTR)&&j(dt,e.ADD_URI_SAFE_ATTR,G),O(e,`FORBID_CONTENTS`)&&E(e.FORBID_CONTENTS)&&(H===U&&(H=N(H)),j(H,e.FORBID_CONTENTS,G)),O(e,`ADD_FORBID_CONTENTS`)&&E(e.ADD_FORBID_CONTENTS)&&(H===U&&(H=N(H)),j(H,e.ADD_FORBID_CONTENTS,G)),ct&&(D[`#text`]=!0),L&&j(D,[`html`,`head`,`body`]),D.table&&(j(D,[`tbody`]),delete He.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ee(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ee(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);_=e.TRUSTED_TYPES_POLICY,v=_.createHTML(``)}else _===void 0&&(_=$e(p,i)),_!==null&&typeof v==`string`&&(v=_.createHTML(``));w&&w(e),wt=e},K=j({},[...Me,...Ne,...Pe]),q=j({},[...Fe,...Ie]),Ot=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:ht,tagName:`template`});let n=ge(e.tagName),r=ge(t.tagName);return _t[e.namespaceURI]?e.namespaceURI===mt?t.namespaceURI===W?n===`svg`:t.namespaceURI===pt?n===`svg`&&(r===`annotation-xml`||yt[r]):!!K[n]:e.namespaceURI===pt?t.namespaceURI===W?n===`math`:t.namespaceURI===mt?n===`math`&&bt[r]:!!q[n]:e.namespaceURI===W?t.namespaceURI===mt&&!bt[r]||t.namespaceURI===pt&&!yt[r]?!1:!q[n]&&(xt[n]||!K[n]):!!(St===`application/xhtml+xml`&&_t[e.namespaceURI]):!1},J=function(e){me(t.removed,{element:e});try{ne(e).removeChild(e)}catch{ee(e)}},Y=function(e,n){try{me(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{me(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(R||z)try{J(n)}catch{}else try{n.setAttribute(e,``)}catch{}},kt=function(e){let t=null,r=null;if(rt)e=``+e;else{let t=ve(e,/^[\r\n\t ]+/);r=t&&t[0]}St===`application/xhtml+xml`&&ht===W&&(e=``+e+``);let i=_?_.createHTML(e):e;if(ht===W)try{t=new f().parseFromString(i,St)}catch{}if(!t||!t.documentElement){t=y.createDocument(ht,`template`,null);try{t.documentElement.innerHTML=gt?v:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),ht===W?re.call(t,L?`html`:`body`)[0]:L?t.documentElement:a},At=function(e){return b.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},jt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},X=function(e){return typeof s==`function`&&e instanceof s};function Z(e,n,r){de(e,e=>{e.call(t,n,r,wt)})}let Q=function(e){let n=null;if(Z(C.beforeSanitizeElements,e,null),jt(e))return J(e),!0;let r=G(e.nodeName);if(Z(C.uponSanitizeElement,e,{tagName:r,allowedTags:D}),I&&e.hasChildNodes()&&!X(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent)||I&&e.namespaceURI===W&&r===`style`&&X(e.firstElementChild)||e.nodeType===Ze.progressingInstruction||I&&e.nodeType===Ze.comment&&k(/<[/\w]/g,e.data))return J(e),!0;if(He[r]||!(P.tagCheck instanceof Function&&P.tagCheck(r))&&!D[r]){if(!He[r]&&Nt(r)&&(M.tagNameCheck instanceof RegExp&&k(M.tagNameCheck,r)||M.tagNameCheck instanceof Function&&M.tagNameCheck(r)))return!1;if(ct&&!H[r]){let t=ne(e)||e.parentNode,n=te(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);t.insertBefore(r,g(e))}}}return J(e),!0}return e instanceof c&&!Ot(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&k(/<\/no(script|embed|frames)/i,e.innerHTML)?(J(e),!0):(F&&e.nodeType===Ze.text&&(n=e.textContent,de([ae,oe,se],e=>{n=ye(n,e,` `)}),e.textContent!==n&&(me(t.removed,{element:e.cloneNode()}),e.textContent=n)),Z(C.afterSanitizeElements,e,null),!1)},Mt=function(e,t,r){if(Ue[t]||at&&(t===`id`||t===`name`)&&(r in n||r in Tt))return!1;if(!(Ge&&!Ue[t]&&k(T,t))&&!(We&&k(le,t))&&!(P.attributeCheck instanceof Function&&P.attributeCheck(t,e))){if(!A[t]||Ue[t]){if(!(Nt(e)&&(M.tagNameCheck instanceof RegExp&&k(M.tagNameCheck,e)||M.tagNameCheck instanceof Function&&M.tagNameCheck(e))&&(M.attributeNameCheck instanceof RegExp&&k(M.attributeNameCheck,t)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(t,e))||t===`is`&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&k(M.tagNameCheck,r)||M.tagNameCheck instanceof Function&&M.tagNameCheck(r))))return!1}else if(!dt[t]&&!k(we,ye(r,Se,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&be(r,`data:`)===0&<[e])&&!(qe&&!k(ue,ye(r,Se,``)))&&r)return!1}return!0},$=j({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Nt=function(e){return!$[ge(e)]&&k(Ce,e)},Pt=function(e){Z(C.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||jt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=G(a),l=s,u=a===`value`?l:xe(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Z(C.uponSanitizeAttribute,e,r),u=r.attrValue,ot&&(c===`id`||c===`name`)&&be(u,st)!==0&&(Y(a,e),u=st+u),I&&k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Y(a,e);continue}if(c===`attributename`&&ve(u,`href`)){Y(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Y(a,e);continue}if(!Je&&k(/\/>/i,u)){Y(a,e);continue}F&&de([ae,oe,se],e=>{u=ye(u,e,` `)});let d=G(e.nodeName);if(!Mt(d,c,u)){Y(a,e);continue}if(_&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=_.createHTML(u);break;case`TrustedScriptURL`:u=_.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),jt(e)?J(e):pe(t.removed)}catch{Y(a,e)}}Z(C.afterSanitizeAttributes,e,null)},Ft=function(e){let t=null,n=At(e);for(Z(C.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Z(C.uponSanitizeShadowNode,t,null),Q(t),Pt(t),t.content instanceof a&&Ft(t.content);Z(C.afterSanitizeShadowDOM,e,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(gt=!e,gt&&(e=``),typeof e!=`string`&&!X(e)&&(e=Oe(e),typeof e!=`string`))throw Ee(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(nt||Dt(n),t.removed=[],typeof e==`string`&&(B=!1),B){let t=e.nodeName;if(typeof t==`string`){let e=G(t);if(!D[e]||He[e])throw Ee(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=kt(``),o=i.ownerDocument.importNode(e,!0),o.nodeType===Ze.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!R&&!F&&!L&&e.indexOf(`<`)===-1)return _&&it?_.createHTML(e):e;if(i=kt(e),!i)return R?null:it?v:``}i&&rt&&J(i.firstChild);let u=At(B?e:i);for(;c=u.nextNode();)Q(c),Pt(c),c.content instanceof a&&Ft(c.content);if(B)return e;if(R){if(F){i.normalize();let e=i.innerHTML;de([ae,oe,se],t=>{e=ye(e,t,` `)}),i.innerHTML=e}if(z)for(l=x.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(A.shadowroot||A.shadowrootmode)&&(l=S.call(r,l,!0)),l}let d=L?i.outerHTML:i.innerHTML;return L&&D[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&k(Ye,i.ownerDocument.doctype.name)&&(d=` +`+d),F&&de([ae,oe,se],e=>{d=ye(d,e,` `)}),_&&it?_.createHTML(d):d},t.setConfig=function(){Dt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),nt=!0},t.clearConfig=function(){wt=null,nt=!1},t.isValidAttribute=function(e,t,n){return wt||Dt({}),Mt(G(e),G(t),n)},t.addHook=function(e,t){typeof t==`function`&&me(C[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=fe(C[e],t);return n===-1?void 0:he(C[e],n,1)[0]}return pe(C[e])},t.removeHooks=function(e){C[e]=[]},t.removeAllHooks=function(){C=et()},t}var I=tt(),L=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,nt=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,rt=/\s*%%.*\n/gm,R=class extends Error{static{r(this,`UnknownDiagramError`)}constructor(e){super(e),this.name=`UnknownDiagramError`}},z={},it=r(function(e,t){e=e.replace(L,``).replace(nt,``).replace(rt,` +`);for(let[n,{detector:r}]of Object.entries(z))if(r(e,t))return n;throw new R(`No diagram type detected matching given configuration for text: ${e}`)},`detectType`),at=r((...e)=>{for(let{id:t,detector:n,loader:r}of e)ot(t,n,r)},`registerLazyLoadedDiagrams`),ot=r((e,t,r)=>{z[e]&&n.warn(`Detector with key ${e} already exists. Overwriting.`),z[e]={detector:t,loader:r},n.debug(`Detector with key ${e} added${r?` with loader`:``}`)},`addDetector`),st=r(e=>z[e].loader,`getDiagramLoader`),ct=r((e,t,{depth:n=2,clobber:r=!1}={})=>{let i={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(t=>ct(e,t,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(t=>{e.includes(t)||e.push(t)}),e):e===void 0||n<=0?typeof e==`object`&&e&&typeof t==`object`?Object.assign(e,t):t:(t!==void 0&&typeof e==`object`&&typeof t==`object`&&Object.keys(t).forEach(i=>{typeof t[i]==`object`&&t[i]!==null&&(e[i]===void 0||typeof e[i]==`object`)?(e[i]===void 0&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=ct(e[i],t[i],{depth:n-1,clobber:r})):(r||typeof e[i]!=`object`&&typeof t[i]!=`object`)&&(e[i]=t[i])}),e)},`assignWithDepth`),B=ct,V=`#ffffff`,H=`#f2f2f2`,U=r((e,t)=>t?x(e,{s:-40,l:10}):x(e,{s:-40,l:-10}),`mkBorder`),lt=class{static{r(this,`Theme`)}constructor(){this.background=`#f4f4f4`,this.primaryColor=`#fff4dd`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.useGradient=!0,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||U(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||U(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||U(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(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?b(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||b(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(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||y(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.vertLineColor=this.vertLineColor||`navy`,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.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||b(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||b(this.mainBkg,10)):(this.rowOdd=this.rowOdd||y(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||y(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||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},ut=r(e=>{let t=new lt;return t.calculate(e),t},`getThemeVariables`),dt=class{static{r(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=y(this.primaryColor,16),this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=S(this.background),this.secondaryBorderColor=U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=U(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.mainBkg=`#1f2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=y(S(`#323D47`),10),this.lineColor=`calculated`,this.border1=`#ccc`,this.border2=g(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.radius=5,this.strokeWidth=1,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.clusterBkg=`#302F3D`,this.sectionBkgColor=b(`#EAE8D9`,30),this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`#EAE8D9`,this.excludeBkgColor=b(this.sectionBkgColor,10),this.taskBorderColor=g(255,255,255,70),this.taskBkgColor=`calculated`,this.taskTextColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=g(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.vertLineColor=`#00BFFF`,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||y(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||b(this.mainBkg,10),this.labelColor=`calculated`,this.errorBkgColor=`#a44141`,this.errorTextColor=`#ddd`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`}updateColors(){this.secondBkg=y(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=y(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=y(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=S(this.doneTaskBkgColor),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=x(this.primaryColor,{h:64}),this.fillType3=x(this.secondaryColor,{h:64}),this.fillType4=x(this.primaryColor,{h:-64}),this.fillType5=x(this.secondaryColor,{h:-64}),this.fillType6=x(this.primaryColor,{h:128}),this.fillType7=x(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||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},ft=r(e=>{let t=new dt;return t.calculate(e),t},`getThemeVariables`),pt=class{static{r(this,`Theme`)}constructor(){this.background=`#f4f4f4`,this.primaryColor=`#ECECFF`,this.secondaryColor=x(this.primaryColor,{h:120}),this.secondaryColor=`#ffffde`,this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=U(this.primaryColor,this.darkMode),this.secondaryBorderColor=U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=U(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.background=`white`,this.mainBkg=`#ECECFF`,this.secondBkg=`#ffffde`,this.lineColor=`#333333`,this.border1=`#9370DB`,this.primaryBorderColor=U(this.primaryColor,this.darkMode),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.radius=5,this.strokeWidth=1,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.clusterBkg=`#FBFBFF`,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.vertLineColor=`calculated`,this.sectionBkgColor=g(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.vertLineColor=`navy`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`,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.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))`,this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||b(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||b(this.tertiaryColor,40);for(let e=0;e{this[e]===`calculated`&&(this[e]=void 0)}),typeof e!=`object`){this.updateColors();return}let t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},mt=r(e=>{let t=new pt;return t.calculate(e),t},`getThemeVariables`),W=class{static{r(this,`Theme`)}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=y(`#cde498`,10),this.primaryBorderColor=U(this.primaryColor,this.darkMode),this.secondaryBorderColor=U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=U(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.primaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,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.vertLineColor=`#00BFFF`,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.noteFontWeight=`normal`,this.fontWeight=`normal`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))`}updateColors(){this.actorBorder=b(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||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||b(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||b(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},ht=r(e=>{let t=new W;return t.calculate(e),t},`getThemeVariables`),gt=class{static{r(this,`Theme`)}constructor(){this.primaryColor=`#eee`,this.contrast=`#707070`,this.secondaryColor=y(this.contrast,55),this.background=`#ffffff`,this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=U(this.primaryColor,this.darkMode),this.secondaryBorderColor=U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=U(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(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.radius=5,this.strokeWidth=1,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.vertLineColor=`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.noteFontWeight=`normal`,this.fontWeight=`normal`,this.rowOdd=this.rowOdd||y(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||`#f4f4f4`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`}updateColors(){this.secondBkg=y(this.contrast,55),this.border2=this.contrast,this.actorBorder=y(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 e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},_t=r(e=>{let t=new gt;return t.calculate(e),t},`getThemeVariables`),vt=class{static{r(this,`Theme`)}constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=U(this.primaryColor,this.darkMode),this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#000000`,this.stateBorder=`#000000`,this.useGradient=!0,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));`,this.tertiaryColor=`#ffffff`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||U(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||U(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||U(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(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?b(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||b(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(this.lineColor);let e=`#ECECFE`,t=`#E9E9F1`,n=x(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||y(e,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||e,this.cScale1=this.cScale1||t,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||x(e,{h:30}),this.cScale4=this.cScale4||x(e,{h:60}),this.cScale5=this.cScale5||x(e,{h:90}),this.cScale6=this.cScale6||x(e,{h:120}),this.cScale7=this.cScale7||x(e,{h:150}),this.cScale8=this.cScale8||x(e,{h:210,l:150}),this.cScale9=this.cScale9||x(e,{h:270}),this.cScale10=this.cScale10||x(e,{h:300}),this.cScale11=this.cScale11||x(e,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},yt=r(e=>{let t=new vt;return t.calculate(e),t},`getThemeVariables`),bt=class{static{r(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=y(this.primaryColor,16),this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=S(this.background),this.secondaryBorderColor=U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=U(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.mainBkg=`#2a2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=y(S(`#323D47`),10),this.border1=`#ccc`,this.border2=g(255,255,255,.25),this.arrowheadColor=S(this.background),this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#181818`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.useGradient=!0,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||U(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||U(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||U(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(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.border1,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?b(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||b(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(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||y(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},xt=r(e=>{let t=new bt;return t.calculate(e),t},`getThemeVariables`),St=class{static{r(this,`Theme`)}constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#28253D`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=U(`#28253D`,this.darkMode),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#28253D`,this.stateBorder=`#28253D`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.tertiaryColor=`#ffffff`,this.clusterBkg=`#F9F9FB`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.actorBorder=`#28253D`,this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||U(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||U(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||U(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#FEF9C3`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(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?b(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,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||b(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(this.lineColor);let e=`#ECECFE`,t=`#E9E9F1`,n=x(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||y(e,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground=`#F9F9FB`,this.altBackground=`#F9F9FB`,this.stateEdgeLabelBackground=`#FFFFFF`,this.fontWeight=600,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.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Ct=r(e=>{let t=new St;return t.calculate(e),t},`getThemeVariables`),G=class{static{r(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=y(this.primaryColor,16),this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=S(this.background),this.secondaryBorderColor=U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=U(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=y(S(`#323D47`),10),this.border1=`#ccc`,this.border2=g(255,255,255,.25),this.arrowheadColor=S(this.background),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#111113`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??`#FEF9C3`,this.noteTextColor=this.noteTextColor??`#28253D`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#FFFFFF`,this.stateBorder=`#FFFFFF`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.clusterBkg=`#1E1A2E`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.filterColor=`#FFFFFF`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||U(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||U(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||U(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(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.border1,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?b(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=`#FFFFFF`,this.signalColor=`#FFFFFF`,this.labelBoxBorderColor=`#BDBCCC`,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||b(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(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||y(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground=`#16141F`,this.altBackground=`#16141F`,this.compositeTitleBackground=`#16141F`,this.stateEdgeLabelBackground=`#16141F`,this.fontWeight=600,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.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||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},wt=r(e=>{let t=new G;return t.calculate(e),t},`getThemeVariables`),Tt=class{static{r(this,`Theme`)}constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#28253D`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=U(this.primaryColor,this.darkMode),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#28253D`,this.stateBorder=`#28253D`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.tertiaryColor=`#ffffff`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.actorBorder=`#28253D`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.borderColorArray=[`#E879F9`,`#2DD4BF`,`#FB923C`,`#22D3EE`,`#4ADE80`,`#A78BFA`,`#F87171`,`#FACC15`,`#818CF8`,`#A3E635 `,`#38BDF8`,`#FB7185`],this.bkgColorArray=[`#FDF4FF`,`#F0FDFA`,`#FFF7ED`,`#ECFEFF`,`#F0FDF4`,`#F5F3FF`,`#FEF2F2`,`#FEFCE8`,`#EEF2FF`,`#F7FEE7`,`#F0F9FF`,`#FFF1F2`],this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||U(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||U(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||U(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(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?b(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||b(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(this.lineColor);let e=`#ECECFE`,t=`#E9E9F1`,n=x(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||y(e,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||`#f4a8ff`,this.cScale1=this.cScale1||`#46ecd5`,this.cScale2=this.cScale2||`#ffb86a`,this.cScale3=this.cScale3||`#dab2ff`,this.cScale4=this.cScale4||`#7bf1a8`,this.cScale5=this.cScale5||`#c4b4ff`,this.cScale6=this.cScale6||`#ffa2a2`,this.cScale7=this.cScale7||`#ffdf20`,this.cScale8=this.cScale8||`#a3b3ff`,this.cScale9=this.cScale9||`#bbf451`,this.cScale10=this.cScale10||`#74d4ff`,this.cScale11=this.cScale11||`#ffa1ad`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Et=r(e=>{let t=new Tt;return t.calculate(e),t},`getThemeVariables`),Dt=class{static{r(this,`Theme`)}constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=y(this.primaryColor,16),this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=S(this.background),this.secondaryBorderColor=U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=U(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=y(S(`#323D47`),10),this.border1=`#ccc`,this.border2=g(255,255,255,.25),this.arrowheadColor=S(this.background),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#111113`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??`#FEF9C3`,this.noteTextColor=this.noteTextColor??`#28253D`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#FFFFFF`,this.stateBorder=`#FFFFFF`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.clusterBkg=`#1E1A2E`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.borderColorArray=[`#E879F9`,`#2DD4BF`,`#FB923C`,`#22D3EE`,`#4ADE80`,`#A78BFA`,`#F87171`,`#FACC15`,`#818CF8`,`#A3E635 `,`#38BDF8`,`#FB7185`],this.bkgColorArray=[],this.filterColor=`#FFFFFF`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||U(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||U(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||U(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||U(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(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.border1,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?b(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=`#FFFFFF`,this.signalColor=`#FFFFFF`,this.labelBoxBorderColor=`#BDBCCC`,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||b(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(this.lineColor),this.rootLabelColor=`#FFFFFF`,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||y(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||`#f4a8ff`,this.cScale1=this.cScale1||`#46ecd5`,this.cScale2=this.cScale2||`#ffb86a`,this.cScale3=this.cScale3||`#dab2ff`,this.cScale4=this.cScale4||`#7bf1a8`,this.cScale5=this.cScale5||`#c4b4ff`,this.cScale6=this.cScale6||`#ffa2a2`,this.cScale7=this.cScale7||`#ffdf20`,this.cScale8=this.cScale8||`#a3b3ff`,this.cScale9=this.cScale9||`#bbf451`,this.cScale10=this.cScale10||`#74d4ff`,this.cScale11=this.cScale11||`#ffa1ad`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},K={base:{getThemeVariables:ut},dark:{getThemeVariables:ft},default:{getThemeVariables:mt},forest:{getThemeVariables:ht},neutral:{getThemeVariables:_t},neo:{getThemeVariables:yt},"neo-dark":{getThemeVariables:xt},redux:{getThemeVariables:Ct},"redux-dark":{getThemeVariables:wt},"redux-color":{getThemeVariables:Et},"redux-dark-color":{getThemeVariables:r(e=>{let t=new Dt;return t.calculate(e),t},`getThemeVariables`)}},q={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:`basis`,padding:15,defaultRenderer:`dagre-wrapper`,wrappingWidth:200,inheritDir:!1},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,maxLabelWidth:360,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`],titleColor:``,titleFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,titleFontSize:`4ex`},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,showDataLabel:!1,showDataLabelOutsideBar:!1,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,layoutAlgorithm:`cose-bilkent`},ishikawa:{useMaxWidth:!0,diagramPadding:20},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},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},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},Ot={...q,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:`BRANDES_KOEPF`,forceNodeModelOrder:!1,considerModelOrder:`NODES_AND_EDGES`},themeCSS:void 0,themeVariables:K.default.getThemeVariables(),sequence:{...q.sequence,messageFont:r(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`),noteFont:r(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},`noteFont`),actorFont:r(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},`actorFont`)},class:{hideEmptyMembersBox:!1},gantt:{...q.gantt,tickInterval:void 0,useWidth:void 0},c4:{...q.c4,useWidth:void 0,personFont:r(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},`personFont`),flowchart:{...q.flowchart,inheritDir:!1},external_personFont:r(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},`external_personFont`),systemFont:r(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},`systemFont`),external_systemFont:r(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},`external_systemFont`),system_dbFont:r(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},`system_dbFont`),external_system_dbFont:r(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},`external_system_dbFont`),system_queueFont:r(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},`system_queueFont`),external_system_queueFont:r(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},`external_system_queueFont`),containerFont:r(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},`containerFont`),external_containerFont:r(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},`external_containerFont`),container_dbFont:r(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},`container_dbFont`),external_container_dbFont:r(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},`external_container_dbFont`),container_queueFont:r(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},`container_queueFont`),external_container_queueFont:r(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},`external_container_queueFont`),componentFont:r(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},`componentFont`),external_componentFont:r(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},`external_componentFont`),component_dbFont:r(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},`component_dbFont`),external_component_dbFont:r(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},`external_component_dbFont`),component_queueFont:r(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},`component_queueFont`),external_component_queueFont:r(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},`external_component_queueFont`),boundaryFont:r(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},`boundaryFont`),messageFont:r(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`)},pie:{...q.pie,useWidth:984},xyChart:{...q.xyChart,useWidth:void 0},requirement:{...q.requirement,useWidth:void 0},packet:{...q.packet},treeView:{...q.treeView,useWidth:void 0},radar:{...q.radar},ishikawa:{...q.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:`,`},venn:{...q.venn}},J=r((e,t=``)=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]==`object`&&e[r]!==null?[...n,t+r,...J(e[r],``)]:[...n,t+r],[]),`keyify`),Y=new Set(J(Ot,``)),kt=Ot,At=r(e=>{if(n.debug(`sanitizeDirective called with`,e),!(typeof e!=`object`||!e)){if(Array.isArray(e)){e.forEach(e=>At(e));return}for(let t of Object.keys(e)){if(n.debug(`Checking key`,t),t.startsWith(`__`)||t.includes(`proto`)||t.includes(`constr`)||!Y.has(t)||e[t]==null){n.debug(`sanitize deleting key: `,t),delete e[t];continue}if(typeof e[t]==`object`){n.debug(`sanitizing object`,t),At(e[t]);continue}for(let r of[`themeCSS`,`fontFamily`,`altFontFamily`])t.includes(r)&&(n.debug(`sanitizing css option`,t),e[t]=jt(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let n=e.themeVariables[t];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]=``)}n.debug(`After sanitization`,e)}},`sanitizeDirective`),jt=r(e=>{let t=0,n=0;for(let r of e){if(t!(e===!1||[`false`,`null`,`0`].includes(String(e).trim().toLowerCase())),`evaluate`),Q=B({},X),Mt,$=[],Nt=B({},X),Pt=r((e,t)=>{let n=B({},e),r={};for(let e of t)Vt(e),r=B(r,e);if(n=B(n,r),r.theme&&r.theme in K){let e=B(B({},Mt).themeVariables||{},r.themeVariables);n.theme&&n.theme in K&&(n.themeVariables=K[n.theme].getThemeVariables(e))}return Nt=n,qt(Nt),Nt},`updateCurrentConfig`),Ft=r(e=>(Q=B({},X),Q=B(Q,e),e.theme&&K[e.theme]&&(Q.themeVariables=K[e.theme].getThemeVariables(e.themeVariables)),Pt(Q,$),Q),`setSiteConfig`),It=r(e=>{Mt=B({},e)},`saveConfigFromInitialize`),Lt=r(e=>(Q=B(Q,e),Pt(Q,$),Q),`updateSiteConfig`),Rt=r(()=>B({},Q),`getSiteConfig`),zt=r(e=>(qt(e),B(Nt,e),Bt()),`setConfig`),Bt=r(()=>B({},Nt),`getConfig`),Vt=r(e=>{e&&([`secure`,...Q.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(n.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`&&Vt(e[t])}))},`sanitize`),Ht=r(e=>{At(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),$.push(e),Pt(Q,$)},`addDirective`),Ut=r((e=Q)=>{$=[],Pt(e,$)},`reset`),Wt={LAZY_LOAD_DEPRECATED:`The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.`,FLOWCHART_HTML_LABELS_DEPRECATED:`flowchart.htmlLabels is deprecated. Please use global htmlLabels instead.`},Gt={},Kt=r(e=>{Gt[e]||(n.warn(Wt[e]),Gt[e]=!0)},`issueWarning`),qt=r(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Kt(`LAZY_LOAD_DEPRECATED`)},`checkConfig`),Jt=r(()=>{let e={};Mt&&(e=B(e,Mt));for(let t of $)e=B(e,t);return e},`getUserDefinedConfig`),Yt=r(e=>(e.flowchart?.htmlLabels!=null&&Kt(`FLOWCHART_HTML_LABELS_DEPRECATED`),Z(e.htmlLabels??e.flowchart?.htmlLabels??!0)),`getEffectiveHtmlLabels`),Xt=//gi,Zt=r(e=>e?cn(e).replace(/\\n/g,`#br#`).split(`#br#`):[``],`getRows`),Qt=(()=>{let e=!1;return()=>{e||=($t(),!0)}})();function $t(){let e=`data-temp-href-target`;I.addHook(`beforeSanitizeAttributes`,t=>{t.tagName===`A`&&t.hasAttribute(`target`)&&t.setAttribute(e,t.getAttribute(`target`)??``)}),I.addHook(`afterSanitizeAttributes`,t=>{t.tagName===`A`&&t.hasAttribute(e)&&(t.setAttribute(`target`,t.getAttribute(e)??``),t.removeAttribute(e),t.getAttribute(`target`)===`_blank`&&t.setAttribute(`rel`,`noopener`))})}r($t,`setupDompurifyHooks`);var en=r(e=>(Qt(),I.sanitize(e)),`removeScript`),tn=r((e,t)=>{if(Yt(t)){let n=t.securityLevel;n===`antiscript`||n===`strict`||n===`sandbox`?e=en(e):n!==`loose`&&(e=cn(e),e=e.replace(//g,`>`),e=e.replace(/=/g,`=`),e=sn(e))}return e},`sanitizeMore`),nn=r((e,t)=>e&&(e=t.dompurifyConfig?I.sanitize(tn(e,t),t.dompurifyConfig).toString():I.sanitize(tn(e,t),{FORBID_TAGS:[`style`]}).toString(),e),`sanitizeText`),rn=r((e,t)=>typeof e==`string`?nn(e,t):e.flat().map(e=>nn(e,t)),`sanitizeTextOrArray`),an=r(e=>Xt.test(e),`hasBreaks`),on=r(e=>e.split(Xt),`splitBreaks`),sn=r(e=>e.replace(/#br#/g,`
`),`placeholderToBreak`),cn=r(e=>e.replace(Xt,`#br#`),`breakToPlaceholder`),ln=r(e=>{let t=``;return e&&(t=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},`getUrl`),un=r(function(...e){let t=e.filter(e=>!isNaN(e));return Math.max(...t)},`getMax`),dn=r(function(...e){let t=e.filter(e=>!isNaN(e));return Math.min(...t)},`getMin`),fn=r(function(e){let t=e.split(/(,)/),n=[];for(let e=0;e0&&e+1Math.max(0,e.split(t).length-1),`countOccurrence`),mn=r((e,t)=>{let n=pn(e,`~`),r=pn(t,`~`);return n===1&&r===1},`shouldCombineSets`),hn=r(e=>{let t=pn(e,`~`),n=!1;if(t<=1)return e;t%2!=0&&e.startsWith(`~`)&&(e=e.substring(1),n=!0);let r=[...e],i=r.indexOf(`~`),a=r.lastIndexOf(`~`);for(;i!==-1&&a!==-1&&i!==a;)r[i]=`<`,r[a]=`>`,i=r.indexOf(`~`),a=r.lastIndexOf(`~`);return n&&r.unshift(`~`),r.join(``)},`processSet`),gn=r(()=>window.MathMLElement!==void 0,`isMathMLSupported`),_n=/\$\$(.*)\$\$/g,vn=r(e=>(e.match(_n)?.length??0)>0,`hasKatex`),yn=r(async(e,t)=>{let n=document.createElement(`div`);n.innerHTML=await xn(e,t),n.id=`katex-temp`,n.style.visibility=`hidden`,n.style.position=`absolute`,n.style.top=`0`,document.querySelector(`body`)?.insertAdjacentElement(`beforeend`,n);let r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},`calculateMathMLDimensions`),bn=r(async(t,n)=>{if(!vn(t))return t;if(!(gn()||n.legacyMathML||n.forceLegacyMathML))return t.replace(_n,`MathML is unsupported in this environment.`);{let{default:r}=await e(async()=>{let{default:e}=await import(`./katex-8mXVa4k3.js`);return{default:e}},[]),i=n.forceLegacyMathML||!gn()&&n.legacyMathML?`htmlAndMathml`:`mathml`;return t.split(Xt).map(e=>vn(e)?`

${e}
`:`
${e}
`).join(``).replace(_n,(e,t)=>r.renderToString(t,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g,` `).replace(//g,``))}return t.replace(_n,`Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.`)},`renderKatexUnsanitized`),xn=r(async(e,t)=>nn(await bn(e,t),t),`renderKatexSanitized`),Sn={getRows:Zt,sanitizeText:nn,sanitizeTextOrArray:rn,hasBreaks:an,splitBreaks:on,lineBreakRegex:Xt,removeScript:en,getUrl:ln,evaluate:Z,getMax:un,getMin:dn},Cn=r(function(e,t){for(let n of t)e.attr(n[0],n[1])},`d3Attrs`),wn=r(function(e,t,n){let r=new Map;return n?(r.set(`width`,`100%`),r.set(`style`,`max-width: ${t}px;`)):(r.set(`height`,e),r.set(`width`,t)),r},`calculateSvgSizeAttrs`),Tn=r(function(e,t,n,r){Cn(e,wn(t,n,r))},`configureSvgSize`),En=r(function(e,t,r,i){let a=t.node().getBBox(),o=a.width,s=a.height;n.info(`SVG bounds: ${o}x${s}`,a);let c=0,l=0;n.info(`Graph bounds: ${c}x${l}`,e),c=o+r*2,l=s+r*2,n.info(`Calculated bounds: ${c}x${l}`),Tn(t,l,c,i);let u=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;t.attr(`viewBox`,u)},`setupGraphViewbox`),Dn={},On=r((e,t,r,i)=>{let a=``;return e in Dn&&Dn[e]?a=Dn[e]({...r,svgId:i}):n.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: ${r.strokeWidth??1}px; + } + & .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 + } + + ${a} + .node .neo-node { + stroke: ${r.nodeBorder}; + } + + [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { + stroke: ${r.useGradient?`url(`+i+`-gradient)`:r.nodeBorder}; + filter: ${r.dropShadow?r.dropShadow.replace(`url(#drop-shadow)`,`url(${i}-drop-shadow)`):`none`}; + } + + + [data-look="neo"].node path { + stroke: ${r.useGradient?`url(`+i+`-gradient)`:r.nodeBorder}; + stroke-width: ${r.strokeWidth??1}px; + } + + [data-look="neo"].node .outer-path { + filter: ${r.dropShadow?r.dropShadow.replace(`url(#drop-shadow)`,`url(${i}-drop-shadow)`):`none`}; + } + + [data-look="neo"].node .neo-line path { + stroke: ${r.nodeBorder}; + filter: none; + } + + [data-look="neo"].node circle{ + stroke: ${r.useGradient?`url(`+i+`-gradient)`:r.nodeBorder}; + filter: ${r.dropShadow?r.dropShadow.replace(`url(#drop-shadow)`,`url(${i}-drop-shadow)`):`none`}; + } + + [data-look="neo"].node circle .state-start{ + fill: #000000; + } + + [data-look="neo"].icon-shape .icon { + fill: ${r.useGradient?`url(`+i+`-gradient)`:r.nodeBorder}; + filter: ${r.dropShadow?r.dropShadow.replace(`url(#drop-shadow)`,`url(${i}-drop-shadow)`):`none`}; + } + + [data-look="neo"].icon-shape .icon-neo path { + stroke: ${r.useGradient?`url(`+i+`-gradient)`:r.nodeBorder}; + filter: ${r.dropShadow?r.dropShadow.replace(`url(#drop-shadow)`,`url(${i}-drop-shadow)`):`none`}; + } + + ${t} +`},`getStyles`),kn=r((e,t)=>{t!==void 0&&(Dn[e]=t)},`addStylesForDiagram`),An=On,jn={};i(jn,{clear:()=>In,getAccDescription:()=>Bn,getAccTitle:()=>Rn,getDiagramTitle:()=>Hn,setAccDescription:()=>zn,setAccTitle:()=>Ln,setDiagramTitle:()=>Vn});var Mn=``,Nn=``,Pn=``,Fn=r(e=>nn(e,Bt()),`sanitizeText`),In=r(()=>{Mn=``,Pn=``,Nn=``},`clear`),Ln=r(e=>{Mn=Fn(e).replace(/^\s+/g,``)},`setAccTitle`),Rn=r(()=>Mn,`getAccTitle`),zn=r(e=>{Pn=Fn(e).replace(/\n\s+/g,` +`)},`setAccDescription`),Bn=r(()=>Pn,`getAccDescription`),Vn=r(e=>{Nn=Fn(e)},`setDiagramTitle`),Hn=r(()=>Nn,`getDiagramTitle`),Un=n,Wn=t,Gn=Bt,Kn=zt,qn=X,Jn=r(e=>nn(e,Gn()),`sanitizeText`),Yn=En,Xn=r(()=>jn,`getCommonDb`),Zn={},Qn=r((e,t,n)=>{Zn[e]&&Un.warn(`Diagram with id ${e} already registered. Overwriting.`),Zn[e]=t,n&&ot(e,n),kn(e,t.styles),t.injectUtils?.(Un,Wn,Gn,Jn,Yn,Xn(),()=>{})},`registerDiagram`),$n=r(e=>{if(e in Zn)return Zn[e];throw new er(e)},`getDiagram`),er=class extends Error{static{r(this,`DiagramNotFoundError`)}constructor(e){super(`Diagram ${e} not found.`)}};export{y as $,Xt as A,zn as B,Hn as C,ln as D,mt as E,Ut as F,Ft as G,zt as H,At as I,An as J,En as K,nn as L,Qn as M,at as N,Jt as O,xn as P,b as Q,Jn as R,st as S,Rt as T,Kn as U,Ln as V,Vn as W,Lt as X,K as Y,I as Z,Bn as _,In as a,Gn as b,Tn as c,kt as d,v as et,it as f,L as g,Z as h,yn as i,o as it,fn as j,vn as k,X as l,nt as m,Ht as n,g as nt,jn as o,z as p,Yn as q,B as r,h as rt,Sn as s,R as t,_ as tt,qn as u,Rn as v,Yt as w,$n as x,Bt as y,It as z}; \ No newline at end of file diff --git a/webui/assets/chunk-K5T4RW27-BU8zzKFc.js b/webui/assets/chunk-K5T4RW27-BU8zzKFc.js new file mode 100644 index 0000000000000000000000000000000000000000..f75bd191784ec0a7c7a23bd6c93dddf3229f2cf5 --- /dev/null +++ b/webui/assets/chunk-K5T4RW27-BU8zzKFc.js @@ -0,0 +1,94 @@ +import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-Dlc7tRH4.js";import{i as o,n as s,o as c,r as l,t as u}from"./_baseUniq-_HXxrvbp.js";import{i as d,t as f}from"./min-XT6kpV0t.js";import{t as p}from"./isEmpty-_CIYlAqN.js";import{lt as m,mt as h}from"./index-Cl8-DFW_.js";function g(e,t){return c(m(e,t),1)}function _(e,t){return e&&e.length?u(e,h(t,2)):[]}function v(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function y(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function b(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function x(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function S(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}var ee=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return v(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}};function C(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function w(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function T(e){return C(e)&&typeof e.fullText==`string`}var te=class e{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return D})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=ne(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?D:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return D})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(E(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return D})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t)if(E(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}while(e.iterator);return D})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?D:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return D})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}};function ne(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function E(e){return!!e&&typeof e[Symbol.iterator]==`function`}var re=new te(()=>void 0,()=>D),D=Object.freeze({done:!0,value:void 0});function O(...e){if(e.length===1){let t=e[0];if(t instanceof te)return t;if(E(t))return new te(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new te(()=>({index:0}),e=>e.index1?new te(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return D})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},ae;(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}e.max=i})(ae||={});function oe(e,t={}){for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(Array.isArray(r)?r.forEach((r,i)=>{v(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&oe(r,t))}):v(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&oe(r,t)))}function se(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function k(e){let t=A(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function A(e){for(;e.$container;)e=e.$container;return e}function j(e){return y(e)?e.ref?[e.ref]:[]:b(e)?e.items.map(e=>e.ref):[]}function ce(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new te(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexce(e,t))}function N(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!le(e,t.range)?new ie(e,()=>[]):new ie(e,e=>ce(e,t),{includeRoot:!0})}function le(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?qt(n,t):!1}function ue(e){return new te(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexC(e)?e.content:[],{includeRoot:!0})}function Ht(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function Ut(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function Wt(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}var Gt;(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(Gt||={});function Kt(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Gt.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.lineGt.After}var Jt=/^[\w\p{L}]$/u;function Yt(e,t){if(e){let n=Zt(e,!0);if(n&&Xt(n,t))return n;if(T(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(Xt(n,t))return n}}}}function Xt(e,t){return w(e)&&t.includes(e.tokenType.name)}function Zt(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}var Qt=class extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function $t(e,t=`Error: Got unexpected value.`){throw Error(t)}function L(e){return e.charCodeAt(0)}function en(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function tn(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function nn(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function rn(){throw Error(`Internal Error - Should never get here!`)}function an(e){return e.type===`Character`}var on=[];for(let e=L(`0`);e<=L(`9`);e++)on.push(e);var sn=[L(`_`)].concat(on);for(let e=L(`a`);e<=L(`z`);e++)sn.push(e);for(let e=L(`A`);e<=L(`Z`);e++)sn.push(e);var cn=[L(` `),L(`\f`),L(` +`),L(`\r`),L(` `),L(`\v`),L(` `),L(`\xA0`),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(`\u2028`),L(`\u2029`),L(` `),L(` `),L(` `),L(``)],ln=/[0-9a-fA-F]/,un=/[0-9]/,dn=/[1-9]/,fn=class{constructor(){this.idx=0,this.input=``,this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={type:`Flags`,loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case`g`:tn(n,`global`);break;case`i`:tn(n,`ignoreCase`);break;case`m`:tn(n,`multiLine`);break;case`u`:tn(n,`unicode`);break;case`y`:tn(n,`sticky`);break}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case`^`:return{type:`StartAnchor`,loc:this.loc(e)};case`$`:return{type:`EndAnchor`,loc:this.loc(e)};case`\\`:switch(this.popChar()){case`b`:return{type:`WordBoundary`,loc:this.loc(e)};case`B`:return{type:`NonWordBoundary`,loc:this.loc(e)}}throw Error(`Invalid Assertion Escape`);case`(`:this.consumeChar(`?`);let t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}break}nn(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return rn()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`);break}if(e===!0&&t===void 0)return;nn(t);break}if(!(e===!0&&t===void 0)&&nn(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),nn(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):rn()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[L(` +`),L(`\r`),L(`\u2028`),L(`\u2029`)]}}atomEscape(){switch(this.consumeChar(`\\`),this.peekChar()){case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:return this.decimalEscapeAtom();case`d`:case`D`:case`s`:case`S`:case`w`:case`W`:return this.characterClassEscape();case`f`:case`n`:case`r`:case`t`:case`v`:return this.controlEscapeAtom();case`c`:return this.controlLetterEscapeAtom();case`0`:return this.nulCharacterAtom();case`x`:return this.hexEscapeSequenceAtom();case`u`:return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:`GroupBackReference`,value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case`d`:e=on;break;case`D`:e=on,t=!0;break;case`s`:e=cn;break;case`S`:e=cn,t=!0;break;case`w`:e=sn;break;case`W`:e=sn,t=!0;break}return nn(e)?{type:`Set`,value:e,complement:t}:rn()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=L(`\f`);break;case`n`:e=L(` +`);break;case`r`:e=L(`\r`);break;case`t`:e=L(` `);break;case`v`:e=L(`\v`);break}return nn(e)?{type:`Character`,value:e}:rn()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:L(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:L(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:L(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,an(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,an(n)){if(n.value=this.input.length)throw Error(`Unexpected end of input`);this.idx++}loc(e){return{begin:e,end:this.idx}}},pn=class{visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}visit(e){switch(e.type){case`Pattern`:this.visitPattern(e);break;case`Flags`:this.visitFlags(e);break;case`Disjunction`:this.visitDisjunction(e);break;case`Alternative`:this.visitAlternative(e);break;case`StartAnchor`:this.visitStartAnchor(e);break;case`EndAnchor`:this.visitEndAnchor(e);break;case`WordBoundary`:this.visitWordBoundary(e);break;case`NonWordBoundary`:this.visitNonWordBoundary(e);break;case`Lookahead`:this.visitLookahead(e);break;case`NegativeLookahead`:this.visitNegativeLookahead(e);break;case`Lookbehind`:this.visitLookbehind(e);break;case`NegativeLookbehind`:this.visitNegativeLookbehind(e);break;case`Character`:this.visitCharacter(e);break;case`Set`:this.visitSet(e);break;case`Group`:this.visitGroup(e);break;case`GroupBackReference`:this.visitGroupBackReference(e);break;case`Quantifier`:this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},mn=/\r?\n/gm,hn=new fn,gn=new class extends pn{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join(``)}reset(e){this.multiline=!1,this.regex=e,this.startRegexp=``,this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(!this.multiline&&t===` +`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=bn(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=!!` +`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type===`Group`&&e.quantifier||super.visitChildren(e)}};function _n(e){try{return typeof e==`string`&&(e=new RegExp(e)),e=e.toString(),gn.reset(e),gn.visit(hn.pattern(e)),gn.multiline}catch{return!1}}var vn=`\f +\r \v \xA0            \u2028\u2029   `.split(``);function yn(e){let t=typeof e==`string`?new RegExp(e):e;return vn.some(e=>t.test(e))}function bn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function xn(e,t){let n=Sn(e),r=t.match(n);return!!r&&r[0].length>0}function Sn(e){typeof e==`string`&&(e=new RegExp(e));let t=e,n=e.source,r=0;function i(){let e=``,a;function o(t){e+=n.substr(r,t),r+=t}function s(t){e+=`(?:`+n.substr(r,t)+`|$)`,r+=t}for(;r`,r)-r+1);break;default:s(2);break}break;case`[`:a=/\[(?:\\.|.)*?\]/g,a.lastIndex=r,a=a.exec(n)||[],s(a[0].length);break;case`|`:case`^`:case`$`:case`*`:case`+`:case`?`:o(1);break;case`{`:a=/\{\d+,?\d*\}/g,a.lastIndex=r,a=a.exec(n),a?o(a[0].length):s(1);break;case`(`:if(n[r+1]===`?`)switch(n[r+2]){case`:`:e+=`(?:`,r+=3,e+=i()+`|$)`;break;case`=`:e+=`(?=`,r+=3,e+=i()+`)`;break;case`!`:a=r,r+=3,i(),e+=n.substr(a,r-a);break;case`<`:switch(n[r+3]){case`=`:case`!`:a=r,r+=4,i(),e+=n.substr(a,r-a);break;default:o(n.indexOf(`>`,r)-r+1),e+=i()+`|$)`;break}break}else o(1),e+=i()+`|$)`;break;case`)`:return++r,e;default:s(1);break}return e}return new RegExp(i(),e.flags)}function Cn(e){return e.rules.find(e=>ct(e)&&e.entry)}function wn(e){return e.rules.filter(e=>Tt(e)&&e.hidden)}function Tn(e,t){let n=new Set,r=Cn(e);if(!r)return new Set(e.rules);let i=[r].concat(wn(e));for(let e of i)En(e,n,t);let a=new Set;for(let t of e.rules)(n.has(t.name)||Tt(t)&&t.hidden)&&a.add(t);return a}function En(e,t,n){t.add(e.name),M(e).forEach(e=>{if(ht(e)||n&&Dt(e)){let r=e.rule.ref;r&&!t.has(r.name)&&En(r,t,n)}})}function Dn(e){if(e.terminal)return e.terminal;if(e.type.ref)return Fn(e.type.ref)?.terminal}function On(e){return e.hidden&&!yn(Un(e))}function kn(e,t){return!e||!t?[]:jn(e,t,e.astNode,!0)}function An(e,t,n){if(!e||!t)return;let r=jn(e,t,e.astNode,!0);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function jn(e,t,n,r){if(!r){let n=se(e.grammarSource,Te);if(n&&n.feature===t)return[e]}return C(e)&&e.astNode===n?e.content.flatMap(e=>jn(e,t,n,!1)):[]}function Mn(e,t,n){if(!e)return;let r=Nn(e,t,e?.astNode);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function Nn(e,t,n){if(e.astNode!==n)return[];if(Ze(e.grammarSource)&&e.grammarSource.value===t)return[e];let r=Vt(e).iterator(),i,a=[];do if(i=r.next(),!i.done){let e=i.value;e.astNode===n?Ze(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):r.prune()}while(!i.done);return a}function Pn(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=se(e.grammarSource,Te);if(t)return t;e=e.container}}function Fn(e){let t=e;return Ue(t)&&(ye(t.$container)?t=t.$container.$container:he(t.$container)?t=t.$container:$t(t.$container)),In(e,t,new Map)}function In(e,t,n){function r(t,r){let i;return se(t,Te)||(i=In(r,r,n)),n.set(e,i),i}if(n.has(e))return n.get(e);n.set(e,void 0);for(let i of M(t))if(Te(i)&&i.feature.toLowerCase()===`name`)return n.set(e,i),i;else if(ht(i)&&ct(i.rule.ref))return r(i,i.rule.ref);else if(_t(i)&&i.typeRef?.ref)return r(i,i.typeRef.ref)}function Ln(e){return Rn(e,new Set)}function Rn(e,t){if(t.has(e))return!0;t.add(e);for(let n of M(e))if(ht(n)){if(!n.rule.ref||ct(n.rule.ref)&&!Rn(n.rule.ref,t)||Ge(n.rule.ref))return!1}else if(Te(n))return!1;else if(ye(n))return!1;return!!e.definition}function zn(e){if(!Tt(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function Bn(e){if(he(e))return ct(e)&&Ln(e)?e.name:zn(e)??e.name;if(Ye(e)||kt(e)||pt(e))return e.name;if(ye(e)){let t=Vn(e);if(t)return t}else if(Ue(e))return e.name;throw Error(`Cannot get name of Unknown Type`)}function Vn(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return Bn(e.type.ref)}function Hn(e){return Tt(e)?e.type?.name??`string`:zn(e)??e.name}function Un(e){let t={s:!1,i:!1,u:!1},n=Gn(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(``);return new RegExp(n,r)}var Wn=`[\\s\\S]`;function Gn(e,t){if(bt(e))return Kn(e);if(Ct(e))return qn(e);if(ke(e))return Xn(e);if(Dt(e)){let t=e.rule.ref;if(!t)throw Error(`Missing rule reference.`);return Qn(Gn(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else if(et(e))return Yn(e);else if(It(e))return Jn(e);else if(dt(e)){let n=e.regex.lastIndexOf(`/`),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes(`i`),t.s=i.includes(`s`),t.u=i.includes(`u`)),Qn(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else if(zt(e))return Qn(Wn,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});else throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function Kn(e){return Qn(e.elements.map(e=>Gn(e)).join(`|`),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function qn(e){return Qn(e.elements.map(e=>Gn(e)).join(``),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Jn(e){return Qn(`${Wn}*?${Gn(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Yn(e){return Qn(`(?!${Gn(e.terminal)})${Wn}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Xn(e){return e.right?Qn(`[${Zn(e.left)}-${Zn(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):Qn(Zn(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Zn(e){return bn(e.value)}function Qn(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?``:`?:`)}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function $n(e){let t=[],n=e.Grammar;for(let e of n.rules)Tt(e)&&On(e)&&_n(Un(e))&&t.push(e.name);return{multilineCommentRules:t,nameRegexp:Jt}}function er(e){console&&console.error&&console.error(`Error: ${e}`)}function tr(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function nr(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}function rr(e){function t(){}t.prototype=e;let n=new t;function r(){return typeof n.bar}return r(),r(),e}function ir(e){return ar(e)?e.LABEL:e.name}function ar(e){return typeof e.LABEL==`string`&&e.LABEL!==``}var or=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}},sr=class extends or{constructor(e){super([]),this.idx=1,Object.assign(this,gr(e))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},cr=class extends or{constructor(e){super(e.definition),this.orgText=``,Object.assign(this,gr(e))}},lr=class extends or{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,gr(e))}},R=class extends or{constructor(e){super(e.definition),this.idx=1,Object.assign(this,gr(e))}},ur=class extends or{constructor(e){super(e.definition),this.idx=1,Object.assign(this,gr(e))}},dr=class extends or{constructor(e){super(e.definition),this.idx=1,Object.assign(this,gr(e))}},z=class extends or{constructor(e){super(e.definition),this.idx=1,Object.assign(this,gr(e))}},fr=class extends or{constructor(e){super(e.definition),this.idx=1,Object.assign(this,gr(e))}},pr=class extends or{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,gr(e))}},B=class{constructor(e){this.idx=1,Object.assign(this,gr(e))}accept(e){e.visit(this)}};function mr(e){return e.map(hr)}function hr(e){function t(e){return e.map(hr)}if(e instanceof sr){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return typeof e.label==`string`&&(t.label=e.label),t}else if(e instanceof lr)return{type:`Alternative`,definition:t(e.definition)};else if(e instanceof R)return{type:`Option`,idx:e.idx,definition:t(e.definition)};else if(e instanceof ur)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};else if(e instanceof dr)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:hr(new B({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof fr)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:hr(new B({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof z)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};else if(e instanceof pr)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};else if(e instanceof B){let t={type:`Terminal`,name:e.terminalType.name,label:ir(e.terminalType),idx:e.idx};typeof e.label==`string`&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else if(e instanceof cr)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};else throw Error(`non exhaustive match`)}function gr(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}var _r=class{visit(e){let t=e;switch(t.constructor){case sr:return this.visitNonTerminal(t);case lr:return this.visitAlternative(t);case R:return this.visitOption(t);case ur:return this.visitRepetitionMandatory(t);case dr:return this.visitRepetitionMandatoryWithSeparator(t);case fr:return this.visitRepetitionWithSeparator(t);case z:return this.visitRepetition(t);case pr:return this.visitAlternation(t);case B:return this.visitTerminal(t);case cr:return this.visitRule(t);default:throw Error(`non exhaustive match`)}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function vr(e){return e instanceof lr||e instanceof R||e instanceof z||e instanceof ur||e instanceof dr||e instanceof fr||e instanceof B||e instanceof cr}function yr(e,t=[]){return e instanceof R||e instanceof z||e instanceof fr?!0:e instanceof pr?e.definition.some(e=>yr(e,t)):e instanceof sr&&t.includes(e)?!1:e instanceof or?(e instanceof sr&&t.push(e),e.definition.every(e=>yr(e,t))):!1}function br(e){return e instanceof pr}function xr(e){if(e instanceof sr)return`SUBRULE`;if(e instanceof R)return`OPTION`;if(e instanceof pr)return`OR`;if(e instanceof ur)return`AT_LEAST_ONE`;if(e instanceof dr)return`AT_LEAST_ONE_SEP`;if(e instanceof fr)return`MANY_SEP`;if(e instanceof z)return`MANY`;if(e instanceof B)return`CONSUME`;throw Error(`non exhaustive match`)}var Sr=class{walk(e,t=[]){e.definition.forEach((n,r)=>{let i=e.definition.slice(r+1);if(n instanceof sr)this.walkProdRef(n,i,t);else if(n instanceof B)this.walkTerminal(n,i,t);else if(n instanceof lr)this.walkFlat(n,i,t);else if(n instanceof R)this.walkOption(n,i,t);else if(n instanceof ur)this.walkAtLeastOne(n,i,t);else if(n instanceof dr)this.walkAtLeastOneSep(n,i,t);else if(n instanceof fr)this.walkManySep(n,i,t);else if(n instanceof z)this.walkMany(n,i,t);else if(n instanceof pr)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new R({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=Cr(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new R({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=Cr(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);e.definition.forEach(e=>{let t=new lr({definition:[e]});this.walk(t,r)})}};function Cr(e,t,n){return[new R({definition:[new B({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function wr(e){if(e instanceof sr)return wr(e.referencedRule);if(e instanceof B)return Dr(e);if(vr(e))return Tr(e);if(br(e))return Er(e);throw Error(`non exhaustive match`)}function Tr(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=yr(a),t=t.concat(wr(a)),r+=1,i=n.length>r;return[...new Set(t)]}function Er(e){let t=e.definition.map(e=>wr(e));return[...new Set(t.flat())]}function Dr(e){return[e.terminalType]}var Or=`_~IN~_`,kr=class extends Sr{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=jr(e.referencedRule,e.idx)+this.topProd.name,i=wr(new lr({definition:t.concat(n)}));this.follows[r]=i}};function Ar(e){let t={};return e.forEach(e=>{let n=new kr(e).startWalking();Object.assign(t,n)}),t}function jr(e,t){return e.name+t+Or}var Mr={},Nr=new fn;function Pr(e){let t=e.toString();if(Mr.hasOwnProperty(t))return Mr[t];{let e=Nr.pattern(t);return Mr[t]=e,e}}function Fr(){Mr={}}var Ir=`Complement Sets are not supported for first char optimization`,Lr=`Unable to use "first char" lexer optimizations: +`;function Rr(e,t=!1){try{let t=Pr(e);return zr(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===Ir)t&&tr(`${Lr}\tUnable to optimize: < ${e.toString()} >\n Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n=``;t&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),er(`${Lr}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function zr(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r{if(typeof e==`number`)Br(e,t,n);else{let r=e;if(n===!0)for(let e=r.from;e<=r.to;e++)Br(e,t,n);else{for(let e=r.from;e<=r.to&&e<256;e++)Br(e,t,n);if(r.to>=256){let e=r.from>=256?r.from:256,n=r.to,i=Ti(e),a=Ti(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:zr(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&Ur(a)===!1||a.type!==`Group`&&o===!1)break}break;default:throw Error(`non exhaustive match!`)}return Object.values(t)}function Br(e,t,n){let r=Ti(e);t[r]=r,n===!0&&Vr(e,t)}function Vr(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=Ti(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=Ti(e.charCodeAt(0));t[n]=n}}}function Hr(e,t){return e.value.find(e=>{if(typeof e==`number`)return t.includes(e);{let n=e;return t.find(e=>n.from<=e&&e<=n.to)!==void 0}})}function Ur(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?Array.isArray(e.value)?e.value.every(Ur):Ur(e.value):!1}var Wr=class extends pn{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case`Lookahead`:this.visitLookahead(e);return;case`NegativeLookahead`:this.visitNegativeLookahead(e);return;case`Lookbehind`:this.visitLookbehind(e);return;case`NegativeLookbehind`:this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){this.targetCharCodes.includes(e.value)&&(this.found=!0)}visitSet(e){e.complement?Hr(e,this.targetCharCodes)===void 0&&(this.found=!0):Hr(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};function Gr(e,t){if(t instanceof RegExp){let n=Pr(t),r=new Wr(e);return r.visit(n),r.found}else{for(let n of t){let t=n.charCodeAt(0);if(e.includes(t))return!0}return!1}}var Kr=`PATTERN`,qr=`defaultMode`,Jr=`modes`;function Yr(e,t){t=Object.assign({safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,` +`],tracer:(e,t)=>t()},t);let n=t.tracer;n(`initCharCodeToOptimizedIndexMap`,()=>{Ei()});let r;n(`Reject Lexer.NA`,()=>{r=e.filter(e=>e[Kr]!==Wi.NA)});let i=!1,a;n(`Transform Patterns`,()=>{i=!1,a=r.map(e=>{let t=e[Kr];if(t instanceof RegExp){let e=t.source;return e.length===1&&e!==`^`&&e!==`$`&&e!==`.`&&!t.ignoreCase?e:e.length===2&&e[0]===`\\`&&![`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`].includes(e[1])?e[1]:pi(t)}else if(typeof t==`function`)return i=!0,{exec:t};else if(typeof t==`object`)return i=!0,t;else if(typeof t==`string`){if(t.length===1)return t;{let e=t.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`);return pi(new RegExp(e))}}else throw Error(`non exhaustive match`)})});let o,s,c,l,u;n(`misc mapping`,()=>{o=r.map(e=>e.tokenTypeIdx),s=r.map(e=>{let t=e.GROUP;if(t!==Wi.SKIPPED){if(typeof t==`string`)return t;if(t===void 0)return!1;throw Error(`non exhaustive match`)}}),c=r.map(e=>{let t=e.LONGER_ALT;if(t)return Array.isArray(t)?t.map(e=>r.indexOf(e)):[r.indexOf(t)]}),l=r.map(e=>e.PUSH_MODE),u=r.map(e=>Object.hasOwn(e,`POP_MODE`))});let d;n(`Line Terminator Handling`,()=>{let e=Si(t.lineTerminatorCharacters);d=r.map(e=>!1),t.positionTracking!==`onlyOffset`&&(d=r.map(t=>Object.hasOwn(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:bi(t,e)===!1&&Gr(e,t.PATTERN)))});let f,p,m,h;n(`Misc Mapping #2`,()=>{f=r.map(_i),p=a.map(vi),m=r.reduce((e,t)=>{let n=t.GROUP;return typeof n==`string`&&n!==Wi.SKIPPED&&(e[n]=[]),e},{}),h=a.map((e,t)=>({pattern:a[t],longerAlt:c[t],canLineTerminator:d[t],isCustom:f[t],short:p[t],group:s[t],push:l[t],pop:u[t],tokenTypeIdx:o[t],tokenType:r[t]}))});let g=!0,_=[];return t.safeMode||n(`First Char Optimization`,()=>{_=r.reduce((e,n,r)=>{if(typeof n.PATTERN==`string`)Ci(e,Ti(n.PATTERN.charCodeAt(0)),h[r]);else if(Array.isArray(n.START_CHARS_HINT)){let t;n.START_CHARS_HINT.forEach(n=>{let i=Ti(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,Ci(e,i,h[r]))})}else if(n.PATTERN instanceof RegExp)if(n.PATTERN.unicode)g=!1,t.ensureOptimizations&&er(`${Lr}\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=Rr(n.PATTERN,t.ensureOptimizations);i.length===0&&(g=!1),i.forEach(t=>{Ci(e,t,h[r])})}else t.ensureOptimizations&&er(`${Lr}\tTokenType: <${n.name}> is using a custom token pattern without providing parameter.\n This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),g=!1;return e},[])}),{emptyGroups:m,patternIdxToConfig:h,charCodeToPatternIdxToConfig:_,hasCustom:i,canBeOptimized:g}}function Xr(e,t){let n=[],r=Qr(e);n=n.concat(r.errors);let i=$r(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(Zr(a)),n=n.concat(si(a)),n=n.concat(ci(a,t)),n=n.concat(li(a)),n}function Zr(e){let t=[],n=e.filter(e=>e[Kr]instanceof RegExp);return t=t.concat(ti(n)),t=t.concat(ii(n)),t=t.concat(ai(n)),t=t.concat(oi(n)),t=t.concat(ni(n)),t}function Qr(e){let t=e.filter(e=>!Object.hasOwn(e,Kr));return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:V.MISSING_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}function $r(e){let t=e.filter(e=>{let t=e[Kr];return!(t instanceof RegExp)&&typeof t!=`function`&&!Object.hasOwn(t,`exec`)&&typeof t!=`string`});return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:V.INVALID_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}var ei=/[^\\][$]/;function ti(e){class t extends pn{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=Pr(n),r=new t;return r.visit(e),r.found}catch{return ei.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:V.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function ni(e){return e.filter(e=>e.PATTERN.test(``)).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:V.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}var ri=/[^\\[][\^]|^\^/;function ii(e){class t extends pn{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=Pr(n),r=new t;return r.visit(e),r.found}catch{return ri.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:V.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function ai(e){return e.filter(e=>{let t=e[Kr];return t instanceof RegExp&&(t.multiline||t.global)}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:V.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function oi(e){let t=[],n=e.map(n=>e.reduce((e,r)=>n.PATTERN.source===r.PATTERN.source&&!t.includes(r)&&r.PATTERN!==Wi.NA?(t.push(r),e.push(r),e):e,[]));return n=n.filter(Boolean),n.filter(e=>e.length>1).map(e=>{let t=e.map(e=>e.name);return{message:`The same RegExp pattern ->${e[0].PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:V.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function si(e){return e.filter(e=>{if(!Object.hasOwn(e,`GROUP`))return!1;let t=e.GROUP;return t!==Wi.SKIPPED&&t!==Wi.NA&&typeof t!=`string`}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:V.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function ci(e,t){return e.filter(e=>e.PUSH_MODE!==void 0&&!t.includes(e.PUSH_MODE)).map(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:V.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function li(e){let t=[],n=e.reduce((e,t,n)=>{let r=t.PATTERN;return r===Wi.NA||(typeof r==`string`?e.push({str:r,idx:n,tokenType:t}):r instanceof RegExp&&di(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return e.forEach((e,r)=>{n.forEach(({str:n,idx:i,tokenType:a})=>{if(r${a.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:V.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function ui(e,t){if(t instanceof RegExp){if(fi(t))return!1;let n=t.exec(e);return n!==null&&n.index===0}else if(typeof t==`function`)return t(e,0,[],{});else if(Object.hasOwn(t,`exec`))return t.exec(e,0,[],{});else if(typeof t==`string`)return t===e;else throw Error(`non exhaustive match`)}function di(e){return[`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`].find(t=>e.source.indexOf(t)!==-1)===void 0}function fi(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:V.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(e,`modes`)||r.push({message:`A MultiMode Lexer cannot be initialized without a <`+Jr+`> property in its definition +`,type:V.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(e,`modes`)&&Object.hasOwn(e,`defaultMode`)&&!Object.hasOwn(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${qr}: <${e.defaultMode}>which does not exist\n`,type:V.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(e,`modes`)&&Object.keys(e.modes).forEach(t=>{let n=e.modes[t];n.forEach((e,i)=>{e===void 0?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}>\n`,type:V.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(e,`LONGER_ALT`)&&(Array.isArray(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT]).forEach(i=>{i!==void 0&&!n.includes(i)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${e.name}> outside of mode <${t}>\n`,type:V.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),r}function hi(e,t,n){let r=[],i=!1,a=Object.values(e.modes||{}).flat().filter(Boolean).filter(e=>e[Kr]!==Wi.NA),o=Si(n);return t&&a.forEach(e=>{let t=bi(e,o);if(t!==!1){let n={message:xi(e,t),type:t.issue,tokenType:e};r.push(n)}else Object.hasOwn(e,`LINE_BREAKS`)?e.LINE_BREAKS===!0&&(i=!0):Gr(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:V.NO_LINE_BREAKS_FLAGS}),r}function gi(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(Array.isArray(r))t[n]=[];else throw Error(`non exhaustive match`)}),t}function _i(e){let t=e.PATTERN;if(t instanceof RegExp)return!1;if(typeof t==`function`||Object.hasOwn(t,`exec`))return!0;if(typeof t==`string`)return!1;throw Error(`non exhaustive match`)}function vi(e){return typeof e==`string`&&e.length===1?e.charCodeAt(0):!1}var yi={test:function(e){let t=e.length;for(let n=this.lastIndex;n Token Type\n\t Root cause: ${t.errMsg}.\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===V.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. +\tThe problem is in the <${e.name}> Token Type\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}function Si(e){return e.map(e=>typeof e==`string`?e.charCodeAt(0):e)}function Ci(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}var wi=[];function Ti(e){return e<256?e:wi[e]}function Ei(){if(wi.length===0){wi=Array(65536);for(let e=0;e<65536;e++)wi[e]=e>255?255+~~(e/255):e}}function Di(e,t){let n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Oi(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var ki=1,Ai={};function ji(e){let t=Mi(e);Ni(t),Fi(t),Pi(t),t.forEach(e=>{e.isParent=e.categoryMatches.length>0})}function Mi(e){let t=[...e],n=e,r=!0;for(;r;){n=n.map(e=>e.CATEGORIES).flat().filter(Boolean);let e=n.filter(e=>!t.includes(e));t=t.concat(e),e.length===0?r=!1:n=e}return t}function Ni(e){e.forEach(e=>{Li(e)||(Ai[ki]=e,e.tokenTypeIdx=ki++),Ri(e)&&!Array.isArray(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Ri(e)||(e.CATEGORIES=[]),zi(e)||(e.categoryMatches=[]),Bi(e)||(e.categoryMatchesMap={})})}function Pi(e){e.forEach(e=>{e.categoryMatches=[],Object.keys(e.categoryMatchesMap).forEach(t=>{e.categoryMatches.push(Ai[t].tokenTypeIdx)})})}function Fi(e){e.forEach(e=>{Ii([],e)})}function Ii(e,t){e.forEach(e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),t.CATEGORIES.forEach(n=>{let r=e.concat(t);r.includes(n)||Ii(r,n)})}function Li(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}function Ri(e){return Object.hasOwn(e??{},`CATEGORIES`)}function zi(e){return Object.hasOwn(e??{},`categoryMatches`)}function Bi(e){return Object.hasOwn(e??{},`categoryMatchesMap`)}function Vi(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}var Hi={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i,a){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`}},V;(function(e){e[e.MISSING_PATTERN=0]=`MISSING_PATTERN`,e[e.INVALID_PATTERN=1]=`INVALID_PATTERN`,e[e.EOI_ANCHOR_FOUND=2]=`EOI_ANCHOR_FOUND`,e[e.UNSUPPORTED_FLAGS_FOUND=3]=`UNSUPPORTED_FLAGS_FOUND`,e[e.DUPLICATE_PATTERNS_FOUND=4]=`DUPLICATE_PATTERNS_FOUND`,e[e.INVALID_GROUP_TYPE_FOUND=5]=`INVALID_GROUP_TYPE_FOUND`,e[e.PUSH_MODE_DOES_NOT_EXIST=6]=`PUSH_MODE_DOES_NOT_EXIST`,e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]=`MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE`,e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]=`MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY`,e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]=`MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST`,e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]=`LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED`,e[e.SOI_ANCHOR_FOUND=11]=`SOI_ANCHOR_FOUND`,e[e.EMPTY_MATCH_PATTERN=12]=`EMPTY_MATCH_PATTERN`,e[e.NO_LINE_BREAKS_FLAGS=13]=`NO_LINE_BREAKS_FLAGS`,e[e.UNREACHABLE_PATTERN=14]=`UNREACHABLE_PATTERN`,e[e.IDENTIFY_TERMINATOR=15]=`IDENTIFY_TERMINATOR`,e[e.CUSTOM_LINE_BREAK=16]=`CUSTOM_LINE_BREAK`,e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]=`MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE`})(V||={});var Ui={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Hi,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Ui);var Wi=class{constructor(e,t=Ui){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=nr(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}else return t()},typeof t==`boolean`)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=Object.assign({},Ui,t);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n==`number`&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT(`Lexer Constructor`,()=>{let n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===Ui.lineTerminatorsPattern)this.config.lineTerminatorsPattern=yi;else if(this.config.lineTerminatorCharacters===Ui.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error(`"safeMode" and "ensureOptimizations" flags are mutually exclusive.`);this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(e)?n={modes:{defaultMode:[...e]},defaultMode:qr}:(r=!1,n=Object.assign({},e))}),this.config.skipValidations===!1&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(mi(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(hi(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},Object.entries(n.modes).forEach(([e,t])=>{n.modes[e]=t.filter(e=>e!==void 0)});let i=Object.keys(n.modes);if(Object.entries(n.modes).forEach(([e,n])=>{this.TRACE_INIT(`Mode: <${e}> processing`,()=>{if(this.modes.push(e),this.config.skipValidations===!1&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Xr(n,i))}),this.lexerDefinitionErrors.length===0){ji(n);let r;this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=Yr(n,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[e]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[e]=r.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[e]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- +`);throw Error(`Errors detected in definition of Lexer: +`+e)}this.lexerDefinitionWarning.forEach(e=>{tr(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(r&&(this.handleModes=()=>{}),this.trackStartLines===!1&&(this.computeNewColumn=e=>e),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=()=>{}),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT(`Failed Optimization Warnings`,()=>{let e=Object.entries(this.canModeBeOptimized).reduce((e,[t,n])=>(n===!1&&e.push(t),e),[]);if(t.ensureOptimizations&&e.length>0)throw Error(`Lexer Modes: < ${e.join(`, `)} > cannot be optimized.\n Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT(`clearRegExpParserCache`,()=>{Fr()}),this.TRACE_INIT(`toFastProperties`,()=>{rr(this)})})}tokenize(e,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`----------------------- +`);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_=e,v=_.length,y=0,b=0,x=this.hasCustom?0:Math.floor(e.length/10),S=Array(x),ee=[],C=this.trackStartLines?1:void 0,w=this.trackStartLines?1:void 0,T=gi(this.emptyGroups),te=this.trackStartLines,ne=this.config.lineTerminatorsPattern,E=0,re=[],D=[],O=[],ie=[];Object.freeze(ie);let ae=!1,oe=e=>{if(O.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);ee.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{O.pop();let e=O.at(-1);re=this.patternIdxToConfig[e],D=this.charCodeToPatternIdxToConfig[e],E=re.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ae=!!(D&&t)}};function se(e){O.push(e),D=this.charCodeToPatternIdxToConfig[e],re=this.patternIdxToConfig[e],E=re.length,E=re.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;ae=!!(D&&t)}se.call(this,t);let k,A=this.config.recoveryEnabled;for(;ys.length){s=a,u=a.length,c=l,k=t;break}}}break}}if(u!==-1){if(d=k.group,d!==void 0&&(s=s===null?e.substring(y,y+u):s,f=k.tokenTypeIdx,p=this.createTokenInstance(s,y,f,k.tokenType,C,w,u),this.handlePayload(p,c),d===!1?b=this.addToken(S,b,p):T[d].push(p)),te===!0&&k.canLineTerminator===!0){let t=0,n,r;ne.lastIndex=0;do s=s===null?e.substring(y,y+u):s,n=ne.test(s),n===!0&&(r=ne.lastIndex-1,t++);while(n===!0);t===0?w=this.computeNewColumn(w,u):(C+=t,w=u-r,this.updateTokenEndLineColumnLocation(p,d,r,t,C,w,u))}else w=this.computeNewColumn(w,u);y+=u,this.handleModes(k,oe,se,p)}else{let t=y,n=C,i=w,a=A===!1;for(;a===!1&&y ${Gi(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return`Redundant input, expecting EOF but found: `+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=` +but found: '`+t[0].image+`'`;return r?`Expecting: `+r+a:`Expecting: one of these possible Token sequences:\n${e.reduce((e,t)=>e.concat(t),[]).map(e=>`[${e.map(e=>Gi(e)).join(`, `)}]`).map((e,t)=>` ${t+1}. ${e}`).join(` +`)}`+a},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){let i=` +but found: '`+t[0].image+`'`;return n?`Expecting: `+n+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences::\n <${e.map(e=>`[${e.map(e=>Gi(e)).join(`,`)}]`).join(` ,`)}>`+i}};Object.freeze(sa);var ca={buildRuleNotFoundError(e,t){return`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+`<-`}},la={buildDuplicateFoundError(e,t){function n(e){return e instanceof B?e.terminalType.name:e instanceof sr?e.nonTerminalName:``}let r=e.name,i=t[0],a=i.idx,o=xr(i),s=n(i),c=`->${o}${a>0?a:``}<- ${s?`with argument: ->${s}<-`:``} + appears more than once (${t.length} times) in the top level rule: ->${r}<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return c=c.replace(/[ \t]+/g,` `),c=c.replace(/\s\s+/g,` +`),c},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=e.prefixPath.map(e=>Gi(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix\nin inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`},buildAlternationAmbiguityError(e){let t=e.alternation.idx===0?``:e.alternation.idx,n=e.prefixPath.length===0,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(` ,`)}> in inside <${e.topLevelRule.name}> Rule,\n`;if(n)r+=`These alternatives are all empty (match no tokens), making them indistinguishable. +Only the last alternative may be empty. +`;else{let t=e.prefixPath.map(e=>Gi(e)).join(`, `);r+=`<${t}> may appears as a prefix path in all these alternatives.\n`}return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,r},buildEmptyRepetitionError(e){let t=xr(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis could lead to an infinite loop.`},buildTokenNameError(e){return`deprecated`},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule.\nOnly the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:\n inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name;return`Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${`${t} --> ${e.leftRecursionPath.map(e=>e.name).concat([t]).join(` --> `)}`}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof cr?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function ua(e,t){let n=new da(e,t);return n.resolveRefs(),n.errors}var da=class extends _r{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:us.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},fa=class extends Sr{constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName=``,this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error(`The path does not start with the walker's top Rule!`);return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){this.ruleStack.length===0?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},pa=class extends fa{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName=``,this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new lr({definition:t.concat(n)});this.possibleTokTypes=wr(e),this.found=!0}}},ma=class extends Sr{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},ha=class extends ma{walkMany(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof B&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},ga=class extends ma{walkManySep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof B&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},_a=class extends ma{walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof B&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},va=class extends ma{walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof B&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}};function ya(e,t,n=[]){n=[...n];let r=[],i=0;function a(t){return t.concat(e.slice(i+1))}function o(e){let i=ya(a(e),t,n);return r.concat(i)}for(;n.length{e.definition.length!==0&&(r=o(e.definition))}),r;else if(t instanceof B)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:e.slice(i)}),r}function ba(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,c=t.length,l=c-r-1,u=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});d.length!==0;){let e=d.pop();if(e===o){s&&d.at(-1).idx<=l&&d.pop();continue}let r=e.def,f=e.idx,p=e.ruleStack,m=e.occurrenceStack;if(r.length===0)continue;let h=r[0];if(h===i){let e={idx:f,def:r.slice(1),ruleStack:p.slice(0,-1),occurrenceStack:m.slice(0,-1)};d.push(e)}else if(h instanceof B)if(f=0;e--){let t={idx:f,def:h.definition[e].definition.concat(r.slice(1)),ruleStack:p,occurrenceStack:m};d.push(t),d.push(o)}else if(h instanceof lr)d.push({idx:f,def:h.definition.concat(r.slice(1)),ruleStack:p,occurrenceStack:m});else if(h instanceof cr)d.push(xa(h,f,p,m));else throw Error(`non exhaustive match`)}return u}function xa(e,t,n,r){let i=[...n];i.push(e.name);let a=[...r];return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}var H;(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(H||={});function Sa(e){if(e instanceof R||e===`Option`)return H.OPTION;if(e instanceof z||e===`Repetition`)return H.REPETITION;if(e instanceof ur||e===`RepetitionMandatory`)return H.REPETITION_MANDATORY;if(e instanceof dr||e===`RepetitionMandatoryWithSeparator`)return H.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof fr||e===`RepetitionWithSeparator`)return H.REPETITION_WITH_SEPARATOR;if(e instanceof pr||e===`Alternation`)return H.ALTERNATION;throw Error(`non exhaustive match`)}function Ca(e){let{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,a=Sa(r);return a===H.ALTERNATION?Pa(t,n,i):Fa(t,n,a,i)}function wa(e,t,n,r,i,a){let o=Pa(e,t,n);return a(o,r,Ra(o)?Oi:Di,i)}function Ta(e,t,n,r,i,a){let o=Fa(e,t,i,n),s=Ra(o)?Oi:Di;return a(o[0],s,r)}function Ea(e,t,n,r){let i=e.length,a=e.every(e=>e.every(e=>e.length===1));if(t)return function(t){let r=t.map(e=>e.GATE);for(let t=0;te.flat()).reduce((e,t,n)=>(t.forEach(t=>{t.tokenTypeIdx in e||(e[t.tokenTypeIdx]=n),t.categoryMatches.forEach(t=>{Object.hasOwn(e,t)||(e[t]=n)})}),e),{});return function(){return t[this.LA_FAST(1).tokenTypeIdx]}}else return function(){for(let t=0;te.length===1),i=e.length;if(r&&!n){let t=e.flat();if(t.length===1&&t[0].categoryMatches.length===0){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}else{let e=t.reduce((e,t,n)=>(e[t.tokenTypeIdx]=!0,t.categoryMatches.forEach(t=>{e[t]=!0}),e),[]);return function(){return e[this.LA_FAST(1).tokenTypeIdx]===!0}}}else return function(){nextPath:for(let n=0;nya([e],1)),r=Aa(n.length),i=n.map(e=>{let t={};return e.forEach(e=>{ja(e.partialPath).forEach(e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=Aa(n.length);for(let o=0;o{ja(e.partialPath).forEach(e=>{i[o][e]=!0})})}}}}return r}function Pa(e,t,n,r){let i=new ka(e,H.ALTERNATION,r);return t.accept(i),Na(i.result,n)}function Fa(e,t,n,r){let i=new ka(e,n);t.accept(i);let a=i.result,o=new Oa(t,e,n).startWalking();return Na([new lr({definition:a}),new lr({definition:o})],r)}function Ia(e,t){compareOtherPath:for(let n=0;n{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}function Ra(e){return e.every(e=>e.every(e=>e.every(e=>e.categoryMatches.length===0)))}function za(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map(e=>Object.assign({type:us.CUSTOM_LOOKAHEAD_VALIDATION},e))}function Ba(e,t,n,r){let i=e.flatMap(e=>Va(e,n)),a=ro(e,t,n),o=e.flatMap(e=>$a(e,n)),s=e.flatMap(t=>Ga(t,e,r,n));return i.concat(a,o,s)}function Va(e,t){let n=new Wa;e.accept(n);let r=n.allProductions,i=Object.groupBy(r,Ha),a=Object.fromEntries(Object.entries(i).filter(([e,t])=>t.length>1));return Object.values(a).map(n=>{let r=n[0],i=t.buildDuplicateFoundError(e,n),a=xr(r),o={message:i,type:us.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=Ua(r);return s&&(o.parameter=s),o})}function Ha(e){return`${xr(e)}_#_${e.idx}_#_${Ua(e)}`}function Ua(e){return e instanceof B?e.terminalType.name:e instanceof sr?e.nonTerminalName:``}var Wa=class extends _r{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function Ga(e,t,n,r){let i=[];if(t.reduce((t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:us.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function Ka(e,t,n){let r=[],i;return t.includes(e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:us.INVALID_RULE_OVERRIDE,ruleName:e})),r}function qa(e,t,n,r=[]){let i=[],a=Ja(t.definition);if(a.length===0)return[];{let t=e.name;a.includes(e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:us.LEFT_RECURSION,ruleName:t});let o=r.concat([e]),s=a.filter(e=>!o.includes(e)).flatMap(t=>{let i=[...r];return i.push(t),qa(e,t,n,i)});return i.concat(s)}}function Ja(e){let t=[];if(e.length===0)return t;let n=e[0];if(n instanceof sr)t.push(n.referencedRule);else if(n instanceof lr||n instanceof R||n instanceof ur||n instanceof dr||n instanceof fr||n instanceof z)t=t.concat(Ja(n.definition));else if(n instanceof pr)t=n.definition.map(e=>Ja(e.definition)).flat();else if(!(n instanceof B))throw Error(`non exhaustive match`);let r=yr(n),i=e.length>1;if(r&&i){let n=e.slice(1);return t.concat(Ja(n))}else return t}var Ya=class extends _r{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function Xa(e,t){let n=new Ya;return e.accept(n),n.alternations.flatMap(n=>n.definition.slice(0,-1).flatMap((r,i)=>ba([r],[],Di,1).length===0?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:us.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}function Za(e,t,n){let r=new Ya;e.accept(r);let i=r.alternations;return i=i.filter(e=>e.ignoreAmbiguities!==!0),i.flatMap(r=>{let i=r.idx,a=Pa(i,e,r.maxLookahead||t,r),o=to(a,r,e,n),s=no(a,r,e,n);return o.concat(s)})}var Qa=class extends _r{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function $a(e,t){let n=new Ya;return e.accept(n),n.alternations.flatMap(n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:us.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}function eo(e,t,n){let r=[];return e.forEach(e=>{let i=new Qa;e.accept(i),i.allProductions.forEach(i=>{let a=Sa(i),o=i.maxLookahead||t,s=i.idx;if(Fa(s,e,a,o)[0].flat().length===0){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:us.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}function to(e,t,n,r){let i=[];return e.reduce((n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||r.forEach(r=>{let o=[a];e.forEach((e,n)=>{a!==n&&Ia(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!Ia(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]).map(e=>{let i=e.alts.map(e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:us.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}function no(e,t,n,r){let i=e.reduce((e,t,n)=>{let r=t.map(e=>({idx:n,path:e}));return e.concat(r)},[]);return i.flatMap(e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return i.filter(e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:us.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})})}function ro(e,t,n){let r=[],i=t.map(e=>e.name);return e.forEach(e=>{let t=e.name;if(i.includes(t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:us.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}function io(e){let t=Object.assign({errMsgProvider:ca},e),n={};return e.rules.forEach(e=>{n[e.name]=e}),ua(n,t.errMsgProvider)}function ao(e){let t=e.errMsgProvider??la;return Ba(e.rules,e.tokenTypes,t,e.grammarName)}var oo=`MismatchedTokenException`,so=`NoViableAltException`,co=`EarlyExitException`,lo=`NotAllInputParsedException`,uo=[oo,so,co,lo];Object.freeze(uo);function fo(e){return uo.includes(e.name)}var po=class extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},mo=class extends po{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=oo}},ho=class extends po{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=so}},go=class extends po{constructor(e,t){super(e,t),this.name=lo}},_o=class extends po{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=co}},vo={},yo=`InRuleRecoveryException`,bo=class extends Error{constructor(e){super(e),this.name=yo}},xo=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,`recoveryEnabled`)?e.recoveryEnabled:cs.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=So)}getTokenToInsert(e){let t=aa(e,``,NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,c=this.LA_FAST(1),l=this.LA_FAST(1),u=()=>{let e=this.LA(0),t=new mo(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:c,previous:e,ruleName:this.getCurrRuleFullName()}),c,this.LA(0));t.resyncedTokens=o.slice(0,-1),this.SAVE_ERROR(t)};for(;!s;)if(this.tokenMatcher(l,r)){u();return}else if(n.call(this)){u(),e.apply(this,t);return}else this.tokenMatcher(l,i)?s=!0:(l=this.SKIP_TOKEN(),this.addToResyncTokens(l,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA_FAST(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getNextPossibleTokenTypes(e){let t=e.ruleStack[0],n=this.getGAstProductions()[t];return new pa(n,e).startWalking()}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new bo(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||t.length===0)return!1;let n=this.LA_FAST(1);return t.find(e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA_FAST(1),n=2;for(;;){let r=e.find(e=>oa(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return vo;let e=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,n=this.RULE_STACK_IDX+1,r=Array(n);for(let i=0;ithis.getFollowSetFromFollowKey(e)).flat()}getFollowSetFromFollowKey(e){if(e===vo)return[ia];let t=e.ruleName+e.idxInCallingRule+Or+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,ia)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA_FAST(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return t.slice(0,-1)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,t=Array(e);for(let n=0;nqa(e,e,la))}validateEmptyOrAlternatives(e){return e.flatMap(e=>Xa(e,la))}validateAmbiguousAlternationAlternatives(e,t){return e.flatMap(e=>Za(e,t,la))}validateSomeNonEmptyLookaheadPath(e,t){return eo(e,t,la)}buildLookaheadForAlternation(e){return wa(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Ea)}buildLookaheadForOptional(e){return Ta(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Sa(e.prodType),Da)}},Oo=class{initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:cs.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,`maxLookahead`)?e.maxLookahead:cs.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,`lookaheadStrategy`)?e.lookaheadStrategy:new Do({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){e.forEach(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=Ao(e);t.forEach(t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${xr(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=Eo(this.fullRuleNameToShort[e.name],256,t.idx);this.setLaFuncCache(r,n)})}),n.forEach(t=>{this.computeLookaheadFunc(e,t.idx,768,`Repetition`,t.maxLookahead,xr(t))}),r.forEach(t=>{this.computeLookaheadFunc(e,t.idx,512,`Option`,t.maxLookahead,xr(t))}),i.forEach(t=>{this.computeLookaheadFunc(e,t.idx,Co,`RepetitionMandatory`,t.maxLookahead,xr(t))}),a.forEach(t=>{this.computeLookaheadFunc(e,t.idx,To,`RepetitionMandatoryWithSeparator`,t.maxLookahead,xr(t))}),o.forEach(t=>{this.computeLookaheadFunc(e,t.idx,wo,`RepetitionWithSeparator`,t.maxLookahead,xr(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),o=Eo(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(o,a)})}getKeyForAutomaticLookahead(e,t){return Eo(this.currRuleShortName,e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},ko=new class extends _r{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function Ao(e){ko.reset(),e.accept(ko);let t=ko.dslMethods;return ko.reset(),t}function jo(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsete.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join(` + +`).replace(/\n/g,` + `)}`)}}},n.prototype.constructor=n,n._RULE_NAMES=t,n}function zo(e,t,n){let r=function(){};Io(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return t.forEach(e=>{i[e]=Lo}),r.prototype=i,r.prototype.constructor=r,r}var Bo;(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(Bo||={});function Vo(e,t){return Ho(e,t)}function Ho(e,t){return t.filter(t=>typeof e[t]!=`function`).map(t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Bo.MISSING_METHOD,methodName:t})).filter(Boolean)}var Uo=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,`nodeLocationTracking`)?e.nodeLocationTracking:cs.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Mo,this.setNodeLocationFromNode=Mo,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=jo,this.setNodeLocationFromNode=jo,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA_FAST(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset<=t.startOffset?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset<=t.startOffset?n.endOffset=t.endOffset:n.startOffset=NaN}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];No(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];Po(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=Ro(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=zo(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}},Wo=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error(`Missing invocation at the end of the Parser's constructor.`);this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):ss}LA_FAST(e){let t=this.currIdx+e;return this.tokVector[t]}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?ss:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}},Go=class{ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,n=ls){if(this.definedRulesNames.includes(e)){let t={message:la.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:us.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=ls){let r=Ka(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){let n=e.coreRule??e;return function(){this.isBackTrackingStack.push(1);let e=this.saveRecogState();try{return n.apply(this,t),!0}catch(e){if(fo(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return mr(Object.values(this.gastProductionsCache))}},Ko=class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Oi,this.subruleIdx=0,this.currRuleShortName=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,`serializedGrammar`))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if(Array.isArray(e)){if(e.length===0)throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset==`number`)throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if(Array.isArray(e))this.tokensMap=e.reduce((e,t)=>(e[t.name]=t,e),{});else if(Object.hasOwn(e,`modes`)&&Object.values(e.modes).flat().every(Vi)){let t=Object.values(e.modes).flat(),n=[...new Set(t)];this.tokensMap=n.reduce((e,t)=>(e[t.name]=t,e),{})}else if(typeof e==`object`&&e)this.tokensMap=Object.assign({},e);else throw Error(` argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap.EOF=ia;let n=(Object.hasOwn(e,`modes`)?Object.values(e.modes).flat():Object.values(e)).every(e=>e.categoryMatches?.length==0);this.tokenMatcher=n?Oi:Di,ji(Object.values(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let r=Object.hasOwn(n,`resyncEnabled`)?n.resyncEnabled:ls.resyncEnabled,i=Object.hasOwn(n,`recoveryValueFunc`)?n.recoveryValueFunc:ls.recoveryValueFunc,a=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a;let o;return o=this.outputCst===!0?function(...n){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n);let r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}}:function(...n){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n)}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},Object.assign(function(...t){this.onBeforeParse(e);try{return o.apply(this,t)}finally{this.onAfterParse(e)}},{ruleName:e,originalGrammarAction:t,coreRule:o})}invokeRuleCatch(e,t,n){let r=this.RULE_STACK_IDX===0,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(fo(e)){let t=e;if(i){let r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r))if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}else return n(e);else{if(this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}}else if(r)return this.moveToTerminatedState(),n(e);else throw t}else throw e}optionInternal(e,t){let n=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof e!=`function`){i=e.DEF;let t=e.GATE;if(t!==void 0){let e=r;r=()=>t.call(this)&&e.call(this)}}else i=e;if(r.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let n=this.getKeyForAutomaticLookahead(Co,e);return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=()=>e.call(this)&&t.call(this)}}else i=t;if(r.call(this)===!0){let e=this.doSingleRepetition(i);for(;r.call(this)===!0&&e===!0;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,H.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,Co,e,_a)}atLeastOneSepFirstInternal(e,t){let n=this.getKeyForAutomaticLookahead(To,e);this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){r.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),i);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,va],t,To,e,va)}else throw this.raiseEarlyExitException(e,H.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let n=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=()=>e.call(this)&&t.call(this)}}else i=t;let a=!0;for(;r.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,768,e,ha,a)}manySepFirstInternal(e,t){let n=this.getKeyForAutomaticLookahead(wo,e);this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){r.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),i);for(;this.tokenMatcher(this.LA_FAST(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,ga],t,wo,e,ga)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,To,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=this.getKeyForAutomaticLookahead(256,t),r=Array.isArray(e)?e:e.DEF,i=this.getLaFuncFromCache(n).call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX]),this.cstFinallyStateUpdate()}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.coreRule.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw fo(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA_FAST(1);this.tokenMatcher(t,e)===!0?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new mo(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name===`MismatchedTokenException`&&!this.isBackTracking()){let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===`InRuleRecoveryException`?n:e}}else throw n}saveRecogState(){let e=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let t=e.RULE_STACK;for(let e=0;e=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX])}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=n,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),ia)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let e=0;e{for(let e=0;e<10;e++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT(`Deleting Recording methods`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return ss}topLevelRuleRecord(e,t){try{let n=new cr({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(e.KNOWN_RECORDER_ERROR!==!0)try{e.message+=` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw e}throw e}}optionInternalRecord(e,t){return ts.call(this,R,e,t)}atLeastOneInternalRecord(e,t){ts.call(this,ur,t,e)}atLeastOneSepFirstInternalRecord(e,t){ts.call(this,dr,t,e,Yo)}manyInternalRecord(e,t){ts.call(this,z,t,e)}manySepFirstInternalRecord(e,t){ts.call(this,fr,t,e,Yo)}orInternalRecord(e,t){return ns.call(this,e,t)}subruleInternalRecord(e,t,n){if(is(t),!e||!Object.hasOwn(e,`ruleName`)){let n=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=e.ruleName,a=new sr({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?$o:Jo}consumeInternalRecord(e,t,n){if(is(t),!Li(e)){let n=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=new B({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),Qo}};function ts(e,t,n,r=!1){is(n);let i=this.recordingProdStack.at(-1),a=typeof t==`function`?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),Object.hasOwn(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),Jo}function ns(e,t){is(t);let n=this.recordingProdStack.at(-1),r=Array.isArray(e)===!1,i=r===!1?e:e.DEF,a=new pr({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});return Object.hasOwn(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=i.some(e=>typeof e.GATE==`function`),n.definition.push(a),i.forEach(e=>{let t=new lr({definition:[]});a.definition.push(t),Object.hasOwn(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object.hasOwn(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),Jo}function rs(e){return e===0?``:`${e}`}function is(e){if(e<0||e>Xo){let t=Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than ${Xo+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}var as=class{initPerformanceTracer(e){if(Object.hasOwn(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=cs.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=nr(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}else return t()}};function os(e,t){t.forEach(t=>{let n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if(r===`constructor`)return;let i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}var ss=aa(ia,``,NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(ss);var cs=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:sa,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),ls=Object.freeze({recoveryValueFunc:()=>void 0,resyncEnabled:!0}),us;(function(e){e[e.INVALID_RULE_NAME=0]=`INVALID_RULE_NAME`,e[e.DUPLICATE_RULE_NAME=1]=`DUPLICATE_RULE_NAME`,e[e.INVALID_RULE_OVERRIDE=2]=`INVALID_RULE_OVERRIDE`,e[e.DUPLICATE_PRODUCTIONS=3]=`DUPLICATE_PRODUCTIONS`,e[e.UNRESOLVED_SUBRULE_REF=4]=`UNRESOLVED_SUBRULE_REF`,e[e.LEFT_RECURSION=5]=`LEFT_RECURSION`,e[e.NONE_LAST_EMPTY_ALT=6]=`NONE_LAST_EMPTY_ALT`,e[e.AMBIGUOUS_ALTS=7]=`AMBIGUOUS_ALTS`,e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]=`CONFLICT_TOKENS_RULES_NAMESPACE`,e[e.INVALID_TOKEN_NAME=9]=`INVALID_TOKEN_NAME`,e[e.NO_NON_EMPTY_LOOKAHEAD=10]=`NO_NON_EMPTY_LOOKAHEAD`,e[e.AMBIGUOUS_PREFIX_ALTS=11]=`AMBIGUOUS_PREFIX_ALTS`,e[e.TOO_MANY_ALTS=12]=`TOO_MANY_ALTS`,e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]=`CUSTOM_LOOKAHEAD_VALIDATION`})(us||={});function ds(e=void 0){return function(){return e}}var fs=class e{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT(`performSelfAnalysis`,()=>{let t;this.selfAnalysisDone=!0;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{rr(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),this.definedRulesNames.forEach(e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=io({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(r.length===0&&this.skipValidations===!1){let e=ao({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:la,grammarName:n}),t=za({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(e,t)}}),this.definitionErrors.length===0&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=Ar(Object.values(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw t=this.definitionErrors.map(e=>e.message),Error(`Parser Definition Errors detected:\n ${t.join(` +------------------------------- +`)}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initGastRecorder(t),n.initPerformanceTracer(t),Object.hasOwn(t,`ignoredIssues`))throw Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=Object.hasOwn(t,`skipValidations`)?t.skipValidations:cs.skipValidations}};fs.DEFER_DEFINITION_ERRORS_HANDLING=!1,os(fs,[xo,Oo,Uo,Wo,Ko,Go,qo,es,as]);var ps=class extends fs{constructor(e,t=cs){let n=Object.assign({},t);n.outputCst=!1,super(e,n)}};function ms(e,t,n){return`${e.name}_${t}_${n}`}var hs=class{constructor(e){this.target=e}isEpsilon(){return!1}},gs=class extends hs{constructor(e,t){super(e),this.tokenType=t}},_s=class extends hs{constructor(e){super(e)}isEpsilon(){return!0}},vs=class extends hs{constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}};function ys(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};bs(t,e);let n=e.length;for(let r=0;rxs(e,t,n)))}function Ds(e,t,n){let r=W(e,t,n,{type:1});return Ms(e,r),js(e,t,n,Ns(e,t,r,n,Os(e,t,n)))}function Os(e,t,n){let r=l(m(n.definition,n=>xs(e,t,n)),e=>e!==void 0);return r.length===1?r[0]:r.length===0?void 0:Fs(e,r)}function ks(e,t,n,r,i){let a=r.left,o=r.right,s=W(e,t,n,{type:11});Ms(e,s);let c=W(e,t,n,{type:12});return a.loopback=s,c.loopback=s,e.decisionMap[ms(t,i?`RepetitionMandatoryWithSeparator`:`RepetitionMandatory`,n.idx)]=s,U(o,s),i===void 0?(U(s,a),U(s,c)):(U(s,c),U(s,i.left),U(i.right,a)),{left:a,right:c}}function As(e,t,n,r,i){let a=r.left,o=r.right,s=W(e,t,n,{type:10});Ms(e,s);let c=W(e,t,n,{type:12}),l=W(e,t,n,{type:9});return s.loopback=l,c.loopback=l,U(s,a),U(s,c),U(o,l),i===void 0?U(l,s):(U(l,c),U(l,i.left),U(i.right,a)),e.decisionMap[ms(t,i?`RepetitionWithSeparator`:`Repetition`,n.idx)]=s,{left:s,right:c}}function js(e,t,n,r){let i=r.left,a=r.right;return U(i,a),e.decisionMap[ms(t,`Option`,n.idx)]=i,r}function Ms(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function Ns(e,t,n,r,...i){let a=W(e,t,r,{type:8,start:n});n.end=a;for(let e of i)e===void 0?U(n,a):(U(n,e.left),U(e.right,a));let o={left:n,right:a};return e.decisionMap[ms(t,Ps(r),r.idx)]=n,o}function Ps(e){if(e instanceof pr)return`Alternation`;if(e instanceof R)return`Option`;if(e instanceof z)return`Repetition`;if(e instanceof fr)return`RepetitionWithSeparator`;if(e instanceof ur)return`RepetitionMandatory`;if(e instanceof dr)return`RepetitionMandatoryWithSeparator`;throw Error(`Invalid production type encountered`)}function Fs(e,t){let n=t.length;for(let r=0;re.alt)}get key(){let e=``;for(let t in this.map)e+=t+`:`;return e}};function Us(e,t=!0){return`${t?`a${e.alt}`:``}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join(`_`)}`}function Ws(e,t){let n={};return r=>{let i=r.toString(),a=n[i];return a===void 0?(a={atnStartState:e,decision:t,states:{}},n[i]=a,a):a}}var Gs=class{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e=``,t=this.predicates.length;for(let n=0;nconsole.log(e))}initialize(e){this.atn=ys(e.rules),this.dfas=Ys(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,a=this.dfas,c=this.logging,l=ms(n,`Alternation`,t),u=this.atn.decisionMap[l].decision,d=m(Ca({maxLookahead:1,occurrence:t,prodType:`Alternation`,rule:n}),e=>m(e,e=>e[0]));if(Js(d,!1)&&!i){let e=s(d,(e,t,n)=>(o(t,t=>{t&&(e[t.tokenTypeIdx]=n,o(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){let n=e[this.LA_FAST(1).tokenTypeIdx];if(t!==void 0&&n!==void 0){let e=t[n]?.GATE;if(e!==void 0&&e.call(this)===!1)return}return n}:function(){return e[this.LA_FAST(1).tokenTypeIdx]}}else if(r)return function(e){let t=new Gs,n=e===void 0?0:e.length;for(let r=0;rm(e,e=>e[0]));if(Js(f)&&f[0][0]&&!i){let e=f[0],t=d(e);if(t.length===1&&p(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}else{let e=s(t,(e,t)=>(t!==void 0&&(e[t.tokenTypeIdx]=!0,o(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){return e[this.LA_FAST(1).tokenTypeIdx]===!0}}}return function(){let e=Xs.call(this,a,u,Ks,c);return typeof e==`object`?!1:e===0}}};function Js(e,t=!0){let n=new Set;for(let r of e){let e=new Set;for(let i of r){if(i===void 0){if(t)break;return!1}let r=[i.tokenTypeIdx].concat(i.categoryMatches);for(let t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}function Ys(e){let t=e.decisionStates.length,n=Array(t);for(let r=0;rGi(e)).join(`, `),n=e.production.idx===0?``:e.production.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(`, `)}> in <${tc(e.production)}${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\n`;return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,r}function tc(e){if(e instanceof sr)return`SUBRULE`;if(e instanceof R)return`OPTION`;if(e instanceof pr)return`OR`;if(e instanceof ur)return`AT_LEAST_ONE`;if(e instanceof dr)return`AT_LEAST_ONE_SEP`;if(e instanceof fr)return`MANY_SEP`;if(e instanceof z)return`MANY`;if(e instanceof B)return`CONSUME`;throw Error(`non exhaustive match`)}function nc(e,t,n){return{actualToken:n,possibleTokenTypes:_(g(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof gs).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function rc(e,t){return e.edges[t.tokenTypeIdx]}function ic(e,t,n){let r=new Hs,i=[];for(let a of e.elements){if(n.is(a.alt)===!1)continue;if(a.state.type===7){i.push(a);continue}let e=a.state.transitions.length;for(let n=0;n0&&!pc(a))for(let e of i)a.add(e);return a}function ac(e,t){if(e instanceof gs&&oa(t,e.tokenType))return e.target}function oc(e,t){let n;for(let r of e.elements)if(t.is(r.alt)===!0){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}function sc(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function cc(e,t,n,r){return r=lc(e,r),t.edges[n.tokenTypeIdx]=r,r}function lc(e,t){if(t===Vs)return t;let n=t.configs.key,r=e.states[n];return r===void 0?(t.configs.finalize(),e.states[n]=t,t):r}function uc(e){let t=new Hs,n=e.transitions.length;for(let r=0;r0){let n=[...e.stack];dc({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);let r=n.transitions.length;for(let i=0;i1)return!0;return!1}function vc(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}var yc=i({AnnotatedTextEdit:()=>zc,ChangeAnnotation:()=>Rc,ChangeAnnotationIdentifier:()=>q,CodeAction:()=>Sl,CodeActionContext:()=>xl,CodeActionKind:()=>yl,CodeActionTriggerKind:()=>bl,CodeDescription:()=>Pc,CodeLens:()=>Cl,Color:()=>Ec,ColorInformation:()=>Dc,ColorPresentation:()=>Oc,Command:()=>Ic,CompletionItem:()=>ol,CompletionItemKind:()=>el,CompletionItemLabelDetails:()=>al,CompletionItemTag:()=>nl,CompletionList:()=>sl,CreateFile:()=>Vc,DeleteFile:()=>Uc,Diagnostic:()=>Fc,DiagnosticRelatedInformation:()=>jc,DiagnosticSeverity:()=>Mc,DiagnosticTag:()=>Nc,DocumentHighlight:()=>pl,DocumentHighlightKind:()=>fl,DocumentLink:()=>Tl,DocumentSymbol:()=>vl,DocumentUri:()=>bc,EOL:()=>Wl,FoldingRange:()=>Ac,FoldingRangeKind:()=>kc,FormattingOptions:()=>wl,Hover:()=>ll,InlayHint:()=>Il,InlayHintKind:()=>Pl,InlayHintLabelPart:()=>Fl,InlineCompletionContext:()=>Hl,InlineCompletionItem:()=>Rl,InlineCompletionList:()=>zl,InlineCompletionTriggerKind:()=>Bl,InlineValueContext:()=>Nl,InlineValueEvaluatableExpression:()=>Ml,InlineValueText:()=>Al,InlineValueVariableLookup:()=>jl,InsertReplaceEdit:()=>rl,InsertTextFormat:()=>tl,InsertTextMode:()=>il,Location:()=>wc,LocationLink:()=>Tc,MarkedString:()=>cl,MarkupContent:()=>$c,MarkupKind:()=>Qc,OptionalVersionedTextDocumentIdentifier:()=>Xc,ParameterInformation:()=>ul,Position:()=>G,Range:()=>K,RenameFile:()=>Hc,SelectedCompletionInfo:()=>Vl,SelectionRange:()=>El,SemanticTokenModifiers:()=>Ol,SemanticTokenTypes:()=>Dl,SemanticTokens:()=>kl,SignatureInformation:()=>dl,StringValue:()=>Ll,SymbolInformation:()=>gl,SymbolKind:()=>ml,SymbolTag:()=>hl,TextDocument:()=>Gl,TextDocumentEdit:()=>Bc,TextDocumentIdentifier:()=>Jc,TextDocumentItem:()=>Zc,TextEdit:()=>Lc,URI:()=>xc,VersionedTextDocumentIdentifier:()=>Yc,WorkspaceChange:()=>qc,WorkspaceEdit:()=>Wc,WorkspaceFolder:()=>Ul,WorkspaceSymbol:()=>_l,integer:()=>Sc,uinteger:()=>Cc}),bc,xc,Sc,Cc,G,K,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,q,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,J,ql=n((()=>{(function(e){function t(e){return typeof e==`string`}e.is=t})(bc||={}),(function(e){function t(e){return typeof e==`string`}e.is=t})(xc||={}),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Sc||={}),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Cc||={}),(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Cc.MAX_VALUE),t===Number.MAX_VALUE&&(t=Cc.MAX_VALUE),{line:e,character:t}}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&J.uinteger(t.line)&&J.uinteger(t.character)}e.is=n})(G||={}),(function(e){function t(e,t,n,r){if(J.uinteger(e)&&J.uinteger(t)&&J.uinteger(n)&&J.uinteger(r))return{start:G.create(e,t),end:G.create(n,r)};if(G.is(e)&&G.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&G.is(t.start)&&G.is(t.end)}e.is=n})(K||={}),(function(e){function t(e,t){return{uri:e,range:t}}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&K.is(t.range)&&(J.string(t.uri)||J.undefined(t.uri))}e.is=n})(wc||={}),(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&K.is(t.targetRange)&&J.string(t.targetUri)&&K.is(t.targetSelectionRange)&&(K.is(t.originSelectionRange)||J.undefined(t.originSelectionRange))}e.is=n})(Tc||={}),(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&J.numberRange(t.red,0,1)&&J.numberRange(t.green,0,1)&&J.numberRange(t.blue,0,1)&&J.numberRange(t.alpha,0,1)}e.is=n})(Ec||={}),(function(e){function t(e,t){return{range:e,color:t}}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&K.is(t.range)&&Ec.is(t.color)}e.is=n})(Dc||={}),(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&J.string(t.label)&&(J.undefined(t.textEdit)||Lc.is(t))&&(J.undefined(t.additionalTextEdits)||J.typedArray(t.additionalTextEdits,Lc.is))}e.is=n})(Oc||={}),(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(kc||={}),(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return J.defined(n)&&(o.startCharacter=n),J.defined(r)&&(o.endCharacter=r),J.defined(i)&&(o.kind=i),J.defined(a)&&(o.collapsedText=a),o}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&J.uinteger(t.startLine)&&J.uinteger(t.startLine)&&(J.undefined(t.startCharacter)||J.uinteger(t.startCharacter))&&(J.undefined(t.endCharacter)||J.uinteger(t.endCharacter))&&(J.undefined(t.kind)||J.string(t.kind))}e.is=n})(Ac||={}),(function(e){function t(e,t){return{location:e,message:t}}e.create=t;function n(e){let t=e;return J.defined(t)&&wc.is(t.location)&&J.string(t.message)}e.is=n})(jc||={}),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Mc||={}),(function(e){e.Unnecessary=1,e.Deprecated=2})(Nc||={}),(function(e){function t(e){let t=e;return J.objectLiteral(t)&&J.string(t.href)}e.is=t})(Pc||={}),(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return J.defined(n)&&(o.severity=n),J.defined(r)&&(o.code=r),J.defined(i)&&(o.source=i),J.defined(a)&&(o.relatedInformation=a),o}e.create=t;function n(e){let t=e;return J.defined(t)&&K.is(t.range)&&J.string(t.message)&&(J.number(t.severity)||J.undefined(t.severity))&&(J.integer(t.code)||J.string(t.code)||J.undefined(t.code))&&(J.undefined(t.codeDescription)||J.string(t.codeDescription?.href))&&(J.string(t.source)||J.undefined(t.source))&&(J.undefined(t.relatedInformation)||J.typedArray(t.relatedInformation,jc.is))}e.is=n})(Fc||={}),(function(e){function t(e,t,...n){let r={title:e,command:t};return J.defined(n)&&n.length>0&&(r.arguments=n),r}e.create=t;function n(e){let t=e;return J.defined(t)&&J.string(t.title)&&J.string(t.command)}e.is=n})(Ic||={}),(function(e){function t(e,t){return{range:e,newText:t}}e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}e.insert=n;function r(e){return{range:e,newText:``}}e.del=r;function i(e){let t=e;return J.objectLiteral(t)&&J.string(t.newText)&&K.is(t.range)}e.is=i})(Lc||={}),(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&J.string(t.label)&&(J.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(J.string(t.description)||t.description===void 0)}e.is=n})(Rc||={}),(function(e){function t(e){let t=e;return J.string(t)}e.is=t})(q||={}),(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}e.del=r;function i(e){let t=e;return Lc.is(t)&&(Rc.is(t.annotationId)||q.is(t.annotationId))}e.is=i})(zc||={}),(function(e){function t(e,t){return{textDocument:e,edits:t}}e.create=t;function n(e){let t=e;return J.defined(t)&&Xc.is(t.textDocument)&&Array.isArray(t.edits)}e.is=n})(Bc||={}),(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&J.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||J.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||J.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||q.is(t.annotationId))}e.is=n})(Vc||={}),(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&J.string(t.oldUri)&&J.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||J.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||J.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||q.is(t.annotationId))}e.is=n})(Hc||={}),(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&J.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||J.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||J.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||q.is(t.annotationId))}e.is=n})(Uc||={}),(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>J.string(e.kind)?Vc.is(e)||Hc.is(e)||Uc.is(e):Bc.is(e)))}e.is=t})(Wc||={}),Gc=class{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(n===void 0?r=Lc.insert(e,t):q.is(n)?(i=n,r=zc.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=zc.insert(e,t,i)),this.edits.push(r),i!==void 0)return i}replace(e,t,n){let r,i;if(n===void 0?r=Lc.replace(e,t):q.is(n)?(i=n,r=zc.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=zc.replace(e,t,i)),this.edits.push(r),i!==void 0)return i}delete(e,t){let n,r;if(t===void 0?n=Lc.del(e):q.is(t)?(r=t,n=zc.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=zc.del(e,r)),this.edits.push(n),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)}},Kc=class{constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(q.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},qc=class{constructor(e){this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Kc(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(Bc.is(e)){let t=new Gc(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let n=new Gc(e.changes[t]);this._textEditChanges[t]=n}))}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Xc.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){let e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new Gc(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new Gc(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Kc,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;Rc.is(t)||q.is(t)?r=t:n=t;let i,a;if(r===void 0?i=Vc.create(e,n):(a=q.is(r)?r:this._changeAnnotations.manage(r),i=Vc.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}renameFile(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let i;Rc.is(n)||q.is(n)?i=n:r=n;let a,o;if(i===void 0?a=Hc.create(e,t,r):(o=q.is(i)?i:this._changeAnnotations.manage(i),a=Hc.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;Rc.is(t)||q.is(t)?r=t:n=t;let i,a;if(r===void 0?i=Uc.create(e,n):(a=q.is(r)?r:this._changeAnnotations.manage(r),i=Uc.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}},(function(e){function t(e){return{uri:e}}e.create=t;function n(e){let t=e;return J.defined(t)&&J.string(t.uri)}e.is=n})(Jc||={}),(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return J.defined(t)&&J.string(t.uri)&&J.integer(t.version)}e.is=n})(Yc||={}),(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return J.defined(t)&&J.string(t.uri)&&(t.version===null||J.integer(t.version))}e.is=n})(Xc||={}),(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}e.create=t;function n(e){let t=e;return J.defined(t)&&J.string(t.uri)&&J.string(t.languageId)&&J.integer(t.version)&&J.string(t.text)}e.is=n})(Zc||={}),(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}e.is=t})(Qc||={}),(function(e){function t(e){let t=e;return J.objectLiteral(e)&&Qc.is(t.kind)&&J.string(t.value)}e.is=t})($c||={}),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(el||={}),(function(e){e.PlainText=1,e.Snippet=2})(tl||={}),(function(e){e.Deprecated=1})(nl||={}),(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}e.create=t;function n(e){let t=e;return t&&J.string(t.newText)&&K.is(t.insert)&&K.is(t.replace)}e.is=n})(rl||={}),(function(e){e.asIs=1,e.adjustIndentation=2})(il||={}),(function(e){function t(e){let t=e;return t&&(J.string(t.detail)||t.detail===void 0)&&(J.string(t.description)||t.description===void 0)}e.is=t})(al||={}),(function(e){function t(e){return{label:e}}e.create=t})(ol||={}),(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}e.create=t})(sl||={}),(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}e.fromPlainText=t;function n(e){let t=e;return J.string(t)||J.objectLiteral(t)&&J.string(t.language)&&J.string(t.value)}e.is=n})(cl||={}),(function(e){function t(e){let t=e;return!!t&&J.objectLiteral(t)&&($c.is(t.contents)||cl.is(t.contents)||J.typedArray(t.contents,cl.is))&&(e.range===void 0||K.is(e.range))}e.is=t})(ll||={}),(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}e.create=t})(ul||={}),(function(e){function t(e,t,...n){let r={label:e};return J.defined(t)&&(r.documentation=t),J.defined(n)?r.parameters=n:r.parameters=[],r}e.create=t})(dl||={}),(function(e){e.Text=1,e.Read=2,e.Write=3})(fl||={}),(function(e){function t(e,t){let n={range:e};return J.number(t)&&(n.kind=t),n}e.create=t})(pl||={}),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(ml||={}),(function(e){e.Deprecated=1})(hl||={}),(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}e.create=t})(gl||={}),(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}e.create=t})(_l||={}),(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}e.create=t;function n(e){let t=e;return t&&J.string(t.name)&&J.number(t.kind)&&K.is(t.range)&&K.is(t.selectionRange)&&(t.detail===void 0||J.string(t.detail))&&(t.deprecated===void 0||J.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=n})(vl||={}),(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(yl||={}),(function(e){e.Invoked=1,e.Automatic=2})(bl||={}),(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}e.create=t;function n(e){let t=e;return J.defined(t)&&J.typedArray(t.diagnostics,Fc.is)&&(t.only===void 0||J.typedArray(t.only,J.string))&&(t.triggerKind===void 0||t.triggerKind===bl.Invoked||t.triggerKind===bl.Automatic)}e.is=n})(xl||={}),(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):Ic.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return t&&J.string(t.title)&&(t.diagnostics===void 0||J.typedArray(t.diagnostics,Fc.is))&&(t.kind===void 0||J.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||Ic.is(t.command))&&(t.isPreferred===void 0||J.boolean(t.isPreferred))&&(t.edit===void 0||Wc.is(t.edit))}e.is=n})(Sl||={}),(function(e){function t(e,t){let n={range:e};return J.defined(t)&&(n.data=t),n}e.create=t;function n(e){let t=e;return J.defined(t)&&K.is(t.range)&&(J.undefined(t.command)||Ic.is(t.command))}e.is=n})(Cl||={}),(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}e.create=t;function n(e){let t=e;return J.defined(t)&&J.uinteger(t.tabSize)&&J.boolean(t.insertSpaces)}e.is=n})(wl||={}),(function(e){function t(e,t,n){return{range:e,target:t,data:n}}e.create=t;function n(e){let t=e;return J.defined(t)&&K.is(t.range)&&(J.undefined(t.target)||J.string(t.target))}e.is=n})(Tl||={}),(function(e){function t(e,t){return{range:e,parent:t}}e.create=t;function n(t){let n=t;return J.objectLiteral(n)&&K.is(n.range)&&(n.parent===void 0||e.is(n.parent))}e.is=n})(El||={}),(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(Dl||={}),(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(Ol||={}),(function(e){function t(e){let t=e;return J.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}e.is=t})(kl||={}),(function(e){function t(e,t){return{range:e,text:t}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&J.string(t.text)}e.is=n})(Al||={}),(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&J.boolean(t.caseSensitiveLookup)&&(J.string(t.variableName)||t.variableName===void 0)}e.is=n})(jl||={}),(function(e){function t(e,t){return{range:e,expression:t}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&(J.string(t.expression)||t.expression===void 0)}e.is=n})(Ml||={}),(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}e.create=t;function n(e){let t=e;return J.defined(t)&&K.is(e.stoppedLocation)}e.is=n})(Nl||={}),(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}e.is=t})(Pl||={}),(function(e){function t(e){return{value:e}}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&(t.tooltip===void 0||J.string(t.tooltip)||$c.is(t.tooltip))&&(t.location===void 0||wc.is(t.location))&&(t.command===void 0||Ic.is(t.command))}e.is=n})(Fl||={}),(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return J.objectLiteral(t)&&G.is(t.position)&&(J.string(t.label)||J.typedArray(t.label,Fl.is))&&(t.kind===void 0||Pl.is(t.kind))&&t.textEdits===void 0||J.typedArray(t.textEdits,Lc.is)&&(t.tooltip===void 0||J.string(t.tooltip)||$c.is(t.tooltip))&&(t.paddingLeft===void 0||J.boolean(t.paddingLeft))&&(t.paddingRight===void 0||J.boolean(t.paddingRight))}e.is=n})(Il||={}),(function(e){function t(e){return{kind:`snippet`,value:e}}e.createSnippet=t})(Ll||={}),(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}e.create=t})(Rl||={}),(function(e){function t(e){return{items:e}}e.create=t})(zl||={}),(function(e){e.Invoked=0,e.Automatic=1})(Bl||={}),(function(e){function t(e,t){return{range:e,text:t}}e.create=t})(Vl||={}),(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}e.create=t})(Hl||={}),(function(e){function t(e){let t=e;return J.objectLiteral(t)&&xc.is(t.uri)&&J.string(t.name)}e.is=t})(Ul||={}),Wl=[` +`,`\r +`,`\r`],(function(e){function t(e,t,n,r){return new Kl(e,t,n,r)}e.create=t;function n(e){let t=e;return!!(J.defined(t)&&J.string(t.uri)&&(J.undefined(t.languageId)||J.string(t.languageId))&&J.uinteger(t.lineCount)&&J.func(t.getText)&&J.func(t.positionAt)&&J.func(t.offsetAt))}e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,c=0;for(;o0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return G.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return G.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1=0&&t.content.splice(n,1)}}addHiddenNodes(e){let t=[];for(let n of e){let e=new Xl(n.startOffset,n.image.length,Ut(n),n.tokenType,!0);e.root=this.rootNode,t.push(e)}let n=this.current,r=!1;if(n.content.length>0){n.content.push(...t);return}for(;n.container;){let e=n.container.content.indexOf(n);if(e>0){n.container.content.splice(e,0,...t),r=!0;break}n=n.container}r||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;typeof e.$type==`string`&&!e.$infixName&&(this.current.astNode=e),e.$cstNode=t;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},Yl=class{get hidden(){return!1}get astNode(){let e=typeof this._astNode?.$type==`string`?this._astNode:this.container?.astNode;if(!e)throw Error(`This node has no associated AST element`);return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},Xl=class extends Yl{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,n,r,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=r,this._length=t,this._range=n}},Zl=class extends Yl{constructor(){super(...arguments),this.content=new Ql(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){let{range:n}=e,{range:r}=t;this._rangeCache={start:n.start,end:r.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},Ql=class e extends Array{constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...n){return this.addParents(n),super.splice(e,t,...n)}addParents(e){for(let t of e)t.container=this.parent}},$l=class extends Zl{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text=``,this._text=e??``}},eu=Symbol(`Datatype`);function tu(e){return e.$type===eu}var nu=`​`,ru=e=>e.endsWith(nu)?e:e+nu,iu=class{constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,n=e.LanguageMetaData.mode===`production`;e.shared.profilers.LangiumProfiler?.isActive(`parsing`)?this.wrapper=new du(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask(`parsing`,e.LanguageMetaData.languageId)):this.wrapper=new uu(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},au=class extends iu{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Jl,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let n=this.computeRuleType(e),r;Ge(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(ru(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),ct(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,n=new Map;for(let t=0;t0&&(t=this.construct()),t===void 0)throw Error(`No result from parser`);if(this.stack.length>0)throw Error(`Parser stack is not empty after parsing`);return t}startImplementation(e,t,n){return r=>{let i=!this.isRecording()&&e!==void 0;if(i){let n={$type:e};this.stack.push(n),e===eu?n.value=``:t!==void 0&&(n.$infixName=t)}return n(r),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let n=e.startOffset;for(let e=0;en)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,n){let r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){let e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(r,n),{assignment:i,crossRef:a}=this.getAssignment(n),o=this.current;if(i){let e=Ze(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(tu(o)){let e=r.image;Ze(n)||(e=this.converter.convert(e,t).toString()),o.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset==`number`&&!isNaN(e.endOffset)}subrule(e,t,n,r,i){let a;!this.isRecording()&&!n&&(a=this.nodeBuilder.buildCompositeNode(r));let o;try{o=this.wrapper.wrapSubrule(e,t,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&a&&a.length>0&&this.performSubruleAssignment(o,r,a))}}performSubruleAssignment(e,t,n){let{assignment:r,crossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){let t=this.current;if(tu(t))t.value+=e.toString();else if(typeof e==`object`&&e){let n=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(n)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(n.$cstNode);let r={$type:e};this.stack.push(r),this.assign(t.operator,t.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),`$infixName`in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):tu(e)?this.converter.convert(e.value,e.$cstNode):(de(this.astReflection,e),e)}constructInfix(e,t){let n=e.parts;if(!Array.isArray(n)||n.length===0)return;let r=e.operators;if(!Array.isArray(r)||n.length<2)return n[0];let i=0,a=-1;for(let e=0;ea?(a=o.precedence,i=e):o.precedence===a&&(o.rightAssoc||(i=e))}let o=r.slice(0,i),s=r.slice(i+1),c=n.slice(0,i+1),l=n.slice(i+1),u={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:c,operators:o},d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:s},f=this.constructInfix(u,t),p=this.constructInfix(d,t);return{$type:e.$type,$cstNode:e.$cstNode,left:f,operator:r[i],right:p}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=se(e,Te);this.assignmentMap.set(e,{assignment:t,crossRef:t&&Ne(t.terminal)?t.terminal.isMulti?`multi`:`single`:void 0})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){let a=this.current,o;switch(o=i===`single`&&typeof n==`string`?this.linker.buildReference(a,t,r,n):i===`multi`&&typeof n==`string`?this.linker.buildMultiReference(a,t,r,n):n,e){case`=`:a[t]=o;break;case`?=`:a[t]=!0;break;case`+=`:Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];t===void 0?e[n]=r:Array.isArray(t)&&Array.isArray(r)&&(r.push(...t),e[n]=r)}let n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},ou=class{buildMismatchTokenMessage(e){return sa.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return sa.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return sa.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return sa.buildEarlyExitMessage(e)}},su=class extends ou{buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(`:KW`)?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},cu=class extends iu{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:`partial`});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let n=this.wrapper.DEFINE_RULE(ru(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},lu={recoveryEnabled:!0,nodeLocationTracking:`full`,skipValidations:!0,errorMessageProvider:new su},uu=class extends ps{constructor(e,t){let n=t&&`maxLookahead`in t;super(e,{...lu,lookaheadStrategy:n?new Do({maxLookahead:t.maxLookahead}):new qs({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,n){return this.RULE(e,t,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},du=class extends uu{constructor(e,t,n){super(e,t),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,n){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,n)}finally{this.task.stopSubTask(this.ruleName(t))}}};function fu(e,t,n){return pu({parser:t,tokens:n,ruleNames:new Map},e),t}function pu(e,t){let n=Tn(t,!1),r=O(t.rules).filter(ct).filter(e=>n.has(e));for(let t of r){let n={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(t,hu(n,t.definition))}let i=O(t.rules).filter(Ge).filter(e=>n.has(e));for(let t of i)e.parser.rule(t,mu(e,t))}function mu(e,t){let n=t.call.rule.ref;if(!n)throw Error(`Could not resolve reference to infix operator rule: `+t.call.rule.$refText);if(Tt(n))throw Error(`Cannot use terminal rule in infix expression`);let r=t.operators.precedences.flatMap(e=>e.operators),i={$type:`Group`,elements:[]},a={$container:i,$type:`Assignment`,feature:`parts`,operator:`+=`,terminal:t.call},o={$container:i,$type:`Group`,elements:[],cardinality:`*`};i.elements.push(a,o);let s={$container:o,$type:`Assignment`,feature:`operators`,operator:`+=`,terminal:{$type:`Alternatives`,elements:r}},c={...a,$container:o};o.elements.push(s,c);let l=r.map(t=>e.tokens[t.value]).map((t,n)=>({ALT:()=>e.parser.consume(n,t,s)})),u;return t=>{u??=Du(e,n),e.parser.subrule(0,u,!1,a,t),e.parser.many(0,{DEF:()=>{e.parser.alternatives(0,l),e.parser.subrule(1,u,!1,c,t)}})}}function hu(e,t,n=!1){let r;if(Ze(t))r=Tu(e,t);else if(ye(t))r=gu(e,t);else if(Te(t))r=hu(e,t.terminal);else if(Ne(t))r=wu(e,t);else if(ht(t))r=_u(e,t);else if(xe(t))r=bu(e,t);else if(Pt(t))r=xu(e,t);else if(Ve(t))r=Su(e,t);else if(Le(t)){let n=e.consume++;r=()=>e.parser.consume(n,ia,t)}else throw new Qt(t.$cstNode,`Unexpected element type: ${t.$type}`);return Eu(e,n?void 0:Cu(t),r,t.cardinality)}function gu(e,t){let n=Bn(t);return()=>e.parser.action(n,t)}function _u(e,t){let n=t.rule.ref;if(he(n)){let r=e.subrule++,i=ct(n)&&n.fragment,a=t.arguments.length>0?vu(n,t.arguments):()=>({}),o;return s=>{o??=Du(e,n),e.parser.subrule(r,o,i,t,a(s))}}else if(Tt(n)){let r=e.consume++,i=ku(e,n.name);return()=>e.parser.consume(r,i,t)}else if(n)$t(n);else throw new Qt(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function vu(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:yu(e.value)}));return t=>{let n={};for(let{parameterName:r,predicate:i}of e)r&&(n[r]=i(t));return n}}else{let n=t.map(e=>yu(e.value));return t=>{let r={};for(let i=0;it(e)||n(e)}else if(Me(e)){let t=yu(e.left),n=yu(e.right);return e=>t(e)&&n(e)}else if(nt(e)){let t=yu(e.value);return e=>!t(e)}else if(ot(e)){let t=e.parameter.ref.name;return e=>e!==void 0&&e[t]===!0}else if(De(e)){let t=!!e.true;return()=>t}$t(e)}function bu(e,t){if(t.elements.length===1)return hu(e,t.elements[0]);{let n=[];for(let r of t.elements){let t={ALT:hu(e,r,!0)},i=Cu(r);i&&(t.GATE=yu(i)),n.push(t)}let r=e.or++;return t=>e.parser.alternatives(r,n.map(e=>{let n={ALT:()=>e.ALT(t)},r=e.GATE;return r&&(n.GATE=()=>r(t)),n}))}}function xu(e,t){if(t.elements.length===1)return hu(e,t.elements[0]);let n=[];for(let r of t.elements){let t={ALT:hu(e,r,!0)},i=Cu(r);i&&(t.GATE=yu(i)),n.push(t)}let r=e.or++,i=(e,t)=>`uGroup_${e}_${t.getRuleStack().join(`-`)}`,a=Eu(e,Cu(t),t=>e.parser.alternatives(r,n.map((n,a)=>{let o={ALT:()=>!0},s=e.parser;o.ALT=()=>{if(n.ALT(t),!s.isRecording()){let e=i(r,s);s.unorderedGroups.get(e)||s.unorderedGroups.set(e,[]);let t=s.unorderedGroups.get(e);t?.[a]===void 0&&(t[a]=!0)}};let c=n.GATE;return c?o.GATE=()=>c(t):o.GATE=()=>!s.unorderedGroups.get(i(r,s))?.[a],o})),`*`);return t=>{a(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}function Su(e,t){let n=t.elements.map(t=>hu(e,t));return e=>n.forEach(t=>t(e))}function Cu(e){if(Ve(e))return e.guardCondition}function wu(e,t,n=t.terminal){if(!n){if(!t.type.ref)throw Error(`Could not resolve reference to type: `+t.type.$refText);let n=Fn(t.type.ref)?.terminal;if(!n)throw Error(`Could not find name assignment for type: `+Bn(t.type.ref));return wu(e,t,n)}else if(ht(n)&&ct(n.rule.ref)){let r=n.rule.ref,i=e.subrule++,a;return n=>{a??=Du(e,r),e.parser.subrule(i,a,!1,t,n)}}else if(ht(n)&&Tt(n.rule.ref)){let r=e.consume++,i=ku(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}else if(Ze(n)){let r=e.consume++,i=ku(e,n.value);return()=>e.parser.consume(r,i,t)}else throw Error(`Could not build cross reference parser`)}function Tu(e,t){let n=e.consume++,r=e.tokens[t.value];if(!r)throw Error(`Could not find token for keyword: `+t.value);return()=>e.parser.consume(n,r,t)}function Eu(e,t,n,r){let i=t&&yu(t);if(!r)if(i){let t=e.or++;return r=>e.parser.alternatives(t,[{ALT:()=>n(r),GATE:()=>i(r)},{ALT:ds(),GATE:()=>!i(r)}])}else return n;if(r===`*`){let t=e.many++;return r=>e.parser.many(t,{DEF:()=>n(r),GATE:i?()=>i(r):void 0})}else if(r===`+`){let t=e.many++;if(i){let r=e.or++;return a=>e.parser.alternatives(r,[{ALT:()=>e.parser.atLeastOne(t,{DEF:()=>n(a)}),GATE:()=>i(a)},{ALT:ds(),GATE:()=>!i(a)}])}else return r=>e.parser.atLeastOne(t,{DEF:()=>n(r)})}else if(r===`?`){let t=e.optional++;return r=>e.parser.optional(t,{DEF:()=>n(r),GATE:i?()=>i(r):void 0})}else $t(r)}function Du(e,t){let n=Ou(e,t),r=e.parser.getRule(n);if(!r)throw Error(`Rule "${n}" not found."`);return r}function Ou(e,t){if(he(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!ct(r);)(Ve(r)||xe(r)||Pt(r))&&(i=r.elements.indexOf(n).toString()+`:`+i),n=r,r=r.$container;return i=r.name+`:`+i,e.ruleNames.set(t,i),i}}function ku(e,t){let n=e.tokens[t];if(!n)throw Error(`Token "${t}" not found."`);return n}function Au(e){let t=e.Grammar,n=e.parser.Lexer,r=new cu(e);return fu(t,r,n.definition),r.finalize(),r}function ju(e){let t=Mu(e);return t.finalize(),t}function Mu(e){let t=e.Grammar,n=e.parser.Lexer;return fu(t,new au(e),n.definition)}var Nu=class{constructor(){this.diagnostics=[]}buildTokens(e,t){let n=O(Tn(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return i.push(...r),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Tt).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=Un(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n};return typeof n==`function`&&(r.LINE_BREAKS=!0),e.hidden&&(r.GROUP=yn(t)?Wi.SKIPPED:`hidden`),r}requiresCustomPattern(e){return!!(e.flags.includes(`u`)||e.flags.includes(`s`))}regexPatternFunction(e){let t=new RegExp(e,e.flags+`y`);return(e,n)=>(t.lastIndex=n,t.exec(e))}buildKeywordTokens(e,t,n){return e.filter(he).flatMap(e=>M(e).filter(Ze)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!n?.caseInsensitive))}buildKeywordToken(e,t,n){let r=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};return typeof r==`function`&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(bn(e.value),`i`):e.value}findLongerAlt(e,t){return t.reduce((t,n)=>{let r=n?.PATTERN;return r?.source&&xn(`^`+r.source+`$`,e.value)&&t.push(n),t},[])}},Pu=class{convert(e,t){let n=t.grammarSource;if(Ne(n)&&(n=Dn(n)),ht(n)){let r=n.rule.ref;if(!r)throw Error(`This cst node was not parsed by a rule.`);return this.runConverter(r,e,t)}return e}runConverter(e,t,n){switch(e.name.toUpperCase()){case`INT`:return Fu.convertInt(t);case`STRING`:return Fu.convertString(t);case`ID`:return Fu.convertID(t)}switch(Hn(e)?.toLowerCase()){case`number`:return Fu.convertNumber(t);case`boolean`:return Fu.convertBoolean(t);case`bigint`:return Fu.convertBigint(t);case`date`:return Fu.convertDate(t);default:return t}}},Fu;(function(e){function t(e){let t=``;for(let r=1;r{Object.defineProperty(e,`__esModule`,{value:!0});var t;function n(){if(t===void 0)throw Error(`No runtime abstraction layer installed`);return t}(function(e){function n(e){if(e===void 0)throw Error(`No runtime abstraction layer provided`);t=e}e.install=n})(n||={}),e.default=n})),Lu=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(e){return e===!0||e===!1}e.boolean=t;function n(e){return typeof e==`string`||e instanceof String}e.string=n;function r(e){return typeof e==`number`||e instanceof Number}e.number=r;function i(e){return e instanceof Error}e.error=i;function a(e){return typeof e==`function`}e.func=a;function o(e){return Array.isArray(e)}e.array=o;function s(e){return o(e)&&e.every(e=>n(e))}e.stringArray=s})),Ru=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Emitter=e.Event=void 0;var t=Iu(),n;(function(e){let t={dispose(){}};e.None=function(){return t}})(n||(e.Event=n={}));var r=class{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r{this._callbacks||=new r,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let a={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),a.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(a),a},this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&=(this._callbacks.dispose(),void 0)}};e.Emitter=i,i._noop=function(){}})),zu=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t=Iu(),n=Lu(),r=Ru(),i;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r.Event.None});function t(t){let r=t;return r&&(r===e.None||r===e.Cancelled||n.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(i||(e.CancellationToken=i={}));var a=Object.freeze(function(e,n){let r=(0,t.default)().timer.setTimeout(e.bind(n),0);return{dispose(){r.dispose()}}}),o=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||=new r.Emitter,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),void 0)}};e.CancellationTokenSource=class{get token(){return this._token||=new o,this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=i.None}}})),Y=i({});t(Y,r(zu(),1));function Bu(){return new Promise(e=>{typeof setImmediate>`u`?setTimeout(e,0):setImmediate(e)})}var Vu=0,Hu=10;function Uu(){return Vu=performance.now(),new Y.CancellationTokenSource}var Wu=Symbol(`OperationCancelled`);function Gu(e){return e===Wu}async function Ku(e){if(e===Y.CancellationToken.None)return;let t=performance.now();if(t-Vu>=Hu&&(Vu=t,await Bu(),Vu=performance.now()),e.isCancellationRequested)throw Wu}var qu=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},Ju=class e{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let n of t)if(e.isIncremental(n)){let e=$u(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),o=this._lineOffsets,s=Zu(n.text,!1,t);if(a-i===s.length)for(let e=0,t=s.length;ee?r=i:n=i+1}let i=n-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line];if(e.character<=0)return n;let r=e.line+1t&&Qu(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}static isFull(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}},Yu;(function(e){function t(e,t,n,r){return new Ju(e,t,n,r)}e.create=t;function n(e,t,n){if(e instanceof Ju)return e.update(t,n),e;throw Error(`TextDocument.update: document must be created by TextDocument.create`)}e.update=n;function r(e,t){let n=e.getText(),r=Xu(t.map(ed),(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(ri&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}e.applyEdits=r})(Yu||={});function Xu(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Xu(r,t),Xu(i,t);let a=0,o=0,s=0;for(;an.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function ed(e){let t=$u(e.range);return t===e.range?e:{newText:e.newText,range:t}}var td;(()=>{var e={975:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}var r={resolve:function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},normalize:function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},isAbsolute:function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,n=0;n0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;il){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>l&&(e.charCodeAt(i+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=i+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r}(0,e)},parse:function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(n.base=n.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(s,o),n.base=e.slice(s,c)),n.ext=e.slice(o,c)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>u,Utils:()=>ee}),typeof process==`object`?i=process.platform===`win32`:typeof navigator==`object`&&(i=navigator.userAgent.indexOf(`Windows`)>=0);let a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function c(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!a.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!o.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(s.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}let l=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=function(e,t){return e||t?e:`file`}(e,a),this.authority=t||``,this.path=function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t}(this.scheme,n||``),this.query=r||``,this.fragment=i||``,c(this,a))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new f(t,n,r,i,a)}static parse(e,t=!1){let n=l.exec(e);return n?new f(n[2]||``,b(n[4]||``),b(n[5]||``),b(n[7]||``),b(n[9]||``),t):new f(``,``,``,``,``)}static file(e){let t=``;if(i&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new f(`file`,t,e,``,``)}static from(e){let t=new f(e.scheme,e.authority,e.path,e.query,e.fragment);return c(t,!0),t}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{let t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}let d=i?1:void 0;class f extends u{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=g(this,!1),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||=_(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let p={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function m(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=p[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function h(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,`\\`)),n}function _(e,t){let n=t?h:m,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:m(c,!1,!1)),r}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}let y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(y)?e.replace(y,(e=>v(e))):e}var x=n(975);let S=x.posix||x;var ee;(function(e){e.joinPath=function(e,...t){return e.with({path:S.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=S.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=S.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return S.basename(e.path)},e.extname=function(e){return S.extname(e.path)}})(ee||={}),td=r})();var{URI:nd,Utils:rd}=td,id;(function(e){e.basename=rd.basename,e.dirname=rd.dirname,e.extname=rd.extname,e.joinPath=rd.joinPath,e.resolvePath=rd.resolvePath;let t=typeof process==`object`&&process?.platform===`win32`;function n(e,t){return e?.toString()===t?.toString()}e.equals=n;function r(e,n){let r=typeof e==`string`?nd.parse(e).path:e.path,i=typeof n==`string`?nd.parse(n).path:n.path,a=r.split(`/`).filter(e=>e.length>0),o=i.split(`/`).filter(e=>e.length>0);if(t){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),o[0]&&e.test(o[0])&&(o[0]=o[0].toLowerCase()),a[0]!==o[0])return i.substring(1)}let s=0;for(;s({name:e.name,uri:id.joinPath(nd.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(id.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let n=e.split(`/`);e.charAt(e.length-1)===`/`&&n.pop();let r=this.root;for(let e of n){let n=r.children.get(e);if(!n)if(t)n={name:e,children:new Map,parent:r},r.children.set(e,n);else return;r=n}return r}collectValues(e){let t=[];e.element&&t.push(e.element);for(let n of e.children.values())t.push(...this.collectValues(n));return t}},X;(function(e){e[e.Changed=0]=`Changed`,e[e.Parsed=1]=`Parsed`,e[e.IndexedContent=2]=`IndexedContent`,e[e.ComputedScopes=3]=`ComputedScopes`,e[e.Linked=4]=`Linked`,e[e.IndexedReferences=5]=`IndexedReferences`,e[e.Validated=6]=`Validated`})(X||={});var od=class{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=Y.CancellationToken.None){let n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,t)}fromTextDocument(e,t,n){return t??=nd.parse(e.uri),Y.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromString(e,t,n){return Y.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,n){if(typeof t==`string`){let r=this.parse(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}else if(`$model`in t){let n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}else{let r=this.parse(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}async createAsync(e,t,n){if(typeof t==`string`){let r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}else{let r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n)i={parseResult:e,uri:t,state:X.Parsed,references:[],textDocument:n};else{let n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:X.Parsed,references:[],get textDocument(){return n()}}}return e.value.$document=i,i}async update(e,t){let n=e.parseResult.value.$cstNode?.root.fullText,r=this.textDocuments?.get(e.uri.toString()),i=r?r.getText():await this.fileSystemProvider.readFile(e.uri);if(r)Object.defineProperty(e,`textDocument`,{value:r});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,`textDocument`,{get:t})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=X.Parsed,e}parse(e,t,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,n)}parseAsync(e,t,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){let n=this.serviceRegistry,r;return()=>r??=Yu.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??``)}},sd=class{constructor(e){this.documentTrie=new ad,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return O(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(n),n)}createDocument(e,t,n){if(n)return this.langiumDocumentFactory.fromString(t,e,n).then(e=>(this.addDocument(e),e));{let n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&this.documentBuilder().resetToState(n,X.Changed),n}deleteDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&(n.state=X.Changed,this.documentTrie.delete(t)),n}deleteDocuments(e){let t=e.toString(),n=this.documentTrie.findAll(t);for(let e of n)e.state=X.Changed;return this.documentTrie.delete(t),n}},cd=Symbol(`RefResolving`),ld=class{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=Y.CancellationToken.None){if(this.profiler?.isActive(`linking`)){let n=this.profiler.createTask(`linking`,this.languageId);n.start();try{for(let r of N(e.parseResult.value))await Ku(t),ue(r).forEach(t=>{let i=`${r.$type}:${t.property}`;n.startSubTask(i);try{this.doLink(t,e)}finally{n.stopSubTask(i)}})}finally{n.stop()}}else for(let n of N(e.parseResult.value))await Ku(t),ue(n).forEach(t=>this.doLink(t,e))}doLink(e,t){let n=e.reference;if(`_ref`in n&&n._ref===void 0){n._ref=cd;try{let t=this.getCandidate(e);S(t)?n._ref=t:(n._nodeDescription=t,n._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(t){console.error(`An error occurred while resolving reference to '${n.$refText}':`,t);let r=t.message??String(t);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${r}`}}t.references.push(n)}else if(`_items`in n&&n._items===void 0){n._items=cd;try{let t=this.getCandidates(e),r=[];if(S(t))n._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&r.push({ref:t,$nodeDescription:e})}n._items=r}catch(t){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${t}`},n._items=[]}t.references.push(n)}}unlink(e){for(let t of e.references)`_ref`in t?(t._ref=void 0,delete t._nodeDescription):`_items`in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,n,r){let i=this,a={$refNode:n,$refText:r,_ref:void 0,get ref(){if(v(this._ref))return this._ref;if(x(this._nodeDescription)){let n=i.loadAstNode(this._nodeDescription);this._ref=n??i.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){this._ref=cd;let n=A(e).$document,r=i.getLinkedNode({reference:a,container:e,property:t});if(r.error&&n&&n.state0))return this._linkingError=i.createLinkingError({reference:a,container:e,property:t})}};return a}throwCyclicReferenceError(e,t,n){throw Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${n}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if(S(t))return{error:t};let n=this.loadAstNode(t);return n?{node:n,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);let n=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let n=A(e.container).$document;return n&&n.stateNe(e)&&e.isMulti)}findDeclarations(e){if(e){let t=Pn(e),n=e.astNode;if(t&&n){let r=n[t.feature];if(y(r)||b(r))return j(r);if(Array.isArray(r)){for(let t of r)if((y(t)||b(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return j(t)}}if(n){let t=this.nameProvider.getNameNode(n);if(t&&(t===e||Ht(e,t)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(t.head());if(n){for(let t of ue(n))if(b(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&n.push(t)}return n}findReferences(e,t){let n=[];t.includeDeclaration&&n.push(...this.getSelfReferences(e));let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter(e=>id.equals(e.sourceUri,t.documentUri))),n.push(...r),O(n)}getSelfReferences(e){let t=this.getSelfNodes(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let r=k(e),i=this.nodeLocator.getAstNodePath(e);n.push({sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Wt(t),local:!0})}}return n}},pd=class{constructor(e){if(this.map=new Map,e)for(let[t,n]of e)this.add(t,n)}get size(){return ae.sum(O(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let n=this.map.get(e);if(n){let r=n.indexOf(t);if(r>=0)return n.length===1?this.map.delete(e):n.splice(r,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?O(t):re}has(e,t){if(t===void 0)return this.map.has(e);{let n=this.map.get(e);return n?n.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,n)=>t.forEach(t=>e(t,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return O(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return O(this.map.keys())}values(){return O(this.map.values()).flat()}entriesGroupedByKey(){return O(this.map.entries())}},md=class{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,n]of e)this.set(t,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t===void 0?!1:(this.map.delete(e),this.inverse.delete(t),!0)}},hd=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=Y.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,n=ce,r=Y.CancellationToken.None){let i=[];this.addExportedSymbol(e,i,t);for(let a of n(e))await Ku(r),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,n){let r=this.nameProvider.getName(e);r&&t.push(this.descriptions.createDescription(e,r,n))}async collectLocalSymbols(e,t=Y.CancellationToken.None){let n=e.parseResult.value,r=new pd;for(let i of M(n))await Ku(t),this.addLocalSymbol(i,e,r);return r}addLocalSymbol(e,t,n){let r=e.$container;if(r){let i=this.nameProvider.getName(e);i&&n.add(r,this.descriptions.createDescription(e,i,t))}}},gd=class{constructor(e,t,n){this.elements=e,this.outerScope=t,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},_d=class{constructor(e,t,n){this.elements=new pd,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return(this.concatOuterScope||n.length===0)&&this.outerScope?O(n).concat(this.outerScope.getElements(e)):O(n)}getAllElements(){let e=O(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},vd=class{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error(`This cache has already been disposed`)}},yd=class extends vd{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let n=t();return this.cache.set(e,n),n}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},bd=class extends vd{constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed(),this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();let r=this.cacheForContext(e);if(r.has(t))return r.get(t);if(n){let e=n();return r.set(t,e),e}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),n=this.cache.get(t);return n||(n=new Map,this.cache.set(t,n)),n}},xd=class extends yd{constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},Sd=class{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new xd(e.shared)}getScope(e){let t=[],n=this.reflection.getReferenceType(e),r=k(e.container).localSymbols;if(r){let i=e.container;do r.has(i)&&t.push(r.getStream(i).filter(e=>this.reflection.isSubtype(e.type,n))),i=i.$container;while(i)}let i=this.getGlobalScope(n,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,n){return new gd(O(e),t,n)}createScopeForNodes(e,t,n){return new gd(O(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new _d(this.indexManager.allElements(e)))}};function Cd(e){return typeof e.$comment==`string`}function wd(e){return typeof e==`object`&&!!e&&(`$ref`in e||`$error`in e)}var Td=class{constructor(e){this.ignoreProperties=new Set([`$container`,`$containerProperty`,`$containerIndex`,`$document`,`$cstNode`]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let n=t??{},r=t?.replacer,i=(e,t)=>this.replacer(e,t,n),a=r?(e,t)=>r(e,t,i):i;try{return this.currentDocument=k(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let n=t??{},r=JSON.parse(e);return this.linkNode(r,r,n),r}replacer(e,t,{refText:n,sourceText:r,textRegions:i,comments:a,uriConverter:o}){if(!this.ignoreProperties.has(e))if(y(t)){let e=t.ref,r=n?t.$refText:void 0;if(e){let t=k(e),n=``;this.currentDocument&&this.currentDocument!==t&&(n=o?o(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${n}#${i}`,$refText:r}}else return{$error:t.error?.message??`Could not resolve reference`,$refText:r}}else if(b(t)){let e=n?t.$refText:void 0,r=[];for(let e of t.items){let t=e.ref,n=k(e.ref),i=``;this.currentDocument&&this.currentDocument!==n&&(i=o?o(n.uri,t):n.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);r.push(`${i}#${a}`)}return{$refs:r,$refText:e}}else if(v(t)){let n;if(i&&(n=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&n?.$textRegion&&(n.$textRegion.documentURI=this.currentDocument?.uri.toString())),r&&!e&&(n??={...t},n.$sourceText=t.$cstNode?.text),a){n??={...t};let e=this.commentProvider.getComment(t);e&&(n.$comment=e.replace(/\r/g,``))}return n??t}else return t}addAstNodeRegionWithAssignmentsTo(e){let t=e=>({offset:e.offset,end:e.end,length:e.length,range:e.range});if(e.$cstNode){let n=e.$textRegion=t(e.$cstNode),r=n.assignments={};return Object.keys(e).filter(e=>!e.startsWith(`$`)).forEach(n=>{let i=kn(e.$cstNode,n).map(t);i.length!==0&&(r[n]=i)}),e}}linkNode(e,t,n,r,i,a){for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a{await this.handleException(()=>e.call(t,n,r,i),`An error occurred during validation`,r,n)}}async handleException(e,t,n,r){try{await e()}catch(e){if(Gu(e))throw e;console.error(`${t}:`,e),e instanceof Error&&e.stack&&console.error(e.stack),n(`error`,`${t}: ${e instanceof Error?e.message:String(e)}`,{node:r})}}addEntry(e,t){if(e===`AstNode`){this.entries.add(`AstNode`,t);return}for(let n of this.reflection.getAllSubTypes(e))this.entries.add(n,t)}getChecks(e,t){let n=O(this.entries.get(e)).concat(this.entries.get(`AstNode`));return t&&(n=n.filter(e=>t.includes(e.category))),n.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,`An error occurred during set-up of the validation`,t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,`An error occurred during tear-down of the validation`,t))}wrapPreparationException(e,t,n){return async(r,i,a,o)=>{await this.handleException(()=>e.call(n,r,i,a,o),t,i,r)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},Ad=Object.freeze({validateNode:!0,validateChildren:!0}),jd=class{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},n=Y.CancellationToken.None){let r=e.parseResult,i=[];if(await Ku(n),(!t.categories||t.categories.includes(`built-in`))&&(this.processLexingErrors(r,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===Fd.LexingError)||(this.processParsingErrors(r,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===Fd.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===Fd.LinkingError))))return i;try{i.push(...await this.validateAst(r.value,t,n))}catch(e){if(Gu(e))throw e;console.error(`An error occurred during validation:`,e)}return await Ku(n),i}processLexingErrors(e,t,n){let r=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let e of r){let n=e.severity??`error`,r={severity:Nd(n),range:{start:{line:e.line-1,character:e.column-1},end:{line:e.line-1,character:e.column+e.length-1}},message:e.message,data:Pd(n),source:this.getSource()};t.push(r)}}processParsingErrors(e,t,n){for(let n of e.parserErrors){let e;if(isNaN(n.token.startOffset)){if(`previousToken`in n){let t=n.previousToken;if(isNaN(t.startOffset)){let t={line:0,character:0};e={start:t,end:t}}else{let n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}}}else e=Ut(n.token);if(e){let r={severity:Nd(`error`),range:e,message:n.message,data:Dd(Fd.ParsingError),source:this.getSource()};t.push(r)}}}processLinkingErrors(e,t,n){for(let n of e.references){let e=n.error;if(e){let r={node:e.info.container,range:n.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:Fd.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic(`error`,e.message,r))}}}async validateAst(e,t,n=Y.CancellationToken.None){let r=[],i=(e,t,n)=>{r.push(this.toDiagnostic(e,t,n))};return await this.validateAstBefore(e,t,i,n),await this.validateAstNodes(e,t,i,n),await this.validateAstAfter(e,t,i,n),r}async validateAstBefore(e,t,n,r=Y.CancellationToken.None){let i=this.validationRegistry.checksBefore;for(let a of i)await Ku(r),await a(e,n,t.categories??[],r)}async validateAstNodes(e,t,n,r=Y.CancellationToken.None){if(this.profiler?.isActive(`validating`)){let i=this.profiler.createTask(`validating`,this.languageId);i.start();try{let a=N(e).iterator();for(let e of a){i.startSubTask(e.$type);let o=this.validateSingleNodeOptions(e,t);if(o.validateNode)try{let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}finally{i.stopSubTask(e.$type)}o.validateChildren||a.prune()}}finally{i.stop()}}else{let i=N(e).iterator();for(let e of i){await Ku(r);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode){let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return Ad}async validateAstAfter(e,t,n,r=Y.CancellationToken.None){let i=this.validationRegistry.checksAfter;for(let a of i)await Ku(r),await a(e,n,t.categories??[],r)}toDiagnostic(e,t,n){return{message:t,range:Md(n),severity:Nd(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};function Md(e){if(e.range)return e.range;let t;return typeof e.property==`string`?t=An(e.node.$cstNode,e.property,e.index):typeof e.keyword==`string`&&(t=Mn(e.node.$cstNode,e.keyword,e.index)),t??=e.node.$cstNode,t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Nd(e){switch(e){case`error`:return 1;case`warning`:return 2;case`info`:return 3;case`hint`:return 4;default:throw Error(`Invalid diagnostic severity: `+e)}}function Pd(e){switch(e){case`error`:return Dd(Fd.LexingError);case`warning`:return Dd(Fd.LexingWarning);case`info`:return Dd(Fd.LexingInfo);case`hint`:return Dd(Fd.LexingHint);default:throw Error(`Invalid diagnostic severity: `+e)}}var Fd;(function(e){e.LexingError=`lexing-error`,e.LexingWarning=`lexing-warning`,e.LexingInfo=`lexing-info`,e.LexingHint=`lexing-hint`,e.ParsingError=`parsing-error`,e.LinkingError=`linking-error`})(Fd||={});var Id=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,n){let r=n??k(e);t??=this.nameProvider.getName(e);let i=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${i} has no name.`);let a,o=()=>a??=Wt(this.nameProvider.getNameNode(e)??e.$cstNode);return{node:e,name:t,get nameSegment(){return o()},selectionSegment:Wt(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}},Ld=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=Y.CancellationToken.None){let n=[],r=e.parseResult.value;for(let e of N(r))await Ku(t),ue(e).forEach(e=>{e.reference.error||n.push(...this.createInfoDescriptions(e))});return n}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let n=[];y(t)&&t.$nodeDescription?n=[t.$nodeDescription]:b(t)&&(n=t.items.map(e=>e.$nodeDescription).filter(e=>e!==void 0));let r=k(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],o=Wt(t.$refNode);for(let e of n)a.push({sourceUri:r,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:o,local:id.equals(e.documentUri,r)});return a}},Rd=class{constructor(){this.segmentSeparator=`/`,this.indexSeparator=`@`}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return t+this.segmentSeparator+n}return``}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error(`Missing '$containerProperty' in AST node.`);return t===void 0?e:e+this.indexSeparator+t}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||t.length===0)return e;let n=t.indexOf(this.indexSeparator);if(n>0){let r=t.substring(0,n),i=parseInt(t.substring(n+1));return e[r]?.[i]}return e[t]},e)}},zd=i({});t(zd,r(Ru(),1));var Bd=class{constructor(e){this._ready=new qu,this.onConfigurationSectionUpdateEmitter=new zd.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,n[t])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!=`object`||e.settings===null||Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let n=this.toSectionName(e);if(this.settings[n])return this.settings[n][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},Vd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t=Lu(),n;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(n||(e.ErrorCodes=n={})),e.ResponseError=class e extends Error{constructor(r,i,a){super(i),this.code=t.number(r)?r:n.UnknownErrorCode,this.data=a,Object.setPrototypeOf(this,e.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};var r=class e{constructor(e){this.kind=e}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};e.ParameterStructures=r,r.auto=new r(`auto`),r.byPosition=new r(`byPosition`),r.byName=new r(`byName`);var i=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return r.auto}};e.AbstractMessageSignature=i,e.RequestType0=class extends i{constructor(e){super(e,0)}},e.RequestType=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends i{constructor(e){super(e,2)}},e.RequestType3=class extends i{constructor(e){super(e,3)}},e.RequestType4=class extends i{constructor(e){super(e,4)}},e.RequestType5=class extends i{constructor(e){super(e,5)}},e.RequestType6=class extends i{constructor(e){super(e,6)}},e.RequestType7=class extends i{constructor(e){super(e,7)}},e.RequestType8=class extends i{constructor(e){super(e,8)}},e.RequestType9=class extends i{constructor(e){super(e,9)}},e.NotificationType=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends i{constructor(e){super(e,0)}},e.NotificationType1=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends i{constructor(e){super(e,2)}},e.NotificationType3=class extends i{constructor(e){super(e,3)}},e.NotificationType4=class extends i{constructor(e){super(e,4)}},e.NotificationType5=class extends i{constructor(e){super(e,5)}},e.NotificationType6=class extends i{constructor(e){super(e,6)}},e.NotificationType7=class extends i{constructor(e){super(e,7)}},e.NotificationType8=class extends i{constructor(e){super(e,8)}},e.NotificationType9=class extends i{constructor(e){super(e,9)}};var a;(function(e){function n(e){let n=e;return n&&t.string(n.method)&&(t.string(n.id)||t.number(n.id))}e.isRequest=n;function r(e){let n=e;return n&&t.string(n.method)&&e.id===void 0}e.isNotification=r;function i(e){let n=e;return n&&(n.result!==void 0||!!n.error)&&(t.string(n.id)||t.number(n.id)||n.id===null)}e.isResponse=i})(a||(e.Message=a={}))})),Hd=a((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var n;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(n||(e.Touch=n={}));var r=class{constructor(){this[t]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){let r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.key,done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}values(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.value,done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}entries(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:[t.key,t.value],done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(!(t!==n.First&&t!==n.Last)){if(t===n.First){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}};e.LinkedMap=r,e.LRUCache=class extends r{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}})),Ud=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Disposable=void 0;var t;(function(e){function t(e){return{dispose:e}}e.create=t})(t||(e.Disposable=t={}))})),Wd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=zu(),n;(function(e){e.Continue=0,e.Cancelled=1})(n||={}),e.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=n.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,n.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};var r=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===n.Cancelled}get onCancellationRequested(){throw Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}},i=class{constructor(e){this.token=new r(e)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{constructor(){this.kind=`request`}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new t.CancellationTokenSource:new i(n)}}})),Gd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Semaphore=void 0;var t=Iu();e.Semaphore=class{constructor(e=1){if(e<=0)throw Error(`Capacity must be greater than 0`);this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error(`To many thunks active`);try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}})),Kd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t=Iu(),n=Lu(),r=Ru(),i=Gd(),a;(function(e){function t(e){let t=e;return t&&n.func(t.listen)&&n.func(t.dispose)&&n.func(t.onError)&&n.func(t.onClose)&&n.func(t.onPartialMessage)}e.is=t})(a||(e.MessageReader=a={}));var o=class{constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter,this.partialMessageEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageReader=o;var s;(function(e){function n(e){let n,r,i=new Map,a,o=new Map;if(e===void 0||typeof e==`string`)n=e??`utf-8`;else{if(n=e.charset??`utf-8`,e.contentDecoder!==void 0&&(r=e.contentDecoder,i.set(r.name,r)),e.contentDecoders!==void 0)for(let t of e.contentDecoders)i.set(t.name,t);if(e.contentTypeDecoder!==void 0&&(a=e.contentTypeDecoder,o.set(a.name,a)),e.contentTypeDecoders!==void 0)for(let t of e.contentTypeDecoders)o.set(t.name,t)}return a===void 0&&(a=(0,t.default)().applicationJson.decoder,o.set(a.name,a)),{charset:n,contentDecoder:r,contentDecoders:i,contentTypeDecoder:a,contentTypeDecoders:o}}e.fromOptions=n})(s||={}),e.ReadableStreamMessageReader=class extends o{constructor(e,n){super(),this.readable=e,this.options=s.fromOptions(n),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get(`content-length`);if(!t){this.fireError(Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));return}let n=parseInt(t);if(isNaN(n)){this.fireError(Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=n}let e=this.buffer.tryReadBody(this.nextMessageLength);if(e===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=this.options.contentDecoder===void 0?e:await this.options.contentDecoder.decode(e),n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&=(this.partialMessageTimer.dispose(),void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}})),qd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t=Iu(),n=Lu(),r=Gd(),i=Ru(),a=`Content-Length: `,o=`\r +`,s;(function(e){function t(e){let t=e;return t&&n.func(t.dispose)&&n.func(t.onClose)&&n.func(t.onError)&&n.func(t.write)}e.is=t})(s||(e.MessageWriter=s={}));var c=class{constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageWriter=c;var l;(function(e){function n(e){return e===void 0||typeof e==`string`?{charset:e??`utf-8`,contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:e.charset??`utf-8`,contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}e.fromOptions=n})(l||={}),e.WriteableStreamMessageWriter=class extends c{constructor(e,t){super(),this.writable=e,this.options=l.fromOptions(t),this.errorCount=0,this.writeSemaphore=new r.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>this.options.contentEncoder===void 0?e:this.options.contentEncoder.encode(e)).then(t=>{let n=[];return n.push(a,t.byteLength.toString(),o),n.push(o),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(``),`ascii`),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}})),Jd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,n=10,r=`\r +`;e.AbstractMessageBuffer=class{constructor(e=`utf-8`){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e==`string`?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let i=0,a=0,o=0,s=0;row:for(;athis._totalLength)throw Error(`Cannot read so many bytes!`);if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}let t=this.allocNative(e),n=0;for(;e>0;){let r=this._chunks[0];if(r.byteLength>e){let i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}})),Yd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t=Iu(),n=Lu(),r=Vd(),i=Hd(),a=Ru(),o=zu(),s;(function(e){e.type=new r.NotificationType(`$/cancelRequest`)})(s||={});var c;(function(e){function t(e){return typeof e==`string`||typeof e==`number`}e.is=t})(c||(e.ProgressToken=c={}));var l;(function(e){e.type=new r.NotificationType(`$/progress`)})(l||={}),e.ProgressType=class{constructor(){}};var u;(function(e){function t(e){return n.func(e)}e.is=t})(u||={}),e.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var d;(function(e){e[e.Off=0]=`Off`,e[e.Messages=1]=`Messages`,e[e.Compact=2]=`Compact`,e[e.Verbose=3]=`Verbose`})(d||(e.Trace=d={}));var f;(function(e){e.Off=`off`,e.Messages=`messages`,e.Compact=`compact`,e.Verbose=`verbose`})(f||(e.TraceValues=f={})),(function(e){function t(t){if(!n.string(t))return e.Off;switch(t=t.toLowerCase(),t){case`off`:return e.Off;case`messages`:return e.Messages;case`compact`:return e.Compact;case`verbose`:return e.Verbose;default:return e.Off}}e.fromString=t;function r(t){switch(t){case e.Off:return`off`;case e.Messages:return`messages`;case e.Compact:return`compact`;case e.Verbose:return`verbose`;default:return`off`}}e.toString=r})(d||(e.Trace=d={}));var p;(function(e){e.Text=`text`,e.JSON=`json`})(p||(e.TraceFormat=p={})),(function(e){function t(t){return n.string(t)?(t=t.toLowerCase(),t===`json`?e.JSON:e.Text):e.Text}e.fromString=t})(p||(e.TraceFormat=p={}));var m;(function(e){e.type=new r.NotificationType(`$/setTrace`)})(m||(e.SetTraceNotification=m={}));var h;(function(e){e.type=new r.NotificationType(`$/logTrace`)})(h||(e.LogTraceNotification=h={}));var g;(function(e){e[e.Closed=1]=`Closed`,e[e.Disposed=2]=`Disposed`,e[e.AlreadyListening=3]=`AlreadyListening`})(g||(e.ConnectionErrors=g={}));var _=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=_;var v;(function(e){function t(e){let t=e;return t&&n.func(t.cancelUndispatched)}e.is=t})(v||(e.ConnectionStrategy=v={}));var y;(function(e){function t(e){let t=e;return t&&(t.kind===void 0||t.kind===`id`)&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}e.is=t})(y||(e.IdCancellationReceiverStrategy=y={}));var b;(function(e){function t(e){let t=e;return t&&t.kind===`request`&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}e.is=t})(b||(e.RequestCancellationReceiverStrategy=b={}));var x;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new o.CancellationTokenSource}});function t(e){return y.is(e)||b.is(e)}e.is=t})(x||(e.CancellationReceiverStrategy=x={}));var S;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(s.type,{id:t})},cleanup(e){}});function t(e){let t=e;return t&&n.func(t.sendCancellation)&&n.func(t.cleanup)}e.is=t})(S||(e.CancellationSenderStrategy=S={}));var ee;(function(e){e.Message=Object.freeze({receiver:x.Message,sender:S.Message});function t(e){let t=e;return t&&x.is(t.receiver)&&S.is(t.sender)}e.is=t})(ee||(e.CancellationStrategy=ee={}));var C;(function(e){function t(e){let t=e;return t&&n.func(t.handleMessage)}e.is=t})(C||(e.MessageStrategy=C={}));var w;(function(e){function t(e){let t=e;return t&&(ee.is(t.cancellationStrategy)||v.is(t.connectionStrategy)||C.is(t.messageStrategy))}e.is=t})(w||(e.ConnectionOptions=w={}));var T;(function(e){e[e.New=1]=`New`,e[e.Listening=2]=`Listening`,e[e.Closed=3]=`Closed`,e[e.Disposed=4]=`Disposed`})(T||={});function te(f,v,b,x){let S=b===void 0?e.NullLogger:b,w=0,te=0,ne=0,E,re=new Map,D,O=new Map,ie=new Map,ae,oe=new i.LinkedMap,se=new Map,k=new Set,A=new Map,j=d.Off,ce=p.Text,M,N=T.New,le=new a.Emitter,ue=new a.Emitter,de=new a.Emitter,fe=new a.Emitter,P=new a.Emitter,pe=x&&x.cancellationStrategy?x.cancellationStrategy:ee.Message;function me(e){if(e===null)throw Error(`Can't send requests with id null since the response can't be correlated.`);return`req-`+e.toString()}function he(e){return e===null?`res-unknown-`+(++ne).toString():`res-`+e.toString()}function ge(){return`not-`+(++te).toString()}function _e(e,t){r.Message.isRequest(t)?e.set(me(t.id),t):r.Message.isResponse(t)?e.set(he(t.id),t):e.set(ge(),t)}function ve(e){}function ye(){return N===T.Listening}function be(){return N===T.Closed}function xe(){return N===T.Disposed}function Se(){(N===T.New||N===T.Listening)&&(N=T.Closed,ue.fire(void 0))}function Ce(e){le.fire([e,void 0,void 0])}function we(e){le.fire(e)}f.onClose(Se),f.onError(Ce),v.onClose(Se),v.onError(we);function Te(){ae||oe.size===0||(ae=(0,t.default)().timer.setImmediate(()=>{ae=void 0,De()}))}function Ee(e){r.Message.isRequest(e)?ke(e):r.Message.isNotification(e)?je(e):r.Message.isResponse(e)?Ae(e):Me(e)}function De(){if(oe.size===0)return;let e=oe.shift();try{let t=x?.messageStrategy;C.is(t)?t.handleMessage(e,Ee):Ee(e)}finally{Te()}}let Oe=e=>{try{if(r.Message.isNotification(e)&&e.method===s.type.method){let t=e.params.id,n=me(t),i=oe.get(n);if(r.Message.isRequest(i)){let r=x?.connectionStrategy,a=r&&r.cancelUndispatched?r.cancelUndispatched(i,ve):void 0;if(a&&(a.error!==void 0||a.result!==void 0)){oe.delete(n),A.delete(t),a.id=i.id,Fe(a,e.method,Date.now()),v.write(a).catch(()=>S.error(`Sending response for canceled message failed.`));return}}let a=A.get(t);if(a!==void 0){a.cancel(),Le(e);return}else k.add(t)}_e(oe,e)}finally{Te()}};function ke(e){if(xe())return;function t(t,n,i){let a={jsonrpc:`2.0`,id:e.id};t instanceof r.ResponseError?a.error=t.toJson():a.result=t===void 0?null:t,Fe(a,n,i),v.write(a).catch(()=>S.error(`Sending response failed.`))}function i(t,n,r){let i={jsonrpc:`2.0`,id:e.id,error:t.toJson()};Fe(i,n,r),v.write(i).catch(()=>S.error(`Sending response failed.`))}function a(t,n,r){t===void 0&&(t=null);let i={jsonrpc:`2.0`,id:e.id,result:t};Fe(i,n,r),v.write(i).catch(()=>S.error(`Sending response failed.`))}Ie(e);let o=re.get(e.method),s,c;o&&(s=o.type,c=o.handler);let l=Date.now();if(c||E){let o=e.id??String(Date.now()),u=y.is(pe.receiver)?pe.receiver.createCancellationTokenSource(o):pe.receiver.createCancellationTokenSource(e);e.id!==null&&k.has(e.id)&&u.cancel(),e.id!==null&&A.set(o,u);try{let d;if(c)if(e.params===void 0){if(s!==void 0&&s.numberOfParams!==0){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines ${s.numberOfParams} params but received none.`),e.method,l);return}d=c(u.token)}else if(Array.isArray(e.params)){if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byName){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,l);return}d=c(...e.params,u.token)}else{if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byPosition){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,l);return}d=c(e.params,u.token)}else E&&(d=E(e.method,e.params,u.token));let f=d;d?f.then?f.then(n=>{A.delete(o),t(n,e.method,l)},t=>{A.delete(o),t instanceof r.ResponseError?i(t,e.method,l):t&&n.string(t.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}):(A.delete(o),t(d,e.method,l)):(A.delete(o),a(d,e.method,l))}catch(a){A.delete(o),a instanceof r.ResponseError?t(a,e.method,l):a&&n.string(a.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${a.message}`),e.method,l):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}}else i(new r.ResponseError(r.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,l)}function Ae(e){if(!xe())if(e.id===null)e.error?S.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):S.error(`Received response message without id. No further error information provided.`);else{let t=e.id,n=se.get(t);if(Re(e,n),n!==void 0){se.delete(t);try{if(e.error){let t=e.error;n.reject(new r.ResponseError(t.code,t.message,t.data))}else if(e.result!==void 0)n.resolve(e.result);else throw Error(`Should never happen.`)}catch(e){e.message?S.error(`Response handler '${n.method}' failed with message: ${e.message}`):S.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function je(e){if(xe())return;let t,n;if(e.method===s.type.method){let t=e.params.id;k.delete(t),Le(e);return}else{let r=O.get(e.method);r&&(n=r.handler,t=r.type)}if(n||D)try{if(Le(e),n)if(e.params===void 0)t!==void 0&&t.numberOfParams!==0&&t.parameterStructures!==r.ParameterStructures.byName&&S.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){let i=e.params;e.method===l.type.method&&i.length===2&&c.is(i[0])?n({token:i[0],value:i[1]}):(t!==void 0&&(t.parameterStructures===r.ParameterStructures.byName&&S.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&S.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),n(...i))}else t!==void 0&&t.parameterStructures===r.ParameterStructures.byPosition&&S.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else D&&D(e.method,e.params)}catch(t){t.message?S.error(`Notification handler '${e.method}' failed with message: ${t.message}`):S.error(`Notification handler '${e.method}' failed unexpectedly.`)}else de.fire(e)}function Me(e){if(!e){S.error(`Received empty message.`);return}S.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);let t=e;if(n.string(t.id)||n.number(t.id)){let e=t.id,n=se.get(e);n&&n.reject(Error(`The received response has neither a result nor an error property.`))}}function F(e){if(e!=null)switch(j){case d.Verbose:return JSON.stringify(e,null,4);case d.Compact:return JSON.stringify(e);default:return}}function Ne(e){if(!(j===d.Off||!M))if(ce===p.Text){let t;(j===d.Verbose||j===d.Compact)&&e.params&&(t=`Params: ${F(e.params)}\n\n`),M.log(`Sending request '${e.method} - (${e.id})'.`,t)}else ze(`send-request`,e)}function Pe(e){if(!(j===d.Off||!M))if(ce===p.Text){let t;(j===d.Verbose||j===d.Compact)&&(t=e.params?`Params: ${F(e.params)}\n\n`:`No parameters provided. + +`),M.log(`Sending notification '${e.method}'.`,t)}else ze(`send-notification`,e)}function Fe(e,t,n){if(!(j===d.Off||!M))if(ce===p.Text){let r;(j===d.Verbose||j===d.Compact)&&(e.error&&e.error.data?r=`Error data: ${F(e.error.data)}\n\n`:e.result?r=`Result: ${F(e.result)}\n\n`:e.error===void 0&&(r=`No result returned. + +`)),M.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else ze(`send-response`,e)}function Ie(e){if(!(j===d.Off||!M))if(ce===p.Text){let t;(j===d.Verbose||j===d.Compact)&&e.params&&(t=`Params: ${F(e.params)}\n\n`),M.log(`Received request '${e.method} - (${e.id})'.`,t)}else ze(`receive-request`,e)}function Le(e){if(!(j===d.Off||!M||e.method===h.type.method))if(ce===p.Text){let t;(j===d.Verbose||j===d.Compact)&&(t=e.params?`Params: ${F(e.params)}\n\n`:`No parameters provided. + +`),M.log(`Received notification '${e.method}'.`,t)}else ze(`receive-notification`,e)}function Re(e,t){if(!(j===d.Off||!M))if(ce===p.Text){let n;if((j===d.Verbose||j===d.Compact)&&(e.error&&e.error.data?n=`Error data: ${F(e.error.data)}\n\n`:e.result?n=`Result: ${F(e.result)}\n\n`:e.error===void 0&&(n=`No result returned. + +`)),t){let r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;M.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else M.log(`Received response ${e.id} without active response promise.`,n)}else ze(`receive-response`,e)}function ze(e,t){if(!M||j===d.Off)return;let n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};M.log(n)}function Be(){if(be())throw new _(g.Closed,`Connection is closed.`);if(xe())throw new _(g.Disposed,`Connection is disposed.`)}function Ve(){if(ye())throw new _(g.AlreadyListening,`Connection is already listening`)}function He(){if(!ye())throw Error(`Call listen() first.`)}function Ue(e){return e===void 0?null:e}function We(e){if(e!==null)return e}function Ge(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}function Ke(e,t){switch(e){case r.ParameterStructures.auto:return Ge(t)?We(t):[Ue(t)];case r.ParameterStructures.byName:if(!Ge(t))throw Error(`Received parameters by name but param is not an object literal.`);return We(t);case r.ParameterStructures.byPosition:return[Ue(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}function qe(e,t){let n,r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=Ke(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{Be();let i,a;if(n.string(e)){i=e;let n=t[0],o=0,s=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(o=1,s=n);let c=t.length,l=c-o;switch(l){case 0:a=void 0;break;case 1:a=Ke(s,t[o]);break;default:if(s===r.ParameterStructures.byName)throw Error(`Received ${l} parameters for 'by Name' notification parameter structure.`);a=t.slice(o,c).map(e=>Ue(e));break}}else{let n=t;i=e.method,a=qe(e,n)}let o={jsonrpc:`2.0`,method:i,params:a};return Pe(o),v.write(o).catch(e=>{throw S.error(`Sending notification failed.`),e})},onNotification:(e,t)=>{Be();let r;return n.func(e)?D=e:t&&(n.string(e)?(r=e,O.set(e,{type:void 0,handler:t})):(r=e.method,O.set(e.method,{type:e,handler:t}))),{dispose:()=>{r===void 0?D=void 0:O.delete(r)}}},onProgress:(e,t,n)=>{if(ie.has(t))throw Error(`Progress handler for token ${t} already registered`);return ie.set(t,n),{dispose:()=>{ie.delete(t)}}},sendProgress:(e,t,n)=>Je.sendNotification(l.type,{token:t,value:n}),onUnhandledProgress:fe.event,sendRequest:(e,...t)=>{Be(),He();let i,a,s;if(n.string(e)){i=e;let n=t[0],c=t[t.length-1],l=0,u=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(l=1,u=n);let d=t.length;o.CancellationToken.is(c)&&(--d,s=c);let f=d-l;switch(f){case 0:a=void 0;break;case 1:a=Ke(u,t[l]);break;default:if(u===r.ParameterStructures.byName)throw Error(`Received ${f} parameters for 'by Name' request parameter structure.`);a=t.slice(l,d).map(e=>Ue(e));break}}else{let n=t;i=e.method,a=qe(e,n);let r=e.numberOfParams;s=o.CancellationToken.is(n[r])?n[r]:void 0}let c=w++,l;s&&(l=s.onCancellationRequested(()=>{let e=pe.sender.sendCancellation(Je,c);return e===void 0?(S.log(`Received no promise from cancellation strategy when cancelling id ${c}`),Promise.resolve()):e.catch(()=>{S.log(`Sending cancellation messages for id ${c} failed`)})}));let u={jsonrpc:`2.0`,id:c,method:i,params:a};return Ne(u),typeof pe.sender.enableCancellation==`function`&&pe.sender.enableCancellation(u),new Promise(async(e,t)=>{let n={method:i,timerStart:Date.now(),resolve:t=>{e(t),pe.sender.cleanup(c),l?.dispose()},reject:e=>{t(e),pe.sender.cleanup(c),l?.dispose()}};try{await v.write(u),se.set(c,n)}catch(e){throw S.error(`Sending request failed.`),n.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,e.message?e.message:`Unknown reason`)),e}})},onRequest:(e,t)=>{Be();let r=null;return u.is(e)?(r=void 0,E=e):n.string(e)?(r=null,t!==void 0&&(r=e,re.set(e,{handler:t,type:void 0}))):t!==void 0&&(r=e.method,re.set(e.method,{type:e,handler:t})),{dispose:()=>{r!==null&&(r===void 0?E=void 0:re.delete(r))}}},hasPendingResponse:()=>se.size>0,trace:async(e,t,r)=>{let i=!1,a=p.Text;r!==void 0&&(n.boolean(r)?i=r:(i=r.sendNotification||!1,a=r.traceFormat||p.Text)),j=e,ce=a,M=j===d.Off?void 0:t,i&&!be()&&!xe()&&await Je.sendNotification(m.type,{value:d.toString(e)})},onError:le.event,onClose:ue.event,onUnhandledNotification:de.event,onDispose:P.event,end:()=>{v.end()},dispose:()=>{if(xe())return;N=T.Disposed,P.fire(void 0);let e=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,`Pending response rejected since connection got disposed`);for(let t of se.values())t.reject(e);se=new Map,A=new Map,k=new Set,oe=new i.LinkedMap,n.func(v.dispose)&&v.dispose(),n.func(f.dispose)&&f.dispose()},listen:()=>{Be(),Ve(),N=T.Listening,f.listen(Oe)},inspect:()=>{(0,t.default)().console.log(`inspect`)}};return Je.onNotification(h.type,e=>{if(j===d.Off||!M)return;let t=j===d.Verbose||j===d.Compact;M.log(e.message,t?e.verbose:void 0)}),Je.onNotification(l.type,e=>{let t=ie.get(e.token);t?t(e.value):fe.fire(e)}),Je}e.createMessageConnection=te})),Xd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=Vd();Object.defineProperty(e,`Message`,{enumerable:!0,get:function(){return t.Message}}),Object.defineProperty(e,`RequestType`,{enumerable:!0,get:function(){return t.RequestType}}),Object.defineProperty(e,`RequestType0`,{enumerable:!0,get:function(){return t.RequestType0}}),Object.defineProperty(e,`RequestType1`,{enumerable:!0,get:function(){return t.RequestType1}}),Object.defineProperty(e,`RequestType2`,{enumerable:!0,get:function(){return t.RequestType2}}),Object.defineProperty(e,`RequestType3`,{enumerable:!0,get:function(){return t.RequestType3}}),Object.defineProperty(e,`RequestType4`,{enumerable:!0,get:function(){return t.RequestType4}}),Object.defineProperty(e,`RequestType5`,{enumerable:!0,get:function(){return t.RequestType5}}),Object.defineProperty(e,`RequestType6`,{enumerable:!0,get:function(){return t.RequestType6}}),Object.defineProperty(e,`RequestType7`,{enumerable:!0,get:function(){return t.RequestType7}}),Object.defineProperty(e,`RequestType8`,{enumerable:!0,get:function(){return t.RequestType8}}),Object.defineProperty(e,`RequestType9`,{enumerable:!0,get:function(){return t.RequestType9}}),Object.defineProperty(e,`ResponseError`,{enumerable:!0,get:function(){return t.ResponseError}}),Object.defineProperty(e,`ErrorCodes`,{enumerable:!0,get:function(){return t.ErrorCodes}}),Object.defineProperty(e,`NotificationType`,{enumerable:!0,get:function(){return t.NotificationType}}),Object.defineProperty(e,`NotificationType0`,{enumerable:!0,get:function(){return t.NotificationType0}}),Object.defineProperty(e,`NotificationType1`,{enumerable:!0,get:function(){return t.NotificationType1}}),Object.defineProperty(e,`NotificationType2`,{enumerable:!0,get:function(){return t.NotificationType2}}),Object.defineProperty(e,`NotificationType3`,{enumerable:!0,get:function(){return t.NotificationType3}}),Object.defineProperty(e,`NotificationType4`,{enumerable:!0,get:function(){return t.NotificationType4}}),Object.defineProperty(e,`NotificationType5`,{enumerable:!0,get:function(){return t.NotificationType5}}),Object.defineProperty(e,`NotificationType6`,{enumerable:!0,get:function(){return t.NotificationType6}}),Object.defineProperty(e,`NotificationType7`,{enumerable:!0,get:function(){return t.NotificationType7}}),Object.defineProperty(e,`NotificationType8`,{enumerable:!0,get:function(){return t.NotificationType8}}),Object.defineProperty(e,`NotificationType9`,{enumerable:!0,get:function(){return t.NotificationType9}}),Object.defineProperty(e,`ParameterStructures`,{enumerable:!0,get:function(){return t.ParameterStructures}});var n=Hd();Object.defineProperty(e,`LinkedMap`,{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(e,`LRUCache`,{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(e,`Touch`,{enumerable:!0,get:function(){return n.Touch}});var r=Ud();Object.defineProperty(e,`Disposable`,{enumerable:!0,get:function(){return r.Disposable}});var i=Ru();Object.defineProperty(e,`Event`,{enumerable:!0,get:function(){return i.Event}}),Object.defineProperty(e,`Emitter`,{enumerable:!0,get:function(){return i.Emitter}});var a=zu();Object.defineProperty(e,`CancellationTokenSource`,{enumerable:!0,get:function(){return a.CancellationTokenSource}}),Object.defineProperty(e,`CancellationToken`,{enumerable:!0,get:function(){return a.CancellationToken}});var o=Wd();Object.defineProperty(e,`SharedArraySenderStrategy`,{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(e,`SharedArrayReceiverStrategy`,{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});var s=Kd();Object.defineProperty(e,`MessageReader`,{enumerable:!0,get:function(){return s.MessageReader}}),Object.defineProperty(e,`AbstractMessageReader`,{enumerable:!0,get:function(){return s.AbstractMessageReader}}),Object.defineProperty(e,`ReadableStreamMessageReader`,{enumerable:!0,get:function(){return s.ReadableStreamMessageReader}});var c=qd();Object.defineProperty(e,`MessageWriter`,{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(e,`AbstractMessageWriter`,{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(e,`WriteableStreamMessageWriter`,{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});var l=Jd();Object.defineProperty(e,`AbstractMessageBuffer`,{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});var u=Yd();Object.defineProperty(e,`ConnectionStrategy`,{enumerable:!0,get:function(){return u.ConnectionStrategy}}),Object.defineProperty(e,`ConnectionOptions`,{enumerable:!0,get:function(){return u.ConnectionOptions}}),Object.defineProperty(e,`NullLogger`,{enumerable:!0,get:function(){return u.NullLogger}}),Object.defineProperty(e,`createMessageConnection`,{enumerable:!0,get:function(){return u.createMessageConnection}}),Object.defineProperty(e,`ProgressToken`,{enumerable:!0,get:function(){return u.ProgressToken}}),Object.defineProperty(e,`ProgressType`,{enumerable:!0,get:function(){return u.ProgressType}}),Object.defineProperty(e,`Trace`,{enumerable:!0,get:function(){return u.Trace}}),Object.defineProperty(e,`TraceValues`,{enumerable:!0,get:function(){return u.TraceValues}}),Object.defineProperty(e,`TraceFormat`,{enumerable:!0,get:function(){return u.TraceFormat}}),Object.defineProperty(e,`SetTraceNotification`,{enumerable:!0,get:function(){return u.SetTraceNotification}}),Object.defineProperty(e,`LogTraceNotification`,{enumerable:!0,get:function(){return u.LogTraceNotification}}),Object.defineProperty(e,`ConnectionErrors`,{enumerable:!0,get:function(){return u.ConnectionErrors}}),Object.defineProperty(e,`ConnectionError`,{enumerable:!0,get:function(){return u.ConnectionError}}),Object.defineProperty(e,`CancellationReceiverStrategy`,{enumerable:!0,get:function(){return u.CancellationReceiverStrategy}}),Object.defineProperty(e,`CancellationSenderStrategy`,{enumerable:!0,get:function(){return u.CancellationSenderStrategy}}),Object.defineProperty(e,`CancellationStrategy`,{enumerable:!0,get:function(){return u.CancellationStrategy}}),Object.defineProperty(e,`MessageStrategy`,{enumerable:!0,get:function(){return u.MessageStrategy}}),e.RAL=Iu().default})),Zd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Xd(),n=class e extends t.AbstractMessageBuffer{constructor(e=`utf-8`){super(e),this.asciiDecoder=new TextDecoder(`ascii`)}emptyBuffer(){return e.emptyBuffer}fromString(e,t){return new TextEncoder().encode(e)}toString(e,t){return t===`ascii`?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}};n.emptyBuffer=new Uint8Array;var r=class{constructor(e){this.socket=e,this._onData=new t.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then(e=>{this._onData.fire(new Uint8Array(e))},()=>{(0,t.RAL)().console.error(`Converting blob to array buffer failed.`)})},this.socket.addEventListener(`message`,this._messageListener)}onClose(e){return this.socket.addEventListener(`close`,e),t.Disposable.create(()=>this.socket.removeEventListener(`close`,e))}onError(e){return this.socket.addEventListener(`error`,e),t.Disposable.create(()=>this.socket.removeEventListener(`error`,e))}onEnd(e){return this.socket.addEventListener(`end`,e),t.Disposable.create(()=>this.socket.removeEventListener(`end`,e))}onData(e){return this._onData.event(e)}},i=class{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener(`close`,e),t.Disposable.create(()=>this.socket.removeEventListener(`close`,e))}onError(e){return this.socket.addEventListener(`error`,e),t.Disposable.create(()=>this.socket.removeEventListener(`error`,e))}onEnd(e){return this.socket.addEventListener(`end`,e),t.Disposable.create(()=>this.socket.removeEventListener(`end`,e))}write(e,t){if(typeof e==`string`){if(t!==void 0&&t!==`utf-8`)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},a=new TextEncoder,o=Object.freeze({messageBuffer:Object.freeze({create:e=>new n(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:`application/json`,encode:(e,t)=>{if(t.charset!==`utf-8`)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(a.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:`application/json`,decode:(e,t)=>{if(!(e instanceof Uint8Array))throw Error(`In a Browser environments only Uint8Arrays are supported.`);return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new r(e),asWritableStream:e=>new i(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function s(){return o}(function(e){function n(){t.RAL.install(o)}e.install=n})(s||={}),e.default=s})),Qd=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,Zd().default.install();var r=Xd();n(Xd(),e),e.BrowserMessageReader=class extends r.AbstractMessageReader{constructor(e){super(),this._onData=new r.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener(`error`,e=>this.fireError(e)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}},e.BrowserMessageWriter=class extends r.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener(`error`,e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};function i(e,t,n,i){return n===void 0&&(n=r.NullLogger),r.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,r.createMessageConnection)(e,t,n,i)}e.createMessageConnection=i})),$d=a(((e,t)=>{t.exports=Qd()})),Z=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t=Qd(),n;(function(e){e.clientToServer=`clientToServer`,e.serverToClient=`serverToClient`,e.both=`both`})(n||(e.MessageDirection=n={})),e.RegistrationType=class{constructor(e){this.method=e}},e.ProtocolRequestType0=class extends t.RequestType0{constructor(e){super(e)}},e.ProtocolRequestType=class extends t.RequestType{constructor(e){super(e,t.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends t.NotificationType0{constructor(e){super(e)}},e.ProtocolNotificationType=class extends t.NotificationType{constructor(e){super(e,t.ParameterStructures.byName)}}})),ef=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(e){return e===!0||e===!1}e.boolean=t;function n(e){return typeof e==`string`||e instanceof String}e.string=n;function r(e){return typeof e==`number`||e instanceof Number}e.number=r;function i(e){return e instanceof Error}e.error=i;function a(e){return typeof e==`function`}e.func=a;function o(e){return Array.isArray(e)}e.array=o;function s(e){return o(e)&&e.every(e=>n(e))}e.stringArray=s;function c(e,t){return Array.isArray(e)&&e.every(t)}e.typedArray=c;function l(e){return typeof e==`object`&&!!e}e.objectLiteral=l})),tf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ImplementationRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/implementation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ImplementationRequest=n={}))})),nf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeDefinitionRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/typeDefinition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeDefinitionRequest=n={}))})),rf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=Z(),n;(function(e){e.method=`workspace/workspaceFolders`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(n||(e.WorkspaceFoldersRequest=n={}));var r;(function(e){e.method=`workspace/didChangeWorkspaceFolders`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(r||(e.DidChangeWorkspaceFoldersNotification=r={}))})),af=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigurationRequest=void 0;var t=Z(),n;(function(e){e.method=`workspace/configuration`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ConfigurationRequest=n={}))})),of=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/documentColor`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DocumentColorRequest=n={}));var r;(function(e){e.method=`textDocument/colorPresentation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.ColorPresentationRequest=r={}))})),sf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/foldingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.FoldingRangeRequest=n={}));var r;(function(e){e.method=`workspace/foldingRange/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.FoldingRangeRefreshRequest=r={}))})),cf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DeclarationRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/declaration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DeclarationRequest=n={}))})),lf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SelectionRangeRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/selectionRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.SelectionRangeRequest=n={}))})),uf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=Qd(),n=Z(),r;(function(e){e.type=new t.ProgressType;function n(t){return t===e.type}e.is=n})(r||(e.WorkDoneProgress=r={}));var i;(function(e){e.method=`window/workDoneProgress/create`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)})(i||(e.WorkDoneProgressCreateRequest=i={}));var a;(function(e){e.method=`window/workDoneProgress/cancel`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(a||(e.WorkDoneProgressCancelNotification=a={}))})),df=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/prepareCallHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.CallHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`callHierarchy/incomingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.CallHierarchyIncomingCallsRequest=r={}));var i;(function(e){e.method=`callHierarchy/outgoingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.CallHierarchyOutgoingCallsRequest=i={}))})),ff=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=Z(),n;(function(e){e.Relative=`relative`})(n||(e.TokenFormat=n={}));var r;(function(e){e.method=`textDocument/semanticTokens`,e.type=new t.RegistrationType(e.method)})(r||(e.SemanticTokensRegistrationType=r={}));var i;(function(e){e.method=`textDocument/semanticTokens/full`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(i||(e.SemanticTokensRequest=i={}));var a;(function(e){e.method=`textDocument/semanticTokens/full/delta`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(a||(e.SemanticTokensDeltaRequest=a={}));var o;(function(e){e.method=`textDocument/semanticTokens/range`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(o||(e.SemanticTokensRangeRequest=o={}));var s;(function(e){e.method=`workspace/semanticTokens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(s||(e.SemanticTokensRefreshRequest=s={}))})),pf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ShowDocumentRequest=void 0;var t=Z(),n;(function(e){e.method=`window/showDocument`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ShowDocumentRequest=n={}))})),mf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/linkedEditingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.LinkedEditingRangeRequest=n={}))})),hf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=Z(),n;(function(e){e.file=`file`,e.folder=`folder`})(n||(e.FileOperationPatternKind=n={}));var r;(function(e){e.method=`workspace/willCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.WillCreateFilesRequest=r={}));var i;(function(e){e.method=`workspace/didCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(i||(e.DidCreateFilesNotification=i={}));var a;(function(e){e.method=`workspace/willRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(a||(e.WillRenameFilesRequest=a={}));var o;(function(e){e.method=`workspace/didRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(o||(e.DidRenameFilesNotification=o={}));var s;(function(e){e.method=`workspace/didDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(s||(e.DidDeleteFilesNotification=s={}));var c;(function(e){e.method=`workspace/willDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(c||(e.WillDeleteFilesRequest=c={}))})),gf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=Z(),n;(function(e){e.document=`document`,e.project=`project`,e.group=`group`,e.scheme=`scheme`,e.global=`global`})(n||(e.UniquenessLevel=n={}));var r;(function(e){e.$import=`import`,e.$export=`export`,e.local=`local`})(r||(e.MonikerKind=r={}));var i;(function(e){e.method=`textDocument/moniker`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.MonikerRequest=i={}))})),_f=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/prepareTypeHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`typeHierarchy/supertypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.TypeHierarchySupertypesRequest=r={}));var i;(function(e){e.method=`typeHierarchy/subtypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.TypeHierarchySubtypesRequest=i={}))})),vf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/inlineValue`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlineValueRequest=n={}));var r;(function(e){e.method=`workspace/inlineValue/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.InlineValueRefreshRequest=r={}))})),yf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/inlayHint`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlayHintRequest=n={}));var r;(function(e){e.method=`inlayHint/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.InlayHintResolveRequest=r={}));var i;(function(e){e.method=`workspace/inlayHint/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(i||(e.InlayHintRefreshRequest=i={}))})),bf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t=Qd(),n=ef(),r=Z(),i;(function(e){function t(e){let t=e;return t&&n.boolean(t.retriggerRequest)}e.is=t})(i||(e.DiagnosticServerCancellationData=i={}));var a;(function(e){e.Full=`full`,e.Unchanged=`unchanged`})(a||(e.DocumentDiagnosticReportKind=a={}));var o;(function(e){e.method=`textDocument/diagnostic`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolRequestType(e.method),e.partialResult=new t.ProgressType})(o||(e.DocumentDiagnosticRequest=o={}));var s;(function(e){e.method=`workspace/diagnostic`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolRequestType(e.method),e.partialResult=new t.ProgressType})(s||(e.WorkspaceDiagnosticRequest=s={}));var c;(function(e){e.method=`workspace/diagnostic/refresh`,e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType0(e.method)})(c||(e.DiagnosticRefreshRequest=c={}))})),xf=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;var n=(ql(),e(yc)),r=ef(),i=Z(),a;(function(e){e.Markup=1,e.Code=2;function t(e){return e===1||e===2}e.is=t})(a||(t.NotebookCellKind=a={}));var o;(function(e){function t(e,t){let n={executionOrder:e};return(t===!0||t===!1)&&(n.success=t),n}e.create=t;function i(e){let t=e;return r.objectLiteral(t)&&n.uinteger.is(t.executionOrder)&&(t.success===void 0||r.boolean(t.success))}e.is=i;function a(e,t){return e===t?!0:e==null||t==null?!1:e.executionOrder===t.executionOrder&&e.success===t.success}e.equals=a})(o||(t.ExecutionSummary=o={}));var s;(function(e){function t(e,t){return{kind:e,document:t}}e.create=t;function i(e){let t=e;return r.objectLiteral(t)&&a.is(t.kind)&&n.DocumentUri.is(t.document)&&(t.metadata===void 0||r.objectLiteral(t.metadata))}e.is=i;function s(e,t){let n=new Set;return e.document!==t.document&&n.add(`document`),e.kind!==t.kind&&n.add(`kind`),e.executionSummary!==t.executionSummary&&n.add(`executionSummary`),(e.metadata!==void 0||t.metadata!==void 0)&&!c(e.metadata,t.metadata)&&n.add(`metadata`),(e.executionSummary!==void 0||t.executionSummary!==void 0)&&!o.equals(e.executionSummary,t.executionSummary)&&n.add(`executionSummary`),n}e.diff=s;function c(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`)return!1;let n=Array.isArray(e),i=Array.isArray(t);if(n!==i)return!1;if(n&&i){if(e.length!==t.length)return!1;for(let n=0;n{Object.defineProperty(e,`__esModule`,{value:!0}),e.InlineCompletionRequest=void 0;var t=Z(),n;(function(e){e.method=`textDocument/inlineCompletion`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlineCompletionRequest=n={}))})),Cf=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=void 0;var n=Z(),r=(ql(),e(yc)),i=ef(),a=tf();Object.defineProperty(t,`ImplementationRequest`,{enumerable:!0,get:function(){return a.ImplementationRequest}});var o=nf();Object.defineProperty(t,`TypeDefinitionRequest`,{enumerable:!0,get:function(){return o.TypeDefinitionRequest}});var s=rf();Object.defineProperty(t,`WorkspaceFoldersRequest`,{enumerable:!0,get:function(){return s.WorkspaceFoldersRequest}}),Object.defineProperty(t,`DidChangeWorkspaceFoldersNotification`,{enumerable:!0,get:function(){return s.DidChangeWorkspaceFoldersNotification}});var c=af();Object.defineProperty(t,`ConfigurationRequest`,{enumerable:!0,get:function(){return c.ConfigurationRequest}});var l=of();Object.defineProperty(t,`DocumentColorRequest`,{enumerable:!0,get:function(){return l.DocumentColorRequest}}),Object.defineProperty(t,`ColorPresentationRequest`,{enumerable:!0,get:function(){return l.ColorPresentationRequest}});var u=sf();Object.defineProperty(t,`FoldingRangeRequest`,{enumerable:!0,get:function(){return u.FoldingRangeRequest}}),Object.defineProperty(t,`FoldingRangeRefreshRequest`,{enumerable:!0,get:function(){return u.FoldingRangeRefreshRequest}});var d=cf();Object.defineProperty(t,`DeclarationRequest`,{enumerable:!0,get:function(){return d.DeclarationRequest}});var f=lf();Object.defineProperty(t,`SelectionRangeRequest`,{enumerable:!0,get:function(){return f.SelectionRangeRequest}});var p=uf();Object.defineProperty(t,`WorkDoneProgress`,{enumerable:!0,get:function(){return p.WorkDoneProgress}}),Object.defineProperty(t,`WorkDoneProgressCreateRequest`,{enumerable:!0,get:function(){return p.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,`WorkDoneProgressCancelNotification`,{enumerable:!0,get:function(){return p.WorkDoneProgressCancelNotification}});var m=df();Object.defineProperty(t,`CallHierarchyIncomingCallsRequest`,{enumerable:!0,get:function(){return m.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,`CallHierarchyOutgoingCallsRequest`,{enumerable:!0,get:function(){return m.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,`CallHierarchyPrepareRequest`,{enumerable:!0,get:function(){return m.CallHierarchyPrepareRequest}});var h=ff();Object.defineProperty(t,`TokenFormat`,{enumerable:!0,get:function(){return h.TokenFormat}}),Object.defineProperty(t,`SemanticTokensRequest`,{enumerable:!0,get:function(){return h.SemanticTokensRequest}}),Object.defineProperty(t,`SemanticTokensDeltaRequest`,{enumerable:!0,get:function(){return h.SemanticTokensDeltaRequest}}),Object.defineProperty(t,`SemanticTokensRangeRequest`,{enumerable:!0,get:function(){return h.SemanticTokensRangeRequest}}),Object.defineProperty(t,`SemanticTokensRefreshRequest`,{enumerable:!0,get:function(){return h.SemanticTokensRefreshRequest}}),Object.defineProperty(t,`SemanticTokensRegistrationType`,{enumerable:!0,get:function(){return h.SemanticTokensRegistrationType}});var g=pf();Object.defineProperty(t,`ShowDocumentRequest`,{enumerable:!0,get:function(){return g.ShowDocumentRequest}});var _=mf();Object.defineProperty(t,`LinkedEditingRangeRequest`,{enumerable:!0,get:function(){return _.LinkedEditingRangeRequest}});var v=hf();Object.defineProperty(t,`FileOperationPatternKind`,{enumerable:!0,get:function(){return v.FileOperationPatternKind}}),Object.defineProperty(t,`DidCreateFilesNotification`,{enumerable:!0,get:function(){return v.DidCreateFilesNotification}}),Object.defineProperty(t,`WillCreateFilesRequest`,{enumerable:!0,get:function(){return v.WillCreateFilesRequest}}),Object.defineProperty(t,`DidRenameFilesNotification`,{enumerable:!0,get:function(){return v.DidRenameFilesNotification}}),Object.defineProperty(t,`WillRenameFilesRequest`,{enumerable:!0,get:function(){return v.WillRenameFilesRequest}}),Object.defineProperty(t,`DidDeleteFilesNotification`,{enumerable:!0,get:function(){return v.DidDeleteFilesNotification}}),Object.defineProperty(t,`WillDeleteFilesRequest`,{enumerable:!0,get:function(){return v.WillDeleteFilesRequest}});var y=gf();Object.defineProperty(t,`UniquenessLevel`,{enumerable:!0,get:function(){return y.UniquenessLevel}}),Object.defineProperty(t,`MonikerKind`,{enumerable:!0,get:function(){return y.MonikerKind}}),Object.defineProperty(t,`MonikerRequest`,{enumerable:!0,get:function(){return y.MonikerRequest}});var b=_f();Object.defineProperty(t,`TypeHierarchyPrepareRequest`,{enumerable:!0,get:function(){return b.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,`TypeHierarchySubtypesRequest`,{enumerable:!0,get:function(){return b.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,`TypeHierarchySupertypesRequest`,{enumerable:!0,get:function(){return b.TypeHierarchySupertypesRequest}});var x=vf();Object.defineProperty(t,`InlineValueRequest`,{enumerable:!0,get:function(){return x.InlineValueRequest}}),Object.defineProperty(t,`InlineValueRefreshRequest`,{enumerable:!0,get:function(){return x.InlineValueRefreshRequest}});var S=yf();Object.defineProperty(t,`InlayHintRequest`,{enumerable:!0,get:function(){return S.InlayHintRequest}}),Object.defineProperty(t,`InlayHintResolveRequest`,{enumerable:!0,get:function(){return S.InlayHintResolveRequest}}),Object.defineProperty(t,`InlayHintRefreshRequest`,{enumerable:!0,get:function(){return S.InlayHintRefreshRequest}});var ee=bf();Object.defineProperty(t,`DiagnosticServerCancellationData`,{enumerable:!0,get:function(){return ee.DiagnosticServerCancellationData}}),Object.defineProperty(t,`DocumentDiagnosticReportKind`,{enumerable:!0,get:function(){return ee.DocumentDiagnosticReportKind}}),Object.defineProperty(t,`DocumentDiagnosticRequest`,{enumerable:!0,get:function(){return ee.DocumentDiagnosticRequest}}),Object.defineProperty(t,`WorkspaceDiagnosticRequest`,{enumerable:!0,get:function(){return ee.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,`DiagnosticRefreshRequest`,{enumerable:!0,get:function(){return ee.DiagnosticRefreshRequest}});var C=xf();Object.defineProperty(t,`NotebookCellKind`,{enumerable:!0,get:function(){return C.NotebookCellKind}}),Object.defineProperty(t,`ExecutionSummary`,{enumerable:!0,get:function(){return C.ExecutionSummary}}),Object.defineProperty(t,`NotebookCell`,{enumerable:!0,get:function(){return C.NotebookCell}}),Object.defineProperty(t,`NotebookDocument`,{enumerable:!0,get:function(){return C.NotebookDocument}}),Object.defineProperty(t,`NotebookDocumentSyncRegistrationType`,{enumerable:!0,get:function(){return C.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,`DidOpenNotebookDocumentNotification`,{enumerable:!0,get:function(){return C.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,`NotebookCellArrayChange`,{enumerable:!0,get:function(){return C.NotebookCellArrayChange}}),Object.defineProperty(t,`DidChangeNotebookDocumentNotification`,{enumerable:!0,get:function(){return C.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,`DidSaveNotebookDocumentNotification`,{enumerable:!0,get:function(){return C.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,`DidCloseNotebookDocumentNotification`,{enumerable:!0,get:function(){return C.DidCloseNotebookDocumentNotification}});var w=Sf();Object.defineProperty(t,`InlineCompletionRequest`,{enumerable:!0,get:function(){return w.InlineCompletionRequest}});var T;(function(e){function t(e){let t=e;return i.string(t)||i.string(t.language)||i.string(t.scheme)||i.string(t.pattern)}e.is=t})(T||(t.TextDocumentFilter=T={}));var te;(function(e){function t(e){let t=e;return i.objectLiteral(t)&&(i.string(t.notebookType)||i.string(t.scheme)||i.string(t.pattern))}e.is=t})(te||(t.NotebookDocumentFilter=te={}));var ne;(function(e){function t(e){let t=e;return i.objectLiteral(t)&&(i.string(t.notebook)||te.is(t.notebook))&&(t.language===void 0||i.string(t.language))}e.is=t})(ne||(t.NotebookCellTextDocumentFilter=ne={}));var E;(function(e){function t(e){if(!Array.isArray(e))return!1;for(let t of e)if(!i.string(t)&&!T.is(t)&&!ne.is(t))return!1;return!0}e.is=t})(E||(t.DocumentSelector=E={}));var re;(function(e){e.method=`client/registerCapability`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)})(re||(t.RegistrationRequest=re={}));var D;(function(e){e.method=`client/unregisterCapability`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)})(D||(t.UnregistrationRequest=D={}));var O;(function(e){e.Create=`create`,e.Rename=`rename`,e.Delete=`delete`})(O||(t.ResourceOperationKind=O={}));var ie;(function(e){e.Abort=`abort`,e.Transactional=`transactional`,e.TextOnlyTransactional=`textOnlyTransactional`,e.Undo=`undo`})(ie||(t.FailureHandlingKind=ie={}));var ae;(function(e){e.UTF8=`utf-8`,e.UTF16=`utf-16`,e.UTF32=`utf-32`})(ae||(t.PositionEncodingKind=ae={}));var oe;(function(e){function t(e){let t=e;return t&&i.string(t.id)&&t.id.length>0}e.hasId=t})(oe||(t.StaticRegistrationOptions=oe={}));var se;(function(e){function t(e){let t=e;return t&&(t.documentSelector===null||E.is(t.documentSelector))}e.is=t})(se||(t.TextDocumentRegistrationOptions=se={}));var k;(function(e){function t(e){let t=e;return i.objectLiteral(t)&&(t.workDoneProgress===void 0||i.boolean(t.workDoneProgress))}e.is=t;function n(e){let t=e;return t&&i.boolean(t.workDoneProgress)}e.hasWorkDoneProgress=n})(k||(t.WorkDoneProgressOptions=k={}));var A;(function(e){e.method=`initialize`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(A||(t.InitializeRequest=A={}));var j;(function(e){e.unknownProtocolVersion=1})(j||(t.InitializeErrorCodes=j={}));var ce;(function(e){e.method=`initialized`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(ce||(t.InitializedNotification=ce={}));var M;(function(e){e.method=`shutdown`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType0(e.method)})(M||(t.ShutdownRequest=M={}));var N;(function(e){e.method=`exit`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType0(e.method)})(N||(t.ExitNotification=N={}));var le;(function(e){e.method=`workspace/didChangeConfiguration`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(le||(t.DidChangeConfigurationNotification=le={}));var ue;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(ue||(t.MessageType=ue={}));var de;(function(e){e.method=`window/showMessage`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolNotificationType(e.method)})(de||(t.ShowMessageNotification=de={}));var fe;(function(e){e.method=`window/showMessageRequest`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)})(fe||(t.ShowMessageRequest=fe={}));var P;(function(e){e.method=`window/logMessage`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolNotificationType(e.method)})(P||(t.LogMessageNotification=P={}));var pe;(function(e){e.method=`telemetry/event`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolNotificationType(e.method)})(pe||(t.TelemetryEventNotification=pe={}));var me;(function(e){e.None=0,e.Full=1,e.Incremental=2})(me||(t.TextDocumentSyncKind=me={}));var he;(function(e){e.method=`textDocument/didOpen`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(he||(t.DidOpenTextDocumentNotification=he={}));var ge;(function(e){function t(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}e.isIncremental=t;function n(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}e.isFull=n})(ge||(t.TextDocumentContentChangeEvent=ge={}));var _e;(function(e){e.method=`textDocument/didChange`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(_e||(t.DidChangeTextDocumentNotification=_e={}));var ve;(function(e){e.method=`textDocument/didClose`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(ve||(t.DidCloseTextDocumentNotification=ve={}));var ye;(function(e){e.method=`textDocument/didSave`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(ye||(t.DidSaveTextDocumentNotification=ye={}));var be;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(be||(t.TextDocumentSaveReason=be={}));var xe;(function(e){e.method=`textDocument/willSave`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(xe||(t.WillSaveTextDocumentNotification=xe={}));var Se;(function(e){e.method=`textDocument/willSaveWaitUntil`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Se||(t.WillSaveTextDocumentWaitUntilRequest=Se={}));var Ce;(function(e){e.method=`workspace/didChangeWatchedFiles`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(Ce||(t.DidChangeWatchedFilesNotification=Ce={}));var we;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(we||(t.FileChangeType=we={}));var Te;(function(e){function t(e){let t=e;return i.objectLiteral(t)&&(r.URI.is(t.baseUri)||r.WorkspaceFolder.is(t.baseUri))&&i.string(t.pattern)}e.is=t})(Te||(t.RelativePattern=Te={}));var Ee;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Ee||(t.WatchKind=Ee={}));var De;(function(e){e.method=`textDocument/publishDiagnostics`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolNotificationType(e.method)})(De||(t.PublishDiagnosticsNotification=De={}));var Oe;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Oe||(t.CompletionTriggerKind=Oe={}));var ke;(function(e){e.method=`textDocument/completion`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(ke||(t.CompletionRequest=ke={}));var Ae;(function(e){e.method=`completionItem/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ae||(t.CompletionResolveRequest=Ae={}));var je;(function(e){e.method=`textDocument/hover`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(je||(t.HoverRequest=je={}));var Me;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Me||(t.SignatureHelpTriggerKind=Me={}));var F;(function(e){e.method=`textDocument/signatureHelp`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(F||(t.SignatureHelpRequest=F={}));var Ne;(function(e){e.method=`textDocument/definition`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ne||(t.DefinitionRequest=Ne={}));var Pe;(function(e){e.method=`textDocument/references`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Pe||(t.ReferencesRequest=Pe={}));var Fe;(function(e){e.method=`textDocument/documentHighlight`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Fe||(t.DocumentHighlightRequest=Fe={}));var Ie;(function(e){e.method=`textDocument/documentSymbol`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ie||(t.DocumentSymbolRequest=Ie={}));var Le;(function(e){e.method=`textDocument/codeAction`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Le||(t.CodeActionRequest=Le={}));var Re;(function(e){e.method=`codeAction/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Re||(t.CodeActionResolveRequest=Re={}));var ze;(function(e){e.method=`workspace/symbol`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(ze||(t.WorkspaceSymbolRequest=ze={}));var Be;(function(e){e.method=`workspaceSymbol/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Be||(t.WorkspaceSymbolResolveRequest=Be={}));var Ve;(function(e){e.method=`textDocument/codeLens`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ve||(t.CodeLensRequest=Ve={}));var He;(function(e){e.method=`codeLens/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(He||(t.CodeLensResolveRequest=He={}));var Ue;(function(e){e.method=`workspace/codeLens/refresh`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType0(e.method)})(Ue||(t.CodeLensRefreshRequest=Ue={}));var We;(function(e){e.method=`textDocument/documentLink`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(We||(t.DocumentLinkRequest=We={}));var Ge;(function(e){e.method=`documentLink/resolve`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ge||(t.DocumentLinkResolveRequest=Ge={}));var Ke;(function(e){e.method=`textDocument/formatting`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ke||(t.DocumentFormattingRequest=Ke={}));var qe;(function(e){e.method=`textDocument/rangeFormatting`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(qe||(t.DocumentRangeFormattingRequest=qe={}));var Je;(function(e){e.method=`textDocument/rangesFormatting`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Je||(t.DocumentRangesFormattingRequest=Je={}));var Ye;(function(e){e.method=`textDocument/onTypeFormatting`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ye||(t.DocumentOnTypeFormattingRequest=Ye={}));var Xe;(function(e){e.Identifier=1})(Xe||(t.PrepareSupportDefaultBehavior=Xe={}));var Ze;(function(e){e.method=`textDocument/rename`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Ze||(t.RenameRequest=Ze={}));var Qe;(function(e){e.method=`textDocument/prepareRename`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})(Qe||(t.PrepareRenameRequest=Qe={}));var $e;(function(e){e.method=`workspace/executeCommand`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolRequestType(e.method)})($e||(t.ExecuteCommandRequest=$e={}));var et;(function(e){e.method=`workspace/applyEdit`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(`workspace/applyEdit`)})(et||(t.ApplyWorkspaceEditRequest=et={}))})),wf=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createProtocolConnection=void 0;var t=Qd();function n(e,n,r,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,n,r,i)}e.createProtocolConnection=n})),Tf=a((t=>{var n=t&&t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=t&&t.__exportStar||function(e,t){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,`__esModule`,{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(Qd(),t),r((ql(),e(yc)),t),r(Z(),t),r(Cf(),t);var i=wf();Object.defineProperty(t,`createProtocolConnection`,{enumerable:!0,get:function(){return i.createProtocolConnection}});var a;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(a||(t.LSPErrorCodes=a={}))})),Ef=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.createProtocolConnection=void 0;var r=$d();n($d(),e),n(Tf(),e);function i(e,t,n,i){return(0,r.createMessageConnection)(e,t,n,i)}e.createProtocolConnection=i}))(),Df;(function(e){function t(e){return{dispose:async()=>await e()}}e.create=t})(Df||={});var Of=class{constructor(e){this.updateBuildOptions={validation:{categories:[`built-in`,`fast`]}},this.updateListeners=[],this.buildPhaseListeners=new pd,this.documentPhaseListeners=new pd,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=X.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},n=Y.CancellationToken.None){for(let n of e){let e=n.uri.toString();if(n.state===X.Validated){if(typeof t.validation==`boolean`&&t.validation)this.resetToState(n,X.IndexedReferences);else if(typeof t.validation==`object`){let r=this.findMissingValidationCategories(n,t);r.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:r}},result:this.buildState.get(e)?.result}),n.state=X.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=X.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,n)}async update(e,t,n=Y.CancellationToken.None){this.currentState=X.Changed;let r=[];for(let e of t){let t=this.langiumDocuments.deleteDocuments(e);for(let e of t)r.push(e.uri),this.cleanUpDeleted(e)}let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);t===void 0&&(t=this.langiumDocumentFactory.fromModel({$type:`INVALID`},e),t.state=X.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,X.Changed)}let a=O(i).concat(r).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,X.ComputedScopes)),await this.emitUpdate(i,r),await Ku(n);let o=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state=1}findMissingValidationCategories(e,t){let n=this.buildState.get(e.uri.toString()),r=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?r:new Set;return O(t===void 0||t.validation===!0?r:typeof t.validation==`object`?t.validation.categories??r:[]).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(n=>n(e,t)))}sortDocuments(e){let t=0,n=e.length-1;for(;t=0&&!this.hasTextDocument(e[n]);)n--;te.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),Df.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case X.Changed:case X.Parsed:this.indexManager.removeContent(e.uri);case X.IndexedContent:e.localSymbols=void 0;case X.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case X.Linked:this.indexManager.removeReferences(e.uri);case X.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case X.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=X.Changed}async buildDocuments(e,t,n){this.prepareBuild(e,t),await this.runCancelable(e,X.Parsed,n,e=>this.langiumDocumentFactory.update(e,n)),await this.runCancelable(e,X.IndexedContent,n,e=>this.indexManager.updateContent(e,n)),await this.runCancelable(e,X.ComputedScopes,n,async e=>{e.localSymbols=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectLocalSymbols(e,n)});let r=e.filter(e=>this.shouldLink(e));await this.runCancelable(r,X.Linked,n,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,n)),await this.runCancelable(r,X.IndexedReferences,n,e=>this.indexManager.updateReferences(e,n));let i=e.filter(e=>this.shouldValidate(e)?!0:(this.markAsCompleted(e),!1));await this.runCancelable(i,X.Validated,n,async e=>{await this.validate(e,n),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let n of e){let e=n.uri.toString(),r=this.buildState.get(e);(!r||r.completed)&&this.buildState.set(e,{completed:!1,options:t,result:r?.result})}}async runCancelable(e,t,n,r){for(let i of e)i.statee.state===t);await this.notifyBuildPhase(i,t,n),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),Df.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),Df.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,n){let r;return t&&`path`in t?r=t:n=t,n??=Y.CancellationToken.None,r?this.awaitDocumentState(e,r,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,t,n){let r=this.langiumDocuments.getDocument(t);return r?r.state>=e?Promise.resolve(t):n.isCancellationRequested?Promise.reject(Wu):this.currentState>=e&&e>r.state?Promise.reject(new Ef.ResponseError(Ef.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${X[r.state]}, requiring ${X[e]}, but workspace state is already ${X[this.currentState]}. Returning undefined.`)):new Promise((r,i)=>{let a=this.onDocumentPhase(e,e=>{id.equals(e.uri,t)&&(a.dispose(),o.dispose(),r(e.uri))}),o=n.onCancellationRequested(()=>{a.dispose(),o.dispose(),i(Wu)})}):Promise.reject(new Ef.ResponseError(Ef.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(Wu):new Promise((n,r)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),n()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),r(Wu)})})}async notifyDocumentPhase(e,t,n){let r=this.documentPhaseListeners.get(t).slice();for(let t of r)try{await Ku(n),await t(e,n)}catch(e){if(!Gu(e))throw e}}async notifyBuildPhase(e,t,n){if(e.length===0)return;let r=this.buildPhaseListeners.get(t).slice();for(let t of r)await Ku(n),await t(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,r=this.getBuildOptions(e),i=typeof r.validation==`object`?{...r.validation}:{};i.categories=this.findMissingValidationCategories(e,r);let a=await n.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let o=this.buildState.get(e.uri.toString());o&&(o.result??={},o.result.validationChecks?o.result.validationChecks=O(o.result.validationChecks).concat(i.categories).distinct().toArray():o.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},kf=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new bd,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let n=k(e).uri,r=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{id.equals(e.targetUri,n)&&e.targetPath===t&&r.push(e)})}),O(r)}allElements(e,t){let n=O(this.symbolIndex.keys());return t&&(n=n.filter(e=>!t||t.has(e))),n.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=Y.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),r=e.uri.toString();this.symbolIndex.set(r,n),this.symbolByTypeIndex.clear(r)}async updateReferences(e,t=Y.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let n=this.referenceIndex.get(e.uri.toString());return n?n.some(e=>!e.local&&t.has(e.targetUri.toString())):!1}},Af=class{constructor(e){this.initialBuildOptions={},this._ready=new qu,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=Y.CancellationToken.None){let n=await this.performStartup(e);await Ku(t),await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){let t=[],n=e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)};await this.loadAdditionalDocuments(e,n);let r=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,r)));let i=O(r).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return nd.parse(e.uri)}async traverseFolder(e,t){try{let n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error(`Failure to read directory content of `+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=id.basename(e.uri);return t.startsWith(`.`)?!1:e.isDirectory?t!==`node_modules`&&t!==`out`:e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},jf=class{buildUnexpectedCharactersMessage(e,t,n,r,i){return Hi.buildUnexpectedCharactersMessage(e,t,n,r,i)}buildUnableToPopLexerModeMessage(e){return Hi.buildUnableToPopLexerModeMessage(e)}},Mf={mode:`full`},Nf=class{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let n=If(t)?Object.values(t):t,r=e.LanguageMetaData.mode===`production`;this.chevrotainLexer=new Wi(n,{positionTracking:`full`,skipValidations:r,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=Mf){let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(If(e))return e;let t=Ff(e)?Object.values(e.modes).flat():e,n={};return t.forEach(e=>n[e.name]=e),n}};function Pf(e){return Array.isArray(e)&&(e.length===0||`name`in e[0])}function Ff(e){return e&&`modes`in e&&`defaultMode`in e}function If(e){return!Pf(e)&&!Ff(e)}ql();function Lf(e,t,n){let r,i;typeof e==`string`?(i=t,r=n):(i=e.range.start,r=t),i||=G.create(0,0);let a=zf(e),o=tp(r);return Jf({index:0,tokens:Hf({lines:a,position:i,options:o}),position:i})}function Rf(e,t){let n=tp(t),r=zf(e);if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=n.start,s=n.end;return!!o?.exec(i)&&!!s?.exec(a)}function zf(e){let t=``;return t=typeof e==`string`?e:e.text,t.split(mn)}var Bf=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Vf=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Hf(e){let t=[],n=e.position.line,r=e.position.character;for(let i=0;i=s.length){if(t.length>0){let e=G.create(n,r);t.push({type:`break`,content:``,range:K.create(e,e)})}}else{Bf.lastIndex=c;let e=Bf.exec(s);if(e){let i=e[0],a=e[1],o=G.create(n,r+c),l=G.create(n,r+c+i.length);t.push({type:`tag`,content:a,range:K.create(o,l)}),c+=i.length,c=Kf(s,c)}if(c0&&t[t.length-1].type===`break`?t.slice(0,-1):t}function Uf(e,t,n,r){let i=[];if(e.length===0){let e=G.create(n,r),a=G.create(n,r+t.length);i.push({type:`text`,content:t,range:K.create(e,a)})}else{let a=0;for(let o of e){let e=o.index,s=t.substring(a,e);s.length>0&&i.push({type:`text`,content:t.substring(a,e),range:K.create(G.create(n,a+r),G.create(n,e+r))});let c=s.length+1,l=o[1];if(i.push({type:`inline-tag`,content:l,range:K.create(G.create(n,a+c+r),G.create(n,a+c+l.length+r))}),c+=l.length,o.length===4){c+=o[2].length;let e=o[3];i.push({type:`text`,content:e,range:K.create(G.create(n,a+c+r),G.create(n,a+c+e.length+r))})}else i.push({type:`text`,content:``,range:K.create(G.create(n,a+c+r),G.create(n,a+c+r))});a=e+o[0].length}let o=t.substring(a);o.length>0&&i.push({type:`text`,content:o,range:K.create(G.create(n,a+r),G.create(n,a+r+o.length))})}return i}var Wf=/\S/,Gf=/\s*$/;function Kf(e,t){let n=e.substring(t).match(Wf);return n?t+n.index:e.length}function qf(e){let t=e.match(Gf);if(t&&typeof t.index==`number`)return t.index}function Jf(e){let t=G.create(e.position.line,e.position.character);if(e.tokens.length===0)return new rp([],K.create(t,t));let n=[];for(;e.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>`name`in e)}toString(){let e=``;for(let t of this.elements)if(e.length===0)e=t.toString();else{let n=t.toString();e+=lp(e)+n}return e.trim()}toMarkdown(e){let t=``;for(let n of this.elements)if(t.length===0)t=n.toMarkdown(e);else{let r=n.toMarkdown(e);t+=lp(t)+r}return t.trim()}},ip=class{constructor(e,t,n,r){this.name=e,this.content=t,this.inline=n,this.range=r}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}\n${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let n=ap(this.name,t,e??{});if(typeof n==`string`)return n}let n=``;e?.tag===`italic`||e?.tag===void 0?n=`*`:e?.tag===`bold`?n=`**`:e?.tag===`bold-italic`&&(n=`***`);let r=`${n}@${this.name}${n}`;return this.content.inlines.length===1?r=`${r} — ${t}`:this.content.inlines.length>1&&(r=`${r}\n${t}`),this.inline?`{${r}}`:r}};function ap(e,t,n){if(e===`linkplain`||e===`linkcode`||e===`link`){let r=t.indexOf(` `),i=t;if(r>0){let e=Kf(t,r);i=t.substring(e),t=t.substring(0,r)}return(e===`linkcode`||e===`link`&&n.link===`code`)&&(i=`\`${i}\``),n.renderLink?.(t,i)??op(t,i)}}function op(e,t){try{return nd.parse(e,!0),`[${t}](${e})`}catch{return e}}var sp=class{constructor(e,t){this.inlines=e,this.range=t}toString(){let e=``;for(let t=0;tn.range.start.line&&(e+=` +`)}return e}toMarkdown(e){let t=``;for(let n=0;nr.range.start.line&&(t+=` +`)}return t}},cp=class{constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function lp(e){return e.endsWith(` +`)?` +`:` + +`}var up=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&Rf(t))return Lf(t).toMarkdown({renderLink:(t,n)=>this.documentationLinkRenderer(e,t,n),renderTag:t=>this.documentationTagRenderer(e,t)})}documentationLinkRenderer(e,t,n){let r=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(r&&r.nameSegment){let e=r.nameSegment.range.start.line+1,t=r.nameSegment.range.start.character+1;return`[${n}](${r.documentUri.with({fragment:`L${e},${t}`}).toString()})`}else return}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let n=k(e).localSymbols;if(!n)return;let r=e;do{let e=n.getStream(r).find(e=>e.name===t);if(e)return e;r=r.$container}while(r)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}},dp=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return Cd(e)?e.$comment:Yt(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},fp=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},pp=class{constructor(){this.previousTokenSource=new Y.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=Uu();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,n=Y.CancellationToken.None){let r=new qu,i={action:t,deferred:r,cancellationToken:n};return e.push(i),this.performNextOperation(),r.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:n})=>{try{let r=await Promise.resolve().then(()=>e(n));t.resolve(r)}catch(e){Gu(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},mp=class{constructor(e){this.grammarElementIdMap=new md,this.tokenTypeIdMap=new md,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,n=new Map;for(let n of N(e))t.set(n,{});if(e.$cstNode)for(let t of Vt(e.$cstNode))n.set(t,{});return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){let n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`))if(Array.isArray(i)){let e=[];n[r]=e;for(let n of i)v(n)?e.push(this.dehydrateAstNode(n,t)):y(n)?e.push(this.dehydrateReference(n,t)):e.push(n)}else v(i)?n[r]=this.dehydrateAstNode(i,t):y(i)?n[r]=this.dehydrateReference(i,t):i!==void 0&&(n[r]=i);return n}dehydrateReference(e,t){let n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=t.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,t){let n=t.cstNodes.get(e);return T(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=t.astNodes.get(e.astNode),C(e)?n.content=e.content.map(e=>this.dehydrateCstNode(e,t)):w(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){let t=e.value,n=this.createHydrationContext(t);return`$cstNode`in t&&this.hydrateCstNode(t.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){let t=new Map,n=new Map;for(let n of N(e))t.set(n,{});let r;if(e.$cstNode)for(let t of Vt(e.$cstNode)){let e;`fullText`in t?(e=new $l(t.fullText),r=e):`content`in t?e=new Zl:`tokenType`in t&&(e=this.hydrateCstLeafNode(t)),e&&(n.set(t,e),e.root=r)}return{astNodes:t,cstNodes:n}}hydrateAstNode(e,t){let n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=t.cstNodes.get(e.$cstNode));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`))if(Array.isArray(i)){let e=[];n[r]=e;for(let a of i)v(a)?e.push(this.setParent(this.hydrateAstNode(a,t),n)):y(a)?e.push(this.hydrateReference(a,n,r,t)):e.push(a)}else v(i)?n[r]=this.setParent(this.hydrateAstNode(i,t),n):y(i)?n[r]=this.hydrateReference(i,n,r,t):i!==void 0&&(n[r]=i);return n}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){let r=t.cstNodes.get(e);if(typeof e.grammarSource==`number`&&(r.grammarSource=this.getGrammarElement(e.grammarSource)),r.astNode=t.astNodes.get(e.astNode),C(r))for(let i of e.content){let e=this.hydrateCstNode(i,t,n++);r.content.push(e)}return r}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),n=e.offset,r=e.length,i=e.startLine,a=e.startColumn,o=e.endLine,s=e.endColumn,c=e.hidden;return new Xl(n,r,{start:{line:i,character:a},end:{line:o,character:s}},t,c)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of N(this.grammar))pe(t)&&this.grammarElementIdMap.set(t,e++)}};function hp(e){return{documentation:{CommentProvider:e=>new dp(e),DocumentationProvider:e=>new up(e)},parser:{AsyncParser:e=>new fp(e),GrammarConfig:e=>$n(e),LangiumParser:e=>ju(e),CompletionParser:e=>Au(e),ValueConverter:()=>new Pu,TokenBuilder:()=>new Nu,Lexer:e=>new Nf(e),ParserErrorMessageProvider:()=>new su,LexerErrorMessageProvider:()=>new jf},workspace:{AstNodeLocator:()=>new Rd,AstNodeDescriptionProvider:e=>new Id(e),ReferenceDescriptionProvider:e=>new Ld(e)},references:{Linker:e=>new ld(e),NameProvider:()=>new dd,ScopeProvider:e=>new Sd(e),ScopeComputation:e=>new hd(e),References:e=>new fd(e)},serializer:{Hydrator:e=>new mp(e),JsonSerializer:e=>new Td(e)},validation:{DocumentValidator:e=>new jd(e),ValidationRegistry:e=>new kd(e)},shared:()=>e.shared}}function gp(e){return{ServiceRegistry:e=>new Ed(e),workspace:{LangiumDocuments:e=>new sd(e),LangiumDocumentFactory:e=>new od(e),DocumentBuilder:e=>new Of(e),IndexManager:e=>new kf(e),WorkspaceManager:e=>new Af(e),FileSystemProvider:t=>e.fileSystemProvider(t),WorkspaceLock:()=>new pp,ConfigurationProvider:e=>new Bd(e)},profilers:{}}}var _p;(function(e){e.merge=(e,t)=>Cp(Cp({},e),t)})(_p||={});function vp(e,t,n,r,i,a,o,s,c){return bp([e,t,n,r,i,a,o,s,c].reduce(Cp,{}))}var yp=Symbol(`isProxy`);function bp(e,t){let n=new Proxy({},{deleteProperty:()=>!1,set:()=>{throw Error(`Cannot set property on injected service container`)},get:(r,i)=>i===yp?!0:Sp(r,i,e,t||n),getOwnPropertyDescriptor:(r,i)=>(Sp(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),has:(t,n)=>n in e,ownKeys:()=>[...Object.getOwnPropertyNames(e)]});return n}var xp=Symbol();function Sp(e,t,n,r){if(t in e){if(e[t]instanceof Error)throw Error(`Construction failure. Please make sure that your dependencies are constructable. Cause: `+e[t]);if(e[t]===xp)throw Error(`Cycle detected. Please make "`+String(t)+`" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies`);return e[t]}else if(t in n){let i=n[t];e[t]=xp;try{e[t]=typeof i==`function`?i(r):bp(i,r)}catch(n){throw e[t]=n instanceof Error?n:void 0,n}return e[t]}else return}function Cp(e,t){if(t){for(let[n,r]of Object.entries(t))if(r!=null)if(typeof r==`object`){let t=e[n];typeof t==`object`&&t?e[n]=Cp(t,r):e[n]=Cp({},r)}else e[n]=r}return e}var wp=class{stat(e){throw Error(`No file system is available.`)}statSync(e){throw Error(`No file system is available.`)}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error(`No file system is available.`)}readBinarySync(){throw Error(`No file system is available.`)}readFile(){throw Error(`No file system is available.`)}readFileSync(){throw Error(`No file system is available.`)}async readDirectory(){return[]}readDirectorySync(){return[]}},Tp={fileSystemProvider:()=>new wp},Ep={Grammar:()=>void 0,LanguageMetaData:()=>({caseInsensitive:!1,fileExtensions:[`.langium`],languageId:`langium`})},Dp={AstReflection:()=>new Bt};function Op(){let e=vp(gp(Tp),Dp),t=vp(hp({shared:e}),Ep);return e.ServiceRegistry.register(t),t}function kp(e){let t=Op(),n=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(n,nd.parse(`memory:/${n.name??`grammar`}.langium`)),n}var Ap=Object.defineProperty,Q=(e,t)=>Ap(e,`name`,{value:t,configurable:!0}),jp;(e=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(jp||={});var Mp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(Mp||={});var Np;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Np||={});var Pp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Pp||={});var Fp;(e=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Fp||={});var Ip;(e=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Ip||={});var Lp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(Lp||={});var Rp;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(Rp||={});var zp;(e=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z][A-Za-z0-9_()&]*(?:[ \t]+[A-Za-z(][A-Za-z0-9_()&]*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(zp||={}),{...jp.Terminals,...Mp.Terminals,...Np.Terminals,...Pp.Terminals,...Fp.Terminals,...Ip.Terminals,...Rp.Terminals,...Lp.Terminals,...zp.Terminals};var Bp={$type:`Accelerator`,name:`name`,x:`x`,y:`y`},Vp={$type:`Anchor`,evolution:`evolution`,name:`name`,visibility:`visibility`},Hp={$type:`Annotation`,number:`number`,text:`text`,x:`x`,y:`y`},Up={$type:`Annotations`,x:`x`,y:`y`},Wp={$type:`Architecture`,accDescr:`accDescr`,accTitle:`accTitle`,edges:`edges`,groups:`groups`,junctions:`junctions`,services:`services`,title:`title`};function Gp(e){return Km.isInstance(e,Wp.$type)}Q(Gp,`isArchitecture`);var Kp={$type:`Axis`,label:`label`,name:`name`},qp={$type:`Branch`,name:`name`,order:`order`};function Jp(e){return Km.isInstance(e,qp.$type)}Q(Jp,`isBranch`);var Yp={$type:`Checkout`,branch:`branch`},Xp={$type:`CherryPicking`,id:`id`,parent:`parent`,tags:`tags`},Zp={$type:`ClassDefStatement`,className:`className`,styleText:`styleText`},Qp={$type:`Commit`,id:`id`,message:`message`,tags:`tags`,type:`type`};function $p(e){return Km.isInstance(e,Qp.$type)}Q($p,`isCommit`);var em={$type:`Component`,decorator:`decorator`,evolution:`evolution`,inertia:`inertia`,label:`label`,name:`name`,visibility:`visibility`},tm={$type:`Curve`,entries:`entries`,label:`label`,name:`name`},nm={$type:`Deaccelerator`,name:`name`,x:`x`,y:`y`},rm={$type:`Decorator`,strategy:`strategy`},im={$type:`Direction`,accDescr:`accDescr`,accTitle:`accTitle`,dir:`dir`,statements:`statements`,title:`title`},am={$type:`Edge`,lhsDir:`lhsDir`,lhsGroup:`lhsGroup`,lhsId:`lhsId`,lhsInto:`lhsInto`,rhsDir:`rhsDir`,rhsGroup:`rhsGroup`,rhsId:`rhsId`,rhsInto:`rhsInto`,title:`title`},om={$type:`Entry`,axis:`axis`,value:`value`},sm={$type:`Evolution`,stages:`stages`},cm={$type:`EvolutionStage`,boundary:`boundary`,name:`name`,secondName:`secondName`},lm={$type:`Evolve`,component:`component`,target:`target`},um={$type:`GitGraph`,accDescr:`accDescr`,accTitle:`accTitle`,statements:`statements`,title:`title`};function dm(e){return Km.isInstance(e,um.$type)}Q(dm,`isGitGraph`);var fm={$type:`Group`,icon:`icon`,id:`id`,in:`in`,title:`title`},pm={$type:`Info`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`};function mm(e){return Km.isInstance(e,pm.$type)}Q(mm,`isInfo`);var hm={$type:`Item`,classSelector:`classSelector`,name:`name`},gm={$type:`Junction`,id:`id`,in:`in`},_m={$type:`Label`,negX:`negX`,negY:`negY`,offsetX:`offsetX`,offsetY:`offsetY`},vm={$type:`Leaf`,classSelector:`classSelector`,name:`name`,value:`value`},ym={$type:`Link`,arrow:`arrow`,from:`from`,fromPort:`fromPort`,linkLabel:`linkLabel`,to:`to`,toPort:`toPort`},bm={$type:`Merge`,branch:`branch`,id:`id`,tags:`tags`,type:`type`};function xm(e){return Km.isInstance(e,bm.$type)}Q(xm,`isMerge`);var Sm={$type:`Note`,evolution:`evolution`,text:`text`,visibility:`visibility`},Cm={$type:`Option`,name:`name`,value:`value`},wm={$type:`Packet`,accDescr:`accDescr`,accTitle:`accTitle`,blocks:`blocks`,title:`title`};function Tm(e){return Km.isInstance(e,wm.$type)}Q(Tm,`isPacket`);var Em={$type:`PacketBlock`,bits:`bits`,end:`end`,label:`label`,start:`start`};function Dm(e){return Km.isInstance(e,Em.$type)}Q(Dm,`isPacketBlock`);var Om={$type:`Pie`,accDescr:`accDescr`,accTitle:`accTitle`,sections:`sections`,showData:`showData`,title:`title`};function km(e){return Km.isInstance(e,Om.$type)}Q(km,`isPie`);var Am={$type:`PieSection`,label:`label`,value:`value`};function jm(e){return Km.isInstance(e,Am.$type)}Q(jm,`isPieSection`);var Mm={$type:`Pipeline`,components:`components`,parent:`parent`},Nm={$type:`PipelineComponent`,evolution:`evolution`,label:`label`,name:`name`},Pm={$type:`Radar`,accDescr:`accDescr`,accTitle:`accTitle`,axes:`axes`,curves:`curves`,options:`options`,title:`title`},Fm={$type:`Section`,classSelector:`classSelector`,name:`name`},Im={$type:`Service`,icon:`icon`,iconText:`iconText`,id:`id`,in:`in`,title:`title`},Lm={$type:`Size`,height:`height`,width:`width`},Rm={$type:`Statement`},zm={$type:`Treemap`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`,TreemapRows:`TreemapRows`};function Bm(e){return Km.isInstance(e,zm.$type)}Q(Bm,`isTreemap`);var Vm={$type:`TreemapRow`,indent:`indent`,item:`item`},Hm={$type:`TreeNode`,indent:`indent`,name:`name`},Um={$type:`TreeView`,accDescr:`accDescr`,accTitle:`accTitle`,nodes:`nodes`,title:`title`},$={$type:`Wardley`,accDescr:`accDescr`,accelerators:`accelerators`,accTitle:`accTitle`,anchors:`anchors`,annotation:`annotation`,annotations:`annotations`,components:`components`,deaccelerators:`deaccelerators`,evolution:`evolution`,evolves:`evolves`,links:`links`,notes:`notes`,pipelines:`pipelines`,size:`size`,title:`title`};function Wm(e){return Km.isInstance(e,$.$type)}Q(Wm,`isWardley`);var Gm=class extends ee{constructor(){super(...arguments),this.types={Accelerator:{name:Bp.$type,properties:{name:{name:Bp.name},x:{name:Bp.x},y:{name:Bp.y}},superTypes:[]},Anchor:{name:Vp.$type,properties:{evolution:{name:Vp.evolution},name:{name:Vp.name},visibility:{name:Vp.visibility}},superTypes:[]},Annotation:{name:Hp.$type,properties:{number:{name:Hp.number},text:{name:Hp.text},x:{name:Hp.x},y:{name:Hp.y}},superTypes:[]},Annotations:{name:Up.$type,properties:{x:{name:Up.x},y:{name:Up.y}},superTypes:[]},Architecture:{name:Wp.$type,properties:{accDescr:{name:Wp.accDescr},accTitle:{name:Wp.accTitle},edges:{name:Wp.edges,defaultValue:[]},groups:{name:Wp.groups,defaultValue:[]},junctions:{name:Wp.junctions,defaultValue:[]},services:{name:Wp.services,defaultValue:[]},title:{name:Wp.title}},superTypes:[]},Axis:{name:Kp.$type,properties:{label:{name:Kp.label},name:{name:Kp.name}},superTypes:[]},Branch:{name:qp.$type,properties:{name:{name:qp.name},order:{name:qp.order}},superTypes:[Rm.$type]},Checkout:{name:Yp.$type,properties:{branch:{name:Yp.branch}},superTypes:[Rm.$type]},CherryPicking:{name:Xp.$type,properties:{id:{name:Xp.id},parent:{name:Xp.parent},tags:{name:Xp.tags,defaultValue:[]}},superTypes:[Rm.$type]},ClassDefStatement:{name:Zp.$type,properties:{className:{name:Zp.className},styleText:{name:Zp.styleText}},superTypes:[]},Commit:{name:Qp.$type,properties:{id:{name:Qp.id},message:{name:Qp.message},tags:{name:Qp.tags,defaultValue:[]},type:{name:Qp.type}},superTypes:[Rm.$type]},Component:{name:em.$type,properties:{decorator:{name:em.decorator},evolution:{name:em.evolution},inertia:{name:em.inertia,defaultValue:!1},label:{name:em.label},name:{name:em.name},visibility:{name:em.visibility}},superTypes:[]},Curve:{name:tm.$type,properties:{entries:{name:tm.entries,defaultValue:[]},label:{name:tm.label},name:{name:tm.name}},superTypes:[]},Deaccelerator:{name:nm.$type,properties:{name:{name:nm.name},x:{name:nm.x},y:{name:nm.y}},superTypes:[]},Decorator:{name:rm.$type,properties:{strategy:{name:rm.strategy}},superTypes:[]},Direction:{name:im.$type,properties:{accDescr:{name:im.accDescr},accTitle:{name:im.accTitle},dir:{name:im.dir},statements:{name:im.statements,defaultValue:[]},title:{name:im.title}},superTypes:[um.$type]},Edge:{name:am.$type,properties:{lhsDir:{name:am.lhsDir},lhsGroup:{name:am.lhsGroup,defaultValue:!1},lhsId:{name:am.lhsId},lhsInto:{name:am.lhsInto,defaultValue:!1},rhsDir:{name:am.rhsDir},rhsGroup:{name:am.rhsGroup,defaultValue:!1},rhsId:{name:am.rhsId},rhsInto:{name:am.rhsInto,defaultValue:!1},title:{name:am.title}},superTypes:[]},Entry:{name:om.$type,properties:{axis:{name:om.axis,referenceType:Kp.$type},value:{name:om.value}},superTypes:[]},Evolution:{name:sm.$type,properties:{stages:{name:sm.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:cm.$type,properties:{boundary:{name:cm.boundary},name:{name:cm.name},secondName:{name:cm.secondName}},superTypes:[]},Evolve:{name:lm.$type,properties:{component:{name:lm.component},target:{name:lm.target}},superTypes:[]},GitGraph:{name:um.$type,properties:{accDescr:{name:um.accDescr},accTitle:{name:um.accTitle},statements:{name:um.statements,defaultValue:[]},title:{name:um.title}},superTypes:[]},Group:{name:fm.$type,properties:{icon:{name:fm.icon},id:{name:fm.id},in:{name:fm.in},title:{name:fm.title}},superTypes:[]},Info:{name:pm.$type,properties:{accDescr:{name:pm.accDescr},accTitle:{name:pm.accTitle},title:{name:pm.title}},superTypes:[]},Item:{name:hm.$type,properties:{classSelector:{name:hm.classSelector},name:{name:hm.name}},superTypes:[]},Junction:{name:gm.$type,properties:{id:{name:gm.id},in:{name:gm.in}},superTypes:[]},Label:{name:_m.$type,properties:{negX:{name:_m.negX,defaultValue:!1},negY:{name:_m.negY,defaultValue:!1},offsetX:{name:_m.offsetX},offsetY:{name:_m.offsetY}},superTypes:[]},Leaf:{name:vm.$type,properties:{classSelector:{name:vm.classSelector},name:{name:vm.name},value:{name:vm.value}},superTypes:[hm.$type]},Link:{name:ym.$type,properties:{arrow:{name:ym.arrow},from:{name:ym.from},fromPort:{name:ym.fromPort},linkLabel:{name:ym.linkLabel},to:{name:ym.to},toPort:{name:ym.toPort}},superTypes:[]},Merge:{name:bm.$type,properties:{branch:{name:bm.branch},id:{name:bm.id},tags:{name:bm.tags,defaultValue:[]},type:{name:bm.type}},superTypes:[Rm.$type]},Note:{name:Sm.$type,properties:{evolution:{name:Sm.evolution},text:{name:Sm.text},visibility:{name:Sm.visibility}},superTypes:[]},Option:{name:Cm.$type,properties:{name:{name:Cm.name},value:{name:Cm.value,defaultValue:!1}},superTypes:[]},Packet:{name:wm.$type,properties:{accDescr:{name:wm.accDescr},accTitle:{name:wm.accTitle},blocks:{name:wm.blocks,defaultValue:[]},title:{name:wm.title}},superTypes:[]},PacketBlock:{name:Em.$type,properties:{bits:{name:Em.bits},end:{name:Em.end},label:{name:Em.label},start:{name:Em.start}},superTypes:[]},Pie:{name:Om.$type,properties:{accDescr:{name:Om.accDescr},accTitle:{name:Om.accTitle},sections:{name:Om.sections,defaultValue:[]},showData:{name:Om.showData,defaultValue:!1},title:{name:Om.title}},superTypes:[]},PieSection:{name:Am.$type,properties:{label:{name:Am.label},value:{name:Am.value}},superTypes:[]},Pipeline:{name:Mm.$type,properties:{components:{name:Mm.components,defaultValue:[]},parent:{name:Mm.parent}},superTypes:[]},PipelineComponent:{name:Nm.$type,properties:{evolution:{name:Nm.evolution},label:{name:Nm.label},name:{name:Nm.name}},superTypes:[]},Radar:{name:Pm.$type,properties:{accDescr:{name:Pm.accDescr},accTitle:{name:Pm.accTitle},axes:{name:Pm.axes,defaultValue:[]},curves:{name:Pm.curves,defaultValue:[]},options:{name:Pm.options,defaultValue:[]},title:{name:Pm.title}},superTypes:[]},Section:{name:Fm.$type,properties:{classSelector:{name:Fm.classSelector},name:{name:Fm.name}},superTypes:[hm.$type]},Service:{name:Im.$type,properties:{icon:{name:Im.icon},iconText:{name:Im.iconText},id:{name:Im.id},in:{name:Im.in},title:{name:Im.title}},superTypes:[]},Size:{name:Lm.$type,properties:{height:{name:Lm.height},width:{name:Lm.width}},superTypes:[]},Statement:{name:Rm.$type,properties:{},superTypes:[]},TreeNode:{name:Hm.$type,properties:{indent:{name:Hm.indent},name:{name:Hm.name}},superTypes:[]},TreeView:{name:Um.$type,properties:{accDescr:{name:Um.accDescr},accTitle:{name:Um.accTitle},nodes:{name:Um.nodes,defaultValue:[]},title:{name:Um.title}},superTypes:[]},Treemap:{name:zm.$type,properties:{accDescr:{name:zm.accDescr},accTitle:{name:zm.accTitle},title:{name:zm.title},TreemapRows:{name:zm.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:Vm.$type,properties:{indent:{name:Vm.indent},item:{name:Vm.item}},superTypes:[]},Wardley:{name:$.$type,properties:{accDescr:{name:$.accDescr},accelerators:{name:$.accelerators,defaultValue:[]},accTitle:{name:$.accTitle},anchors:{name:$.anchors,defaultValue:[]},annotation:{name:$.annotation,defaultValue:[]},annotations:{name:$.annotations,defaultValue:[]},components:{name:$.components,defaultValue:[]},deaccelerators:{name:$.deaccelerators,defaultValue:[]},evolution:{name:$.evolution},evolves:{name:$.evolves,defaultValue:[]},links:{name:$.links,defaultValue:[]},notes:{name:$.notes,defaultValue:[]},pipelines:{name:$.pipelines,defaultValue:[]},size:{name:$.size},title:{name:$.title}},superTypes:[]}}}static{Q(this,`MermaidAstReflection`)}},Km=new Gm,qm,Jm=Q(()=>qm??=kp(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`ArchitectureGrammarGrammar`),Ym,Xm=Q(()=>Ym??=kp(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`GitGraphGrammarGrammar`),Zm,Qm=Q(()=>Zm??=kp(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`InfoGrammarGrammar`),$m,eh=Q(()=>$m??=kp(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`PacketGrammarGrammar`),th,nh=Q(()=>th??=kp(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`PieGrammarGrammar`),rh,ih=Q(()=>rh??=kp(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`),`RadarGrammarGrammar`),ah,oh=Q(()=>ah??=kp(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`),`TreemapGrammarGrammar`),sh,ch=Q(()=>sh??=kp(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`),`TreeViewGrammarGrammar`),lh,uh=Q(()=>lh??=kp(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z][A-Za-z0-9_()&]*(?:[ \\\\t]+[A-Za-z(][A-Za-z0-9_()&]*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`WardleyGrammarGrammar`),dh={languageId:`architecture`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},fh={languageId:`gitGraph`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},ph={languageId:`info`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},mh={languageId:`packet`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},hh={languageId:`pie`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},gh={languageId:`radar`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},_h={languageId:`treemap`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},vh={languageId:`treeView`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},yh={languageId:`wardley`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},bh={AstReflection:Q(()=>new Gm,`AstReflection`)},xh={Grammar:Q(()=>Jm(),`Grammar`),LanguageMetaData:Q(()=>dh,`LanguageMetaData`),parser:{}},Sh={Grammar:Q(()=>Xm(),`Grammar`),LanguageMetaData:Q(()=>fh,`LanguageMetaData`),parser:{}},Ch={Grammar:Q(()=>Qm(),`Grammar`),LanguageMetaData:Q(()=>ph,`LanguageMetaData`),parser:{}},wh={Grammar:Q(()=>eh(),`Grammar`),LanguageMetaData:Q(()=>mh,`LanguageMetaData`),parser:{}},Th={Grammar:Q(()=>nh(),`Grammar`),LanguageMetaData:Q(()=>hh,`LanguageMetaData`),parser:{}},Eh={Grammar:Q(()=>ih(),`Grammar`),LanguageMetaData:Q(()=>gh,`LanguageMetaData`),parser:{}},Dh={Grammar:Q(()=>oh(),`Grammar`),LanguageMetaData:Q(()=>_h,`LanguageMetaData`),parser:{}},Oh={Grammar:Q(()=>ch(),`Grammar`),LanguageMetaData:Q(()=>vh,`LanguageMetaData`),parser:{}},kh={Grammar:Q(()=>uh(),`Grammar`),LanguageMetaData:Q(()=>yh,`LanguageMetaData`),parser:{}},Ah={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},jh=class extends Pu{static{Q(this,`AbstractMermaidValueConverter`)}runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);return r===void 0&&(r=this.runCustomConverter(e,t,n)),r===void 0?super.runConverter(e,t,n):r}runCommonConverter(e,t,n){let r=Ah[e.name];if(r===void 0)return;let i=r.exec(t);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm,` `);if(i[2]!==void 0)return i[2].replace(/^\s*/gm,``).replace(/\s+$/gm,``).replace(/[\t ]{2,}/gm,` `).replace(/[\n\r]{2,}/gm,` +`)}}},Mh=class extends jh{static{Q(this,`CommonValueConverter`)}runCustomConverter(e,t,n){}},Nh=class extends Nu{static{Q(this,`AbstractMermaidTokenBuilder`)}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){let r=super.buildKeywordTokens(e,t,n);return r.forEach(e=>{this.keywords.has(e.name)&&e.PATTERN!==void 0&&(e.PATTERN=RegExp(e.PATTERN.toString()+`(?:(?=%%)|(?!\\S))`))}),r}};(class extends Nh{static{Q(this,`CommonTokenBuilder`)}});export{hp as _,Sh as a,wh as c,Oh as d,Dh as f,vp as g,Tp as h,Mh as i,Th as l,Q as m,jh as n,Ch as o,kh as p,xh as r,bh as s,Nh as t,Eh as u,gp as v}; \ No newline at end of file diff --git a/webui/assets/chunk-KGLVRYIC-DZYbu2nr.js b/webui/assets/chunk-KGLVRYIC-DZYbu2nr.js new file mode 100644 index 0000000000000000000000000000000000000000..66e3625298352283054cb765161cb20cf597b1da --- /dev/null +++ b/webui/assets/chunk-KGLVRYIC-DZYbu2nr.js @@ -0,0 +1 @@ +import{_ as e,g as t,h as n,i as r,m as i,o as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BU8zzKFc.js";var l=class extends s{static{i(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},u={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new r,`ValueConverter`)}};function d(r=n){let i=t(c(r),o),s=t(e({shared:i}),a,u);return i.ServiceRegistry.register(s),{shared:i,Info:s}}i(d,`createInfoServices`);export{d as n,u as t}; \ No newline at end of file diff --git a/webui/assets/chunk-LIHQZDEY-DM41YGLa.js b/webui/assets/chunk-LIHQZDEY-DM41YGLa.js new file mode 100644 index 0000000000000000000000000000000000000000..c4c6ce6cdde10e93b56d3a6b8c7b34368504c5d9 --- /dev/null +++ b/webui/assets/chunk-LIHQZDEY-DM41YGLa.js @@ -0,0 +1 @@ +import{_ as e,f as t,g as n,h as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BU8zzKFc.js";var l=class extends s{static{i(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},u=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,d=class extends a{static{i(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=u.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function f(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}i(f,`registerValidationChecks`);var p=class{static{i(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},m={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new d,`ValueConverter`)},validation:{TreemapValidator:i(()=>new p,`TreemapValidator`)}};function h(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,m);return a.ServiceRegistry.register(s),f(s),{shared:a,Treemap:s}}i(h,`createTreemapServices`);export{h as n,m as t}; \ No newline at end of file diff --git a/webui/assets/chunk-ORNJ4GCN-zyJVMn2X.js b/webui/assets/chunk-ORNJ4GCN-zyJVMn2X.js new file mode 100644 index 0000000000000000000000000000000000000000..ddeb01e209c0a531968c5e346a2129515d73a9f7 --- /dev/null +++ b/webui/assets/chunk-ORNJ4GCN-zyJVMn2X.js @@ -0,0 +1 @@ +import{_ as e,d as t,g as n,h as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BU8zzKFc.js";var l=class extends a{static{i(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`STRING2`)return t.substring(1,t.length-1)}},u=class extends s{static{i(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},d={parser:{TokenBuilder:i(()=>new u,`TokenBuilder`),ValueConverter:i(()=>new l,`ValueConverter`)}};function f(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,d);return a.ServiceRegistry.register(s),{shared:a,TreeView:s}}i(f,`createTreeViewServices`);export{f as n,d as t}; \ No newline at end of file diff --git a/webui/assets/chunk-OYMX7WX6-SEKfEFEE.js b/webui/assets/chunk-OYMX7WX6-SEKfEFEE.js new file mode 100644 index 0000000000000000000000000000000000000000..48323de6e77cf7e8fbe4a624c9f2483333e6609b --- /dev/null +++ b/webui/assets/chunk-OYMX7WX6-SEKfEFEE.js @@ -0,0 +1,231 @@ +import{g as e,h as t}from"./src-DZYWZEqD.js";import{B as n,C as r,V as i,W as a,_ as o,a as s,b as c,s as l,v as u}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{h as d,o as f}from"./chunk-5PVQY5BW-D8dVtMiH.js";import{t as p}from"./chunk-55IACEB6--yvQRzzZ.js";import{t as m}from"./chunk-EDXVE4YY-PDqXJqq9.js";import{r as h}from"./chunk-336JU56O-AgjSGONQ.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,a,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState(`SCALE`),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin(`acc_title`),33;case 19:return this.popState(),`acc_title_value`;case 20:return this.begin(`acc_descr`),35;case 21:return this.popState(),`acc_descr_value`;case 22:this.begin(`acc_descr_multiline`);break;case 23:this.popState();break;case 24:return`acc_descr_multiline_value`;case 25:return this.pushState(`CLASSDEF`),41;case 26:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 27:return this.popState(),this.pushState(`CLASSDEFID`),42;case 28:return this.popState(),43;case 29:return this.pushState(`CLASS`),48;case 30:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 31:return this.popState(),50;case 32:return this.pushState(`STYLE`),45;case 33:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 34:return this.popState(),47;case 35:return this.pushState(`SCALE`),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState(`STATE`);break;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState(`STATE_STRING`);break;case 50:return this.pushState(`STATE_ID`),`AS`;case 51:return this.popState(),`ID`;case 52:this.popState();break;case 53:return`STATE_DESCR`;case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState(`struct`),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin(`NOTE`),29;case 61:return this.popState(),this.pushState(`NOTE_ID`),59;case 62:return this.popState(),this.pushState(`NOTE_ID`),60;case 63:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 64:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 65:break;case 66:return`NOTE_TEXT`;case 67:return this.popState(),`ID`;case 68:return this.popState(),this.pushState(`NOTE_TEXT`),24;case 69:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 70:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return t.yytext=t.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return`INVALID`}},`anonymous`),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78,79],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}})();function P(){this.yy={}}return t(P,`Parser`),P.prototype=N,N.Parser=P,new P})();g.parser=g;var _=g,v=`TB`,y=`TB`,b=`dir`,x=`state`,S=`root`,C=`relation`,w=`classDef`,T=`style`,E=`applyClass`,D=`default`,O=`divider`,k=`fill:none`,A=`fill: #333`,j=`c`,M=`markdown`,N=`normal`,P=`rect`,F=`rectWithTitle`,ee=`stateStart`,te=`stateEnd`,I=`divider`,L=`roundedWithTitle`,ne=`note`,re=`noteGroup`,R=`statediagram`,ie=`${R}-state`,ae=`transition`,oe=`note`,se=`${ae} note-edge`,ce=`${R}-${oe}`,le=`${R}-cluster`,ue=`${R}-cluster-alt`,z=`parent`,B=`note`,de=`state`,V=`----`,fe=`${V}${B}`,H=`${V}${z}`,U=t((e,t=y)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),pe={getClasses:t(function(e,t){return t.db.getClasses()},`getClasses`),draw:t(async function(t,n,r,i){e.info(`REF0:`),e.info(`Drawing state diagram (v2)`,n);let{securityLevel:a,state:o,layout:s}=c();i.db.extract(i.db.getRootDocV2());let l=i.db.getData(),u=p(n,a);l.type=i.type,l.layoutAlgorithm=s,l.nodeSpacing=o?.nodeSpacing||50,l.rankSpacing=o?.rankSpacing||50,c().look===`neo`?l.markers=[`barbNeo`]:l.markers=[`barb`],l.diagramId=n,await h(l,u);try{(typeof i.db.getLinks==`function`?i.db.getLinks():new Map).forEach((t,n)=>{let r=typeof n==`string`?n:typeof n?.id==`string`?n.id:``;if(!r){e.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(n));return}let i=u.node()?.querySelectorAll(`g`),a;if(i?.forEach(e=>{e.textContent?.trim()===r&&(a=e)}),!a){e.warn(`⚠️ Could not find node matching text:`,r);return}let o=a.parentNode;if(!o){e.warn(`⚠️ Node has no parent, cannot wrap:`,r);return}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),c=t.url.replace(/^"+|"+$/g,``);if(s.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,c),s.setAttribute(`target`,`_blank`),t.tooltip){let e=t.tooltip.replace(/^"+|"+$/g,``);s.setAttribute(`title`,e)}o.replaceChild(s,a),s.appendChild(a),e.info(`🔗 Wrapped node in tag for:`,r,t.url)})}catch(t){e.error(`❌ Error injecting clickable links:`,t)}d.insertTitle(u,`statediagramTitleText`,o?.titleTopMargin??25,i.db.getDiagramTitle()),m(u,8,R,o?.useMaxWidth??!0)},`draw`),getDir:U},W=new Map,G=0;function K(e=``,t=0,n=``,r=V){return`${de}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}t(K,`stateDomId`);var me=t((t,n,r,i,a,o,s,u)=>{e.trace(`items`,n),n.forEach(e=>{switch(e.stmt){case x:X(t,e,r,i,a,o,s,u);break;case D:X(t,e,r,i,a,o,s,u);break;case C:{X(t,e.state1,r,i,a,o,s,u),X(t,e.state2,r,i,a,o,s,u);let n=s===`neo`,d={id:`edge`+G,start:e.state1.id,end:e.state2.id,arrowhead:`normal`,arrowTypeEnd:n?`arrow_barb_neo`:`arrow_barb`,style:k,labelStyle:``,label:l.sanitizeText(e.description??``,c()),arrowheadStyle:A,labelpos:j,labelType:M,thickness:N,classes:ae,look:s};a.push(d),G++}break}})},`setupDoc`),q=t((e,t=y)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`);function J(e,t,n){if(!t.id||t.id===``||t.id===``)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}t(J,`insertOrUpdateNode`);function Y(e){return e?.classes?.join(` `)??``}t(Y,`getClassesFromDbInfo`);function he(e){return e?.styles??[]}t(he,`getStylesFromDbInfo`);var X=t((t,n,r,i,a,o,s,u)=>{let d=n.id,f=r.get(d),p=Y(f),m=he(f),h=c();if(e.info(`dataFetcher parsedItem`,n,f,m),d!==`root`){let r=P;n.start===!0?r=ee:n.start===!1&&(r=te),n.type!==D&&(r=n.type),W.get(d)||W.set(d,{id:d,shape:r,description:l.sanitizeText(d,h),cssClasses:`${p} ${ie}`,cssStyles:m});let c=W.get(d);n.description&&(Array.isArray(c.description)?(c.shape=F,c.description.push(n.description)):c.description?.length&&c.description.length>0?(c.shape=F,c.description===d?c.description=[n.description]:c.description=[c.description,n.description]):(c.shape=P,c.description=n.description),c.description=l.sanitizeTextOrArray(c.description,h)),c.description?.length===1&&c.shape===F&&(c.type===`group`?c.shape=L:c.shape=P),!c.type&&n.doc&&(e.info(`Setting cluster for XCX`,d,q(n)),c.type=`group`,c.isGroup=!0,c.dir=q(n),c.shape=n.type===O?I:L,c.cssClasses=`${c.cssClasses} ${le} ${o?ue:``}`);let f={labelStyle:``,shape:c.shape,label:c.description,cssClasses:c.cssClasses,cssCompiledStyles:[],cssStyles:c.cssStyles,id:d,dir:c.dir,domId:K(d,G),type:c.type,isGroup:c.type===`group`,padding:8,rx:10,ry:10,look:s,labelType:`markdown`};if(f.shape===I&&(f.label=``),t&&t.id!==`root`&&(e.trace(`Setting node `,d,` to be child of its parent `,t.id),f.parentId=t.id),f.centerLabel=!0,n.note){let e={labelStyle:``,shape:ne,label:n.note.text,labelType:`markdown`,cssClasses:ce,cssStyles:[],cssCompiledStyles:[],id:d+fe+`-`+G,domId:K(d,G,B),type:c.type,isGroup:c.type===`group`,padding:h.flowchart?.padding,look:s,position:n.note.position},t=d+H,r={labelStyle:``,shape:re,label:n.note.text,cssClasses:c.cssClasses,cssStyles:[],id:d+H,domId:K(d,G,z),type:`group`,isGroup:!0,padding:16,look:s,position:n.note.position};G++,r.id=t,e.parentId=t,J(i,r,u),J(i,e,u),J(i,f,u);let o=d,l=e.id;n.note.position===`left of`&&(o=e.id,l=d),a.push({id:o+`-`+l,start:o,end:l,arrowhead:`none`,arrowTypeEnd:``,style:k,labelStyle:``,classes:se,arrowheadStyle:A,labelpos:j,labelType:M,thickness:N,look:s})}else J(i,f,u)}n.doc&&(e.trace(`Adding nodes children `),me(n,n.doc,r,i,a,!o,s,u))},`dataFetcher`),ge=t(()=>{W.clear(),G=0},`reset`),Z={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},_e=t(()=>new Map,`newClassesList`),Q=t(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),$=t(e=>JSON.parse(JSON.stringify(e)),`clone`),ve=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=_e(),this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=u,this.setAccTitle=i,this.getAccDescription=o,this.setAccDescription=n,this.setDiagramTitle=a,this.getDiagramTitle=r,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{t(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case x:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case C:this.addRelation(t.state1,t.state2,t.description);break;case w:this.addStyleClass(t.id.trim(),t.classes);break;case T:this.handleStyleDef(t);break;case E:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip);break}let t=this.getStates(),n=c();ge(),X(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(t){e.info(`Setting root doc`,t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===C){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===x&&(t.id===Z.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==S&&t.stmt!==x||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===O){let t=$(e);t.doc=$(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:x,id:f(),type:`divider`,doc:$(i)};r.push($(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:S,stmt:S},{id:S,stmt:S,doc:this.rootDoc},!0),{id:S,doc:this.rootDoc}}addState(t,n=D,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=void 0){let d=t?.trim();if(!this.currentDocument.states.has(d))e.info(`Adding state `,d,i),this.currentDocument.states.set(d,{stmt:x,id:d,descriptions:[],type:n,doc:r,note:a,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(d);if(!e)throw Error(`State not found: ${d}`);e.doc||=r,e.type||=n}if(i&&(e.info(`Setting state description`,d,i),(Array.isArray(i)?i:[i]).forEach(e=>this.addDescription(d,e.trim()))),a){let e=this.currentDocument.states.get(d);if(!e)throw Error(`State not found: ${d}`);e.note=a,e.note.text=l.sanitizeText(e.note.text,c())}o&&(e.info(`Setting state classes`,d,o),(Array.isArray(o)?o:[o]).forEach(e=>this.setCssClass(d,e.trim()))),s&&(e.info(`Setting state styles`,d,s),(Array.isArray(s)?s:[s]).forEach(e=>this.setStyle(d,e.trim()))),u&&(e.info(`Setting state styles`,d,s),(Array.isArray(u)?u:[u]).forEach(e=>this.setTextStyle(d,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=_e(),e||(this.links=new Map,s())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){e.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,n,r){this.links.set(t,{url:n,tooltip:r}),e.warn(`Adding link`,t,n,r)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===Z.START_NODE?(this.startEndCount++,`${Z.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=D){return e===Z.START_NODE?Z.START_TYPE:t}endIdIfNeeded(e=``){return e===Z.END_NODE?(this.startEndCount++,`${Z.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=D){return e===Z.END_NODE?Z.END_TYPE:t}addRelationObjs(e,t,n=``){let r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),a=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(a,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:l.sanitizeText(n,c())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),a=this.endIdIfNeeded(t.trim()),o=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(a,o),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:n?l.sanitizeText(n,c()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(l.sanitizeText(r,c()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(Z.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(Z.COLOR_KEYWORD).exec(e)){let e=t.replace(Z.FILL_KEYWORD,Z.BG_FILL).replace(Z.COLOR_KEYWORD,Z.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===b)}getDirection(){return this.getDirectionStatement()?.value??v}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:b,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=c();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:U(this.getRootDocV2())}}getConfig(){return c().state}},ye=t(e=>` +defs [id$="-barbEnd"] { + fill: ${e.transitionColor}; + stroke: ${e.transitionColor}; + } +g.stateGroup text { + fill: ${e.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${e.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${e.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.stateGroup line { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth||1}; +} + +.transition { + stroke: ${e.transitionColor}; + stroke-width: ${e.strokeWidth||1}; + fill: none; +} + +.stateGroup .composit { + fill: ${e.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; + + text { + fill: ${e.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${e.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; +} +.edgeLabel .label text { + fill: ${e.transitionLabelColor||e.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${e.transitionLabelColor||e.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${e.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; +} + +.node .fork-join { + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; +} + +.node circle.state-end { + fill: ${e.innerEndBackground}; + stroke: ${e.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${e.compositeBackground||e.background}; + // stroke: ${e.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${e.stateBkg||e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth||1}px; +} +.node polygon { + fill: ${e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder};; + stroke-width: ${e.strokeWidth||1}px; +} +[id$="-barbEnd"] { + fill: ${e.lineColor}; +} + +.statediagram-cluster rect { + fill: ${e.compositeTitleBackground}; + stroke: ${e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth||1}px; +} + +.cluster-label, .nodeLabel { + color: ${e.stateLabelColor}; + // line-height: 1; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${e.stateBorder||e.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${e.compositeBackground||e.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${e.altBackground?e.altBackground:`#efefef`}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${e.altBackground?e.altBackground:`#efefef`}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${e.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${e.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${e.noteTextColor}; +} + +[id$="-dependencyStart"], [id$="-dependencyEnd"] { + fill: ${e.lineColor}; + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth||1}; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} + +[data-look="neo"].statediagram-cluster rect { + fill: ${e.mainBkg}; + stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth??1}; +} +[data-look="neo"].statediagram-cluster rect.outer { + rx: ${e.radius}px; + ry: ${e.radius}px; + filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`} +} +`,`getStyles`);export{ye as i,_ as n,pe as r,ve as t}; \ No newline at end of file diff --git a/webui/assets/chunk-QZHKN3VN-2QSUopxc.js b/webui/assets/chunk-QZHKN3VN-2QSUopxc.js new file mode 100644 index 0000000000000000000000000000000000000000..41b2a24efe04da03d3142702a66f43b74289274c --- /dev/null +++ b/webui/assets/chunk-QZHKN3VN-2QSUopxc.js @@ -0,0 +1 @@ +import{h as e}from"./src-DZYWZEqD.js";var t=class{constructor(e){this.init=e,this.records=this.init()}static{e(this,`ImperativeState`)}reset(){this.records=this.init()}};export{t}; \ No newline at end of file diff --git a/webui/assets/chunk-U2HBQHQK-C4Z8_HX4.js b/webui/assets/chunk-U2HBQHQK-C4Z8_HX4.js new file mode 100644 index 0000000000000000000000000000000000000000..af5a48fce6e390a80b6efdd2b57451d1363a25fb --- /dev/null +++ b/webui/assets/chunk-U2HBQHQK-C4Z8_HX4.js @@ -0,0 +1,70 @@ +import{g as e,h as t,p as n}from"./src-DZYWZEqD.js";import{L as r,P as i,k as a,s as o,y as s}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{i as c}from"./chunk-5PVQY5BW-D8dVtMiH.js";var l=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d=Object.freeze({...l,...u}),f=Object.freeze({...d,body:``,hidden:!1}),p=Object.freeze({width:null,height:null}),m=Object.freeze({...p,...u}),h=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!g(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!g(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!g(e,n)?null:e}return null},g=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function ee(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function te(e,t){let n=ee(e,t);for(let r in f)r in u?r in e&&!(r in n)&&(n[r]=u[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ne(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function re(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=te(r[e]||i[e],a)}return o(t),n.forEach(o),te(e,a)}function ie(e,t){if(e.icons[t])return re(e,t,[]);let n=ne(e,[t])[t];return n?re(e,t,n):null}var ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function se(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ae);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ce(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(``,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function le(e,t){return e?``+e+``+t:t}function ue(e,t,n){let r=ce(e);return le(r.defs,t+r.content+n)}var de=e=>e===`unset`||e===`undefined`||e===`none`;function fe(e,t){let n={...d,...e},r={...m,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=ue(a,``,``))});let o=r.width,s=r.height,c=i.width,l=i.height,u,f;o===null?(f=s===null?`1em`:s===`auto`?l:s,u=se(f,c/l)):(u=o===`auto`?c:o,f=s===null?se(u,l/c):s===`auto`?l:s);let p={},h=(e,t)=>{de(t)||(p[e]=t.toString())};h(`width`,u),h(`height`,f);let g=[i.left,i.top,c,l];return p.viewBox=g.join(` `),{attributes:p,viewBox:g,body:a}}var pe=/\sid="(\S+)"/g,me=new Map;function he(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=me.get(e)||0;return me.set(e,t+1),t?`${e}${t}`:e}function ge(e){let t=[],n;for(;n=pe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=he(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function _e(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return``+e+``}function _(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=_();function ve(e){v=e}var y={exec:()=>null};function b(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(x.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ye=(()=>{try{return!0}catch{return!1}})(),x={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:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,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+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},be=/^(?:[ \t]*(?:\n|$))+/,xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,S=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ce=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,we=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Te=b(we).replace(/bull/g,C).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(),Ee=b(we).replace(/bull/g,C).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(),w=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,T=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oe=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,T).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ke=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),E=`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`,D=/|$))/,Ae=b(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,D).replace(`tag`,E).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),je=b(w).replace(`hr`,S).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`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),O={blockquote:b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,je).getRegex(),code:xe,def:Oe,fences:Se,heading:Ce,hr:S,html:Ae,lheading:Te,list:ke,newline:be,paragraph:je,table:y,text:De},Me=b(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,S).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`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),Ne={...O,lheading:Ee,table:Me,paragraph:b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex()},Pe={...O,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,D).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(w).replace(`hr`,S).replace(`heading`,` *#{1,6} *[^ +]`).replace(`lheading`,Te).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Fe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ie=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Le=/^( {2,}|\\)\n(?!\s*$)/,Re=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,ye?"(?`+)[^`]+\k(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Ge=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ke=b(Ge,`u`).replace(/punct/g,k).getRegex(),qe=b(Ge,`u`).replace(/punct/g,Ve).getRegex(),Je=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Ye=b(Je,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,A).replace(/punct/g,k).getRegex(),Xe=b(Je,`gu`).replace(/notPunctSpace/g,Ue).replace(/punctSpace/g,He).replace(/punct/g,Ve).getRegex(),Ze=b(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,A).replace(/punct/g,k).getRegex(),Qe=b(/\\(punct)/,`gu`).replace(/punct/g,k).getRegex(),$e=b(/^<(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(),et=b(D).replace(`(?:-->|$)`,`-->`).getRegex(),tt=b(`^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^`).replace(`comment`,et).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),j=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,nt=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,j).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rt=b(/^!?\[(label)\]\[(ref)\]/).replace(`label`,j).replace(`ref`,T).getRegex(),it=b(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,T).getRegex(),at=b(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,rt).replace(`nolink`,it).getRegex(),ot=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,M={_backpedal:y,anyPunctuation:Qe,autolink:$e,blockSkip:We,br:Le,code:Ie,del:y,emStrongLDelim:Ke,emStrongRDelimAst:Ye,emStrongRDelimUnd:Ze,escape:Fe,link:nt,nolink:it,punctuation:Be,reflink:rt,reflinkSearch:at,tag:tt,text:Re,url:y},st={...M,link:b(/^!?\[(label)\]\((.*?)\)/).replace(`label`,j).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,j).getRegex()},N={...M,emStrongRDelimAst:Xe,emStrongLDelim:qe,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,ot).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":`>`,'"':`"`,"'":`'`},ut=e=>lt[e];function I(e,t){if(t){if(x.escapeTest.test(e))return e.replace(x.escapeReplace,ut)}else if(x.escapeTestNoEncode.test(e))return e.replace(x.escapeReplaceNoEncode,ut);return e}function dt(e){try{e=encodeURI(e).replace(x.percentDecode,`%`)}catch{return null}return e}function ft(e,t){let n=e.replace(x.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(x.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length0?-2:-1}function mt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function ht(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` +`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` +`)}var R=class{options;rules;lexer;constructor(e){this.options=e||v}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:L(e,` +`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=ht(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=L(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:L(t[0],` +`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=L(t[0],` +`).split(` +`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(` +`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+` +`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(` +`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=` +`+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=` +`+l}!u&&!l.trim()&&(u=!0),r+=f+` +`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;ee.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let 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){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` +`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let 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){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let 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){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=L(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=pt(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),mt(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return mt(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let 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){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},z=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||v,this.options.tokenizer=this.options.tokenizer||new R,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:x,block:P.normal,inline:F.normal};this.options.pedantic?(t.block=P.pedantic,t.inline=F.pedantic):this.options.gfm&&(t.block=P.gfm,this.options.breaks?t.inline=F.breaks:t.inline=F.gfm),this.tokenizer.rules=t}static get rules(){return{block:P,inline:F}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(x.carriageReturn,` +`),this.blockTokens(e,this.tokens);for(let e=0;e(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=` +`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(` +`)?``:` +`)+r.raw,a.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},B=class{options;parser;constructor(e){this.options=e||v}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(x.notSpaceStart)?.[0],i=e.replace(x.endingNewline,``)+` +`;return r?`
`+(n?i:I(i,!0))+`
+`:`
`+(n?i:I(i,!0))+`
+`}blockquote({tokens:e}){return`
+${this.parser.parse(e)}
+`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} +`}hr(e){return`
+`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t +`+r+` +`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.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+` `+I(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),`
  • ${t}
  • +`}checkbox({checked:e}){return``}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    +`}table(e){let t=``,n=``;for(let t=0;t${r}`,` + +`+t+` +`+r+`
    +`}tablerow({text:e}){return` +${e} +`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${I(e,!0)}`}br(e){return`
    `}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=dt(e);if(i===null)return r;e=i;let a=`
    `+r+``,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=dt(e);if(i===null)return I(n);e=i;let a=`${n}`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:I(e.text)}},V=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``}},H=class e{options;renderer;textRenderer;constructor(e){this.options=e||v,this.options.renderer=this.options.renderer||new B,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new V}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new B(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new R(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new U;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];U.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&U.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return z.lex(e,t??this.defaults)}parser(e,t){return H.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(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 t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?z.lex:z.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?H.parse:H.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?z.lex:z.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?H.parse:H.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let e=`

    An error occurred:

    `+I(n.message+``,!0)+`
    `;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function G(e,t){return W.parse(e,t)}G.options=G.setOptions=function(e){return W.setOptions(e),G.defaults=W.defaults,ve(G.defaults),G},G.getDefaults=_,G.defaults=v,G.use=function(...e){return W.use(...e),G.defaults=W.defaults,ve(G.defaults),G},G.walkTokens=function(e,t){return W.walkTokens(e,t)},G.parseInline=W.parseInline,G.Parser=H,G.parser=H.parse,G.Renderer=B,G.TextRenderer=V,G.Lexer=z,G.lexer=z.lex,G.Tokenizer=R,G.Hooks=U,G.parse=G,G.options,G.setOptions,G.use,G.walkTokens,G.parseInline,H.parse,z.lex;function gt(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(` +[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,` +`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(` +`)&&(o=String(e).split(` +`).map(function(e,t){return t===0?e:``+i+e}).join(` +`)),a+=o+n[t+1]}),a}var _t={body:`?`,height:80,width:80},K=new Map,vt=new Map,yt=t(t=>{for(let n of t){if(!n.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(e.debug(`Registering icon pack:`,n.name),`loader`in n)vt.set(n.name,n.loader);else if(`icons`in n)K.set(n.name,n.icons);else throw e.error(`Invalid icon loader:`,n),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),bt=t(async(t,n)=>{let r=h(t,!0,n!==void 0);if(!r)throw Error(`Invalid icon name: ${t}`);let i=r.prefix||n;if(!i)throw Error(`Icon name must contain a prefix: ${t}`);let a=K.get(i);if(!a){let t=vt.get(i);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:i},K.set(i,a)}catch(t){throw e.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let o=ie(a,r.name);if(!o)throw Error(`Icon not found: ${t}`);return o},`getRegisteredIconData`),xt=t(async e=>{try{return await bt(e),!0}catch{return!1}},`isIconAvailable`),St=t(async(t,n,i)=>{let a;try{a=await bt(t,n?.fallbackPrefix)}catch(t){e.error(t),a=_t}let o=fe(a,n);return r(_e(ge(o.body),{...o.attributes,...i}),s())},`getIconSVG`);function Ct(e,{markdownAutoWrap:t}){return gt(e.replace(//g,` +`).replace(/\n{2,}/g,` +`))}t(Ct,`preprocessMarkdown`);function wt(e){return e.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:`normal`}))??[])}t(wt,`nonMarkdownToLines`);function Tt(e,n={}){let r=Ct(e,n),i=G.lexer(r),a=[[]],o=0;function s(e,t=`normal`){e.type===`text`?e.text.split(` +`).forEach((e,n)=>{n!==0&&(o++,a.push([])),e.split(` `).forEach(e=>{e=e.replace(/'/g,`'`),e&&a[o].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{s(t,e.type)}):e.type===`html`&&a[o].push({content:e.text,type:`normal`})}return t(s,`processNode`),i.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{s(e)}):e.type===`html`?a[o].push({content:e.text,type:`normal`}):a[o].push({content:e.raw,type:`normal`})}),a}t(Tt,`markdownToLines`);function Et(e){return e?`

    ${e.replace(/\\n|\n/g,`
    `)}

    `:``}t(Et,`nonMarkdownToHTML`);function Dt(n,{markdownAutoWrap:r}={}){let i=G.lexer(n);function a(t){return t.type===`text`?r===!1?t.text.replace(/\n */g,`
    `).replace(/ /g,` `):t.text.replace(/\n */g,`
    `):t.type===`strong`?`${t.tokens?.map(a).join(``)}`:t.type===`em`?`${t.tokens?.map(a).join(``)}`:t.type===`paragraph`?`

    ${t.tokens?.map(a).join(``)}

    `:t.type===`space`?``:t.type===`html`?`${t.text}`:t.type===`escape`?t.text:(e.warn(`Unsupported markdown: ${t.type}`),t.raw)}return t(a,`output`),i.map(a).join(``)}t(Dt,`markdownToHTML`);function Ot(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}t(Ot,`splitTextToChars`);function kt(e,t){return q(e,[],Ot(t.content),t.type)}t(kt,`splitWordToFitWidth`);function q(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?q(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}t(q,`splitWordToFitWidthRecursion`);function At(e,t){if(e.some(({content:e})=>e.includes(` +`)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return J(e,t)}t(At,`splitLineToFitWidth`);function J(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return J(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=kt(t,a);n.push([r]),i.content&&e.unshift(i)}return J(e,t,n)}t(J,`splitLineToFitWidthRecursion`);function Y(e,t){t&&e.attr(`style`,t)}t(Y,`applyStyle`);var jt=16384;async function Mt(e,t,n,c,l=!1,u=s()){let d=e.append(`foreignObject`);d.attr(`width`,`${Math.min(10*n,jt)}px`),d.attr(`height`,`${Math.min(10*n,jt)}px`);let f=d.append(`xhtml:div`),p=a(t.label)?await i(t.label.replace(o.lineBreakRegex,` +`),u):r(t.label,u),m=t.isNode?`nodeLabel`:`edgeLabel`,h=f.append(`span`);h.html(p),Y(h,t.labelStyle),h.attr(`class`,`${m} ${c}`),Y(f,t.labelStyle),f.style(`display`,`table-cell`),f.style(`white-space`,`nowrap`),f.style(`line-height`,`1.5`),n!==1/0&&(f.style(`max-width`,n+`px`),f.style(`text-align`,`center`)),f.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),l&&f.attr(`class`,`labelBkg`);let g=f.node().getBoundingClientRect();return g.width===n&&(f.style(`display`,`table`),f.style(`white-space`,`break-spaces`),f.style(`width`,n+`px`),g=f.node().getBoundingClientRect()),d.node()}t(Mt,`addHtmlSpan`);function X(e,t,n,r=!1){let i=e.append(`tspan`).attr(`class`,`text-outer-tspan`).attr(`x`,0).attr(`y`,t*n-.1+`em`).attr(`dy`,n+`em`);return r&&i.attr(`text-anchor`,`middle`),i}t(X,`createTspan`);function Nt(e,t,n){let r=e.append(`text`),i=X(r,1,t);$(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}t(Nt,`computeWidthOfText`);function Pt(e,t,n){let r=e.append(`text`),i=X(r,1,t);$(i,[{content:n,type:`normal`}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}t(Pt,`computeDimensionOfText`);function Z(e,n,r,i=!1,a=!1){let o=1.1,s=n.append(`g`),c=s.insert(`rect`).attr(`class`,`background`).attr(`style`,`stroke: none`),l=s.append(`text`).attr(`y`,`-10.1`);a&&l.attr(`text-anchor`,`middle`);let u=0;for(let n of r){let r=t(t=>Nt(s,o,t)<=e,`checkWidth`),i=r(n)?[n]:At(n,r);for(let e of i)$(X(l,u,o,a),e),u++}if(i){let e=l.node().getBBox();return c.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),s.node()}else return l.node()}t(Z,`createFormattedText`);function Q(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}t(Q,`decodeHTMLEntities`);function $(e,t){e.text(``),t.forEach((t,n)=>{let r=e.append(`tspan`).attr(`font-style`,t.type===`em`?`italic`:`normal`).attr(`class`,`text-inner-tspan`).attr(`font-weight`,t.type===`strong`?`bold`:`normal`);n===0?r.text(Q(t.content)):r.text(` `+Q(t.content))})}t($,`updateTextContentAndStyles`);async function Ft(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,i,a)=>(n.push((async()=>{let n=`${i}:${a}`;return await xt(n)?await St(n,void 0,{class:`label-icon`}):``})()),e));let i=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??``)}t(Ft,`replaceIconSubstring`);var It=t(async(t,r=``,{style:i=``,isTitle:o=!1,classes:s=``,useHtmlLabels:l=!0,markdown:u=!0,isNode:d=!0,width:f=200,addSvgBackground:p=!1}={},m)=>{if(e.debug(`XYZ createText`,r,i,o,s,l,d,`addSvgBackground: `,p),l){let e=await Ft(c(u?Dt(r,m):Et(r)),m),n=r.replace(/\\\\/g,`\\`);return await Mt(t,{isNode:d,label:a(r)?n:e,labelStyle:i.replace(`fill:`,`color:`)},f,s,p,m)}else{let e=c(r.replace(//g,`
    `)),a=Z(f,t,u?Tt(e.replace(`
    `,`
    `),m):wt(e),r?p:!1,!d);if(d){/stroke:/.exec(i)&&(i=i.replace(`stroke:`,`lineColor:`));let e=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);n(a).attr(`style`,e)}else{let e=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);n(a).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let t=i.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);n(a).select(`text`).attr(`style`,t)}return o?n(a).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):n(a).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),a}},`createText`);export{_t as a,yt as i,It as n,gt as o,St as r,Pt as t}; \ No newline at end of file diff --git a/webui/assets/chunk-X2U36JSP-BrQ3X179.js b/webui/assets/chunk-X2U36JSP-BrQ3X179.js new file mode 100644 index 0000000000000000000000000000000000000000..fdc225f25dfb6a6d7b59e902ec62c115db8e8583 --- /dev/null +++ b/webui/assets/chunk-X2U36JSP-BrQ3X179.js @@ -0,0 +1 @@ +import{h as e}from"./src-DZYWZEqD.js";import{b as t}from"./chunk-ICPOFSXX-BhJj4Z4R.js";var n=e(e=>{let{handDrawnSeed:n}=t();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e(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`),o=e(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{s as a,o as i,a as n,n as r,r as t}; \ No newline at end of file diff --git a/webui/assets/chunk-XPW4576I-DVyaFXvV.js b/webui/assets/chunk-XPW4576I-DVyaFXvV.js new file mode 100644 index 0000000000000000000000000000000000000000..987e7c3ca6920b891ecd3bc74395c82db131cb47 --- /dev/null +++ b/webui/assets/chunk-XPW4576I-DVyaFXvV.js @@ -0,0 +1,32 @@ +import{h as e}from"./src-DZYWZEqD.js";function t(e){return e==null}e(t,`isNothing`);function n(e){return typeof e==`object`&&!!e}e(n,`isObject`);function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}e(r,`toArray`);function i(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;ns&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}e(d,`getLine`);function f(e,t){return s.repeat(` `,t-e.length)+e}e(f,`padStart`);function p(e,t){if(t=Object.create(t||null),!e.buffer)return null;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 n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var c=``,l,u,p=Math.min(e.line+t.linesAfter,i.length).toString().length,m=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)u=d(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),m),c=s.repeat(` `,t.indent)+f((e.line-l+1).toString(),p)+` | `+u.str+` +`+c;for(u=d(e.buffer,r[o],i[o],e.position,m),c+=s.repeat(` `,t.indent)+f((e.line+1).toString(),p)+` | `+u.str+` +`,c+=s.repeat(`-`,t.indent+p+3+u.pos)+`^ +`,l=1;l<=t.linesAfter&&!(o+l>=i.length);l++)u=d(e.buffer,r[o+l],i[o+l],e.position-(r[o]-r[o+l]),m),c+=s.repeat(` `,t.indent)+f((e.line+l+1).toString(),p)+` | `+u.str+` +`;return c.replace(/\n$/,``)}e(p,`makeSnippet`);var m=p,h=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],g=[`scalar`,`sequence`,`mapping`];function _(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}e(_,`compileStyleAliases`);function v(e,t){if(t||={},Object.keys(t).forEach(function(t){if(h.indexOf(t)===-1)throw new u(`Unknown option "`+t+`" 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(e){return e},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=_(t.styleAliases||null),g.indexOf(this.kind)===-1)throw new u(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}e(v,`Type$1`);var y=v;function b(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}e(b,`compileList`);function ee(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;function i(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}for(e(i,`collectType`),n=0,r=arguments.length;n=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:e(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:e(function(e){return e.toString(10)},`decimal`),hexadecimal:e(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`]}}),_e=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ve(e){return!(e===null||!_e.test(e)||e[e.length-1]===`_`)}e(ve,`resolveYamlFloat`);function ye(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}e(ye,`constructYamlFloat`);var be=/^[-+]?[0-9]+e/;function xe(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(s.isNegativeZero(e))return`-0.0`;return n=e.toString(10),be.test(n)?n.replace(`e`,`.e`):n}e(xe,`representYamlFloat`);function Se(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||s.isNegativeZero(e))}e(Se,`isFloat`);var Ce=new y(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:ve,construct:ye,predicate:Se,represent:xe,defaultStyle:`lowercase`}),we=te.extend({implicit:[ae,le,ge,Ce]}),Te=we,Ee=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),De=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 Oe(e){return e===null?!1:Ee.exec(e)!==null||De.exec(e)!==null}e(Oe,`resolveYamlTimestamp`);function ke(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=Ee.exec(e),t===null&&(t=De.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}e(ke,`constructYamlTimestamp`);function Ae(e){return e.toISOString()}e(Ae,`representYamlTimestamp`);var je=new y(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:Oe,construct:ke,instanceOf:Date,represent:Ae});function Me(e){return e===`<<`||e===null}e(Me,`resolveYamlMerge`);var Ne=new y(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:Me}),S=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Pe(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=S;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0}e(Pe,`resolveYamlBinary`);function Fe(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=S,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}e(Fe,`constructYamlBinary`);function Ie(e){var t=``,n=0,r,i,a=e.length,o=S;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}e(Ie,`representYamlBinary`);function Le(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}e(Le,`isBinary`);var Re=new y(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:Pe,construct:Fe,predicate:Le,represent:Ie}),ze=Object.prototype.hasOwnProperty,Be=Object.prototype.toString;function Ve(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}e(ft,`charFromCodepoint`);function pt(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}e(pt,`setProperty`);var mt=Array(256),ht=Array(256);for(M=0;M<256;M++)mt[M]=+!!dt(M),ht[M]=dt(M);var M;function gt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Qe,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=[]}e(gt,`State$1`);function _t(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=m(n),new u(t,n)}e(_t,`generateError`);function N(e,t){throw _t(e,t)}e(N,`throwError`);function P(e,t){e.onWarning&&e.onWarning.call(null,_t(e,t))}e(P,`throwWarning`);var vt={YAML:e(function(e,t,n){var r,i,a;e.version!==null&&N(e,`duplication of %YAML directive`),n.length!==1&&N(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&N(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&N(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&P(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:e(function(e,t,n){var r,i;n.length!==2&&N(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],ot.test(r)||N(e,`ill-formed tag handle (first argument) of the TAG directive`),C.call(e.tagMap,r)&&N(e,`there is a previously declared suffix for "`+r+`" tag handle`),st.test(i)||N(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{N(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i},`handleTagDirective`)};function F(e,t,n,r){var i,a,o,s;if(t1&&(e.result+=s.repeat(` +`,t-1))}e(B,`writeFoldedLines`);function bt(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(A(p)||j(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),A(i)||n&&j(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),A(i)||n&&j(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),A(r))break}else if(e.position===e.lineStart&&z(e)||n&&j(p))break;else if(O(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,R(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(F(e,a,o,!1),B(e,e.line-c),a=o=e.position,!1),k(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return F(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}e(bt,`readPlainScalar`);function xt(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(F(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else O(n)?(F(e,r,i,!0),B(e,R(e,!1,t)),r=i=e.position):e.position===e.lineStart&&z(e)?N(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);N(e,`unexpected end of the stream within a single quoted scalar`)}e(xt,`readSingleQuotedScalar`);function St(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return F(e,n,e.position,!0),e.position++,!0;else if(s===92){if(F(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),O(s))R(e,!1,t);else if(s<256&&mt[s])e.result+=ht[s],e.position++;else if((o=lt(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=ct(s))>=0?a=(a<<4)+o:N(e,`expected hexadecimal character`);e.result+=ft(a),e.position++}else N(e,`unknown escape sequence`);n=r=e.position}else O(s)?(F(e,n,r,!0),B(e,R(e,!1,t)),n=r=e.position):e.position===e.lineStart&&z(e)?N(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);N(e,`unexpected end of the stream within a double quoted scalar`)}e(St,`readDoubleQuotedScalar`);function Ct(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(R(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&N(e,`expected the node content, but found ','`):N(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),A(l)&&(d=f=!0,e.position++,R(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,V(e,t,w,!1,!0),g=e.tag,h=e.result,R(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),R(e,!0,t),V(e,t,w,!1,!0),_=e.result),p?I(e,s,m,g,h,_,r,i,a):d?s.push(I(e,null,m,g,h,_,r,i,a)):s.push(h),R(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}N(e,`unexpected end of the stream within a flow collection`)}e(Ct,`readFlowCollection`);function wt(e,t){var n,r,i=E,a=!1,o=!1,c=t,l=0,u=!1,d,f=e.input.charCodeAt(e.position);if(f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)E===i?i=f===43?nt:tt:N(e,`repeat of a chomping mode identifier`);else if((d=ut(f))>=0)d===0?N(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?N(e,`repeat of an indentation width identifier`):(c=t+d-1,o=!0);else break;if(k(f)){do f=e.input.charCodeAt(++e.position);while(k(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!O(f)&&f!==0)}for(;f!==0;){for(L(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndentc&&(c=e.lineIndent),O(f)){l++;continue}if(e.lineIndentt)&&c!==0)N(e,`bad indentation of a sequence entry`);else if(e.lineIndentt)&&(g&&(o=e.line,s=e.lineStart,c=e.position),V(e,t,T,!0,i)&&(g?m=e.result:h=e.result),g||(I(e,d,f,p,m,h,o,s,c),p=m=h=null),R(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)N(e,`bad indentation of a mapping entry`);else if(e.lineIndentt?c=1:e.lineIndent===t?c=0:e.lineIndentt?c=1:e.lineIndent===t?c=0:e.lineIndent tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d`),e.result!==null&&m.kind!==e.kind&&N(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):N(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}e(V,`composeNode`);function At(e){var t=e.position,n,r,i,a=!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&&(R(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!A(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&N(e,`directive name must not be less than one character in length`);o!==0;){for(;k(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!O(o));break}if(O(o))break;for(n=e.position;o!==0&&!A(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&L(e),C.call(vt,r)?vt[r](e,r,i):P(e,`unknown document directive "`+r+`"`)}if(R(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,R(e,!0,-1)):a&&N(e,`directives end mark is expected`),V(e,e.lineIndent-1,T,!1,!0),R(e,!0,-1),e.checkLineBreaks&&it.test(e.input.slice(t,e.position))&&P(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&z(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R(e,!0,-1));return}if(e.position=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}e(Y,`codePointAt`);function yn(e){return/^\n* /.test(e)}e(yn,`needIndentIndicator`);var bn=1,xn=2,Sn=3,Cn=4,X=5;function wn(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=_n(Y(e,0))&&vn(Y(e,e.length-1));if(t||o)for(c=0;c=65536?c+=2:c++){if(l=Y(e,c),!J(l))return X;h&&=gn(l,u,s),u=l}else{for(c=0;c=65536?c+=2:c++){if(l=Y(e,c),l===H)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!J(l))return X;h&&=gn(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?bn:a===G?X:xn:n>9&&yn(e)?X:o?a===G?X:xn:f?Cn:Sn}e(wn,`chooseScalarStyle`);function Tn(t,n,r,i,a){t.dump=(function(){if(n.length===0)return t.quotingType===G?`""`:`''`;if(!t.noCompatMode&&(sn.indexOf(n)!==-1||cn.test(n)))return t.quotingType===G?`"`+n+`"`:`'`+n+`'`;var o=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),c=i||t.flowLevel>-1&&r>=t.flowLevel;function l(e){return mn(t,e)}switch(e(l,`testAmbiguity`),wn(n,c,t.indent,s,l,t.quotingType,t.forceQuotes&&!i,a)){case bn:return n;case xn:return`'`+n.replace(/'/g,`''`)+`'`;case Sn:return`|`+En(n,t.indent)+Dn(pn(n,o));case Cn:return`>`+En(n,t.indent)+Dn(pn(On(n,s),o));case X:return`"`+An(n)+`"`;default:throw new u(`impossible error: invalid scalar style`)}})()}e(Tn,`writeScalar`);function En(e,t){var n=yn(e)?String(t):``,r=e[e.length-1]===` +`;return n+(r&&(e[e.length-2]===` +`||e===` +`)?`+`:r?``:`-`)+` +`}e(En,`blockHeader`);function Dn(e){return e[e.length-1]===` +`?e.slice(0,-1):e}e(Dn,`dropEndingNewline`);function On(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var r=e.indexOf(` +`);return r=r===-1?e.length:r,n.lastIndex=r,kn(e.slice(0,r),t)})(),i=e[0]===` +`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?` +`:``)+kn(c,t),i=a}return r}e(On,`foldString`);function kn(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=` +`+e.slice(i,a),i=a+1),o=s;return c+=` +`,e.length-i>t&&o>i?c+=e.slice(i,o)+` +`+e.slice(o+1):c+=e.slice(i),c.slice(1)}e(kn,`foldLine`);function An(e){for(var t=``,n=0,r,i=0;i=65536?i+=2:i++)n=Y(e,i),r=W[n],!r&&J(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||un(n);return t}e(An,`escapeString`);function jn(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),Q(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}e(Nn,`writeFlowMapping`);function Pn(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,d,f,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new u(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s1024,f&&(e.dump&&H===e.dump.charCodeAt(0)?p+=`?`:p+=`? `),p+=e.dump,f&&(p+=K(e,t)),Q(e,t+1,d,!0,f)&&(e.dump&&H===e.dump.charCodeAt(0)?p+=`:`:p+=`: `,p+=e.dump,i+=p));e.tag=a,e.dump=i||`{}`}e(Pn,`writeBlockMapping`);function Z(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}e(Z,`detectType`);function Q(e,t,n,r,i,a,o){e.tag=null,e.dump=n,Z(e,n,!1)||Z(e,n,!0);var s=Ft.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var d=s===`[object Object]`||s===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(n),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(Pn(e,t,e.dump,i),p&&(e.dump=`&ref_`+f+e.dump)):(Nn(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Mn(e,t-1,e.dump,i):Mn(e,t,e.dump,i),p&&(e.dump=`&ref_`+f+e.dump)):(jn(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&Tn(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new u(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}e(Q,`writeNode`);function Fn(e,t){var n=[],r=[],i,a;for($(e,n,r),i=0,a=r.length;i{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=e((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=e((e,t)=>{let r=t.text.replace(n,` `),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.attr(`class`,`legend`),i.style(`text-anchor`,t.anchor),t.class&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.text(r),i},`drawText`),c=e((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=e((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=e(()=>{let e=t(`.mermaidTooltip`);return e.empty()&&(e=t(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t}; \ No newline at end of file diff --git a/webui/assets/chunk-ZZ45TVLE-620quLQs.js b/webui/assets/chunk-ZZ45TVLE-620quLQs.js new file mode 100644 index 0000000000000000000000000000000000000000..4953b6cf7f809bc4f2f00c73aff3c9470571ec4e --- /dev/null +++ b/webui/assets/chunk-ZZ45TVLE-620quLQs.js @@ -0,0 +1 @@ +import{h as e}from"./src-DZYWZEqD.js";import{b as t,d as n}from"./chunk-ICPOFSXX-BhJj4Z4R.js";import{f as r}from"./chunk-5PVQY5BW-D8dVtMiH.js";var i=e(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function a(i,a){let o=i.getElementsByTagName(`img`);if(!o||o.length===0)return;let s=a.replace(/]*>/g,``).trim()===``;await Promise.all([...o].map(i=>new Promise(a=>{function o(){if(i.style.display=`flex`,i.style.flexDirection=`column`,s){let[e=n.fontSize]=r(t().fontSize?t().fontSize:window.getComputedStyle(document.body).fontSize),a=e*5+`px`;i.style.minWidth=a,i.style.maxWidth=a}else i.style.width=`100%`;a(i)}e(o,`setupImage`),setTimeout(()=>{i.complete&&o()}),i.addEventListener(`error`,o),i.addEventListener(`load`,o)})))}e(a,`configureLabelImages`);export{i as n,a as t}; \ No newline at end of file diff --git a/webui/assets/classDiagram-6PBFFD2Q-B27gSSEE.js b/webui/assets/classDiagram-6PBFFD2Q-B27gSSEE.js new file mode 100644 index 0000000000000000000000000000000000000000..5f1f442c39e8ba3cd3b564740a41f0f93376c69c --- /dev/null +++ b/webui/assets/classDiagram-6PBFFD2Q-B27gSSEE.js @@ -0,0 +1 @@ +import{h as e}from"./src-DZYWZEqD.js";import"./chunk-ICPOFSXX-BhJj4Z4R.js";import"./chunk-5PVQY5BW-D8dVtMiH.js";import"./chunk-U2HBQHQK-C4Z8_HX4.js";import"./chunk-FMBD7UC4-CZ7KcSyF.js";import"./chunk-BSJP7CBP-DfPpUNd1.js";import"./chunk-ZZ45TVLE-620quLQs.js";import"./chunk-YZCP3GAM-BG6I4L-b.js";import"./chunk-55IACEB6--yvQRzzZ.js";import"./chunk-EDXVE4YY-PDqXJqq9.js";import"./chunk-X2U36JSP-BrQ3X179.js";import"./chunk-5FUZZQ4R-dz-eHLU2.js";import"./chunk-ENJZ2VHE-BgCfVyME.js";import"./chunk-336JU56O-AgjSGONQ.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-WLjZEI1j.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram}; \ No newline at end of file diff --git a/webui/assets/classDiagram-v2-HSJHXN6E-DLLT_toe.js b/webui/assets/classDiagram-v2-HSJHXN6E-DLLT_toe.js new file mode 100644 index 0000000000000000000000000000000000000000..5f1f442c39e8ba3cd3b564740a41f0f93376c69c --- /dev/null +++ b/webui/assets/classDiagram-v2-HSJHXN6E-DLLT_toe.js @@ -0,0 +1 @@ +import{h as e}from"./src-DZYWZEqD.js";import"./chunk-ICPOFSXX-BhJj4Z4R.js";import"./chunk-5PVQY5BW-D8dVtMiH.js";import"./chunk-U2HBQHQK-C4Z8_HX4.js";import"./chunk-FMBD7UC4-CZ7KcSyF.js";import"./chunk-BSJP7CBP-DfPpUNd1.js";import"./chunk-ZZ45TVLE-620quLQs.js";import"./chunk-YZCP3GAM-BG6I4L-b.js";import"./chunk-55IACEB6--yvQRzzZ.js";import"./chunk-EDXVE4YY-PDqXJqq9.js";import"./chunk-X2U36JSP-BrQ3X179.js";import"./chunk-5FUZZQ4R-dz-eHLU2.js";import"./chunk-ENJZ2VHE-BgCfVyME.js";import"./chunk-336JU56O-AgjSGONQ.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-WLjZEI1j.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram}; \ No newline at end of file diff --git a/webui/assets/clipboard-BulqpJ4r.js b/webui/assets/clipboard-BulqpJ4r.js new file mode 100644 index 0000000000000000000000000000000000000000..5c9fd2977d89c24bda99e58d913a2725f4cd378c --- /dev/null +++ b/webui/assets/clipboard-BulqpJ4r.js @@ -0,0 +1 @@ +async function e(e){if(typeof navigator<`u`&&navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch{}if(typeof document>`u`)return!1;let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.width=`1px`,t.style.height=`1px`,t.style.padding=`0`,t.style.border=`none`,t.style.outline=`none`,t.style.boxShadow=`none`,t.style.background=`transparent`,t.style.opacity=`0`,document.body.appendChild(t);let n=!1;try{t.focus(),t.select(),t.setSelectionRange(0,e.length),n=document.execCommand(`copy`)}catch{n=!1}finally{document.body.removeChild(t)}return n}export{e as t}; \ No newline at end of file diff --git a/webui/assets/clojure-BWDPO2x4.js b/webui/assets/clojure-BWDPO2x4.js new file mode 100644 index 0000000000000000000000000000000000000000..5c1d7ec565638c7183d3fbd855163a951929f7e6 --- /dev/null +++ b/webui/assets/clojure-BWDPO2x4.js @@ -0,0 +1 @@ +var e={comments:{lineComment:`;;`},brackets:[[`[`,`]`],[`(`,`)`],[`{`,`}`]],autoClosingPairs:[{open:`[`,close:`]`},{open:`"`,close:`"`},{open:`(`,close:`)`},{open:`{`,close:`}`}],surroundingPairs:[{open:`[`,close:`]`},{open:`"`,close:`"`},{open:`(`,close:`)`},{open:`{`,close:`}`}]},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.clj`,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`{`,close:`}`,token:`delimiter.curly`}],constants:[`true`,`false`,`nil`],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[`.`,`catch`,`def`,`do`,`if`,`monitor-enter`,`monitor-exit`,`new`,`quote`,`recur`,`set!`,`throw`,`try`,`var`],coreSymbols:`*,*',*1,*2,*3,*agent*,*allow-unresolved-vars*,*assert*,*clojure-version*,*command-line-args*,*compile-files*,*compile-path*,*compiler-options*,*data-readers*,*default-data-reader-fn*,*e,*err*,*file*,*flush-on-newline*,*fn-loader*,*in*,*math-context*,*ns*,*out*,*print-dup*,*print-length*,*print-level*,*print-meta*,*print-namespace-maps*,*print-readably*,*read-eval*,*reader-resolver*,*source-path*,*suppress-read*,*unchecked-math*,*use-context-classloader*,*verbose-defrecords*,*warn-on-reflection*,+,+',-,-',->,->>,->ArrayChunk,->Eduction,->Vec,->VecNode,->VecSeq,-cache-protocol-fn,-reset-methods,..,/,<,<=,=,==,>,>=,EMPTY-NODE,Inst,StackTraceElement->vec,Throwable->map,accessor,aclone,add-classpath,add-watch,agent,agent-error,agent-errors,aget,alength,alias,all-ns,alter,alter-meta!,alter-var-root,amap,ancestors,and,any?,apply,areduce,array-map,as->,aset,aset-boolean,aset-byte,aset-char,aset-double,aset-float,aset-int,aset-long,aset-short,assert,assoc,assoc!,assoc-in,associative?,atom,await,await-for,await1,bases,bean,bigdec,bigint,biginteger,binding,bit-and,bit-and-not,bit-clear,bit-flip,bit-not,bit-or,bit-set,bit-shift-left,bit-shift-right,bit-test,bit-xor,boolean,boolean-array,boolean?,booleans,bound-fn,bound-fn*,bound?,bounded-count,butlast,byte,byte-array,bytes,bytes?,case,cast,cat,char,char-array,char-escape-string,char-name-string,char?,chars,chunk,chunk-append,chunk-buffer,chunk-cons,chunk-first,chunk-next,chunk-rest,chunked-seq?,class,class?,clear-agent-errors,clojure-version,coll?,comment,commute,comp,comparator,compare,compare-and-set!,compile,complement,completing,concat,cond,cond->,cond->>,condp,conj,conj!,cons,constantly,construct-proxy,contains?,count,counted?,create-ns,create-struct,cycle,dec,dec',decimal?,declare,dedupe,default-data-readers,definline,definterface,defmacro,defmethod,defmulti,defn,defn-,defonce,defprotocol,defrecord,defstruct,deftype,delay,delay?,deliver,denominator,deref,derive,descendants,destructure,disj,disj!,dissoc,dissoc!,distinct,distinct?,doall,dorun,doseq,dosync,dotimes,doto,double,double-array,double?,doubles,drop,drop-last,drop-while,eduction,empty,empty?,ensure,ensure-reduced,enumeration-seq,error-handler,error-mode,eval,even?,every-pred,every?,ex-data,ex-info,extend,extend-protocol,extend-type,extenders,extends?,false?,ffirst,file-seq,filter,filterv,find,find-keyword,find-ns,find-protocol-impl,find-protocol-method,find-var,first,flatten,float,float-array,float?,floats,flush,fn,fn?,fnext,fnil,for,force,format,frequencies,future,future-call,future-cancel,future-cancelled?,future-done?,future?,gen-class,gen-interface,gensym,get,get-in,get-method,get-proxy-class,get-thread-bindings,get-validator,group-by,halt-when,hash,hash-combine,hash-map,hash-ordered-coll,hash-set,hash-unordered-coll,ident?,identical?,identity,if-let,if-not,if-some,ifn?,import,in-ns,inc,inc',indexed?,init-proxy,inst-ms,inst-ms*,inst?,instance?,int,int-array,int?,integer?,interleave,intern,interpose,into,into-array,ints,io!,isa?,iterate,iterator-seq,juxt,keep,keep-indexed,key,keys,keyword,keyword?,last,lazy-cat,lazy-seq,let,letfn,line-seq,list,list*,list?,load,load-file,load-reader,load-string,loaded-libs,locking,long,long-array,longs,loop,macroexpand,macroexpand-1,make-array,make-hierarchy,map,map-entry?,map-indexed,map?,mapcat,mapv,max,max-key,memfn,memoize,merge,merge-with,meta,method-sig,methods,min,min-key,mix-collection-hash,mod,munge,name,namespace,namespace-munge,nat-int?,neg-int?,neg?,newline,next,nfirst,nil?,nnext,not,not-any?,not-empty,not-every?,not=,ns,ns-aliases,ns-imports,ns-interns,ns-map,ns-name,ns-publics,ns-refers,ns-resolve,ns-unalias,ns-unmap,nth,nthnext,nthrest,num,number?,numerator,object-array,odd?,or,parents,partial,partition,partition-all,partition-by,pcalls,peek,persistent!,pmap,pop,pop!,pop-thread-bindings,pos-int?,pos?,pr,pr-str,prefer-method,prefers,primitives-classnames,print,print-ctor,print-dup,print-method,print-simple,print-str,printf,println,println-str,prn,prn-str,promise,proxy,proxy-call-with-super,proxy-mappings,proxy-name,proxy-super,push-thread-bindings,pvalues,qualified-ident?,qualified-keyword?,qualified-symbol?,quot,rand,rand-int,rand-nth,random-sample,range,ratio?,rational?,rationalize,re-find,re-groups,re-matcher,re-matches,re-pattern,re-seq,read,read-line,read-string,reader-conditional,reader-conditional?,realized?,record?,reduce,reduce-kv,reduced,reduced?,reductions,ref,ref-history-count,ref-max-history,ref-min-history,ref-set,refer,refer-clojure,reify,release-pending-sends,rem,remove,remove-all-methods,remove-method,remove-ns,remove-watch,repeat,repeatedly,replace,replicate,require,reset!,reset-meta!,reset-vals!,resolve,rest,restart-agent,resultset-seq,reverse,reversible?,rseq,rsubseq,run!,satisfies?,second,select-keys,send,send-off,send-via,seq,seq?,seqable?,seque,sequence,sequential?,set,set-agent-send-executor!,set-agent-send-off-executor!,set-error-handler!,set-error-mode!,set-validator!,set?,short,short-array,shorts,shuffle,shutdown-agents,simple-ident?,simple-keyword?,simple-symbol?,slurp,some,some->,some->>,some-fn,some?,sort,sort-by,sorted-map,sorted-map-by,sorted-set,sorted-set-by,sorted?,special-symbol?,spit,split-at,split-with,str,string?,struct,struct-map,subs,subseq,subvec,supers,swap!,swap-vals!,symbol,symbol?,sync,tagged-literal,tagged-literal?,take,take-last,take-nth,take-while,test,the-ns,thread-bound?,time,to-array,to-array-2d,trampoline,transduce,transient,tree-seq,true?,type,unchecked-add,unchecked-add-int,unchecked-byte,unchecked-char,unchecked-dec,unchecked-dec-int,unchecked-divide-int,unchecked-double,unchecked-float,unchecked-inc,unchecked-inc-int,unchecked-int,unchecked-long,unchecked-multiply,unchecked-multiply-int,unchecked-negate,unchecked-negate-int,unchecked-remainder-int,unchecked-short,unchecked-subtract,unchecked-subtract-int,underive,unquote,unquote-splicing,unreduced,unsigned-bit-shift-right,update,update-in,update-proxy,uri?,use,uuid?,val,vals,var-get,var-set,var?,vary-meta,vec,vector,vector-of,vector?,volatile!,volatile?,vreset!,vswap!,when,when-first,when-let,when-not,when-some,while,with-bindings,with-bindings*,with-in-str,with-loading-context,with-local-vars,with-meta,with-open,with-out-str,with-precision,with-redefs,with-redefs-fn,xml-seq,zero?,zipmap`.split(`,`),tokenizer:{root:[{include:`@whitespace`},[/@numbers/,`number`],[/@characters/,`string`],{include:`@string`},[/[()\[\]{}]/,`@brackets`],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,`regexp`],[/[#'@^`~]/,`meta`],[/@qualifiedSymbols/,{cases:{"^:.+$":`constant`,"@specialForms":`keyword`,"@coreSymbols":`keyword`,"@constants":`constant`,"@default":`identifier`}}]],whitespace:[[/[\s,]+/,`white`],[/;.*$/,`comment`],[/\(comment\b/,`comment`,`@comment`]],comment:[[/\(/,`comment`,`@push`],[/\)/,`comment`,`@pop`],[/[^()]/,`comment`]],string:[[/"/,`string`,`@multiLineString`]],multiLineString:[[/"/,`string`,`@popall`],[/@escapes/,`string.escape`],[/./,`string`]]}};export{e as conf,t as language}; \ No newline at end of file diff --git a/webui/assets/clone-BpXNvS5n.js b/webui/assets/clone-BpXNvS5n.js new file mode 100644 index 0000000000000000000000000000000000000000..11dc8378235243d5893b610e0ac07955e69038e1 --- /dev/null +++ b/webui/assets/clone-BpXNvS5n.js @@ -0,0 +1 @@ +import{i as e}from"./graphlib-BsE9CGET.js";var t=4;function n(n){return e(n,t)}export{n as t}; \ No newline at end of file diff --git a/webui/assets/coffee-BjgzsY8W.js b/webui/assets/coffee-BjgzsY8W.js new file mode 100644 index 0000000000000000000000000000000000000000..399b1550a780da80720cc8b92d02c089a238cdb0 --- /dev/null +++ b/webui/assets/coffee-BjgzsY8W.js @@ -0,0 +1 @@ +var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:[`###`,`###`],lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.coffee`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:`and.or.is.isnt.not.on.yes.@.no.off.true.false.null.this.new.delete.typeof.in.instanceof.return.throw.break.continue.debugger.if.else.switch.for.while.do.try.catch.finally.class.extends.super.undefined.then.unless.until.loop.of.by.when`.split(`.`),symbols:/[=> founded.`),r}export{r as t}; \ No newline at end of file diff --git a/webui/assets/cose-bilkent-S5V4N54A-BW7WHBib.js b/webui/assets/cose-bilkent-S5V4N54A-BW7WHBib.js new file mode 100644 index 0000000000000000000000000000000000000000..f4bfb8d69bca70ff7257cf8258987e997973150a --- /dev/null +++ b/webui/assets/cose-bilkent-S5V4N54A-BW7WHBib.js @@ -0,0 +1 @@ +import{o as e,t}from"./chunk-Dlc7tRH4.js";import{g as n,h as r,p as i}from"./src-DZYWZEqD.js";import{t as a}from"./cytoscape.esm-DaXdO_t0.js";var o=t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),c=n(4);function l(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,n!=null&&t!=null?this.rect=new a(t.x,t.y,n.width,n.height):this.rect=new a}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(e){this.rect.width=e},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(e){this.rect.height=e},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},l.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},l.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},l.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},l.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},l.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(!(r.source==n||r.target==n))throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},l.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},l.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},l.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new c(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=l}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),c=n(1),l=n(13),u=n(12),d=n(11);function f(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in f.prototype=Object.create(r.prototype),r)f[p]=r[p];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}else{var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(!(t.owner==n.owner&&t.owner==this))throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null}},f.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(!(t.owner!=null&&t.owner==this))throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&u>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(l,1),r.target!=r.source&&r.target.edges.splice(u,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},f.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,c=0;cn&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new u(this.left,this.top))},f.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d,f=this.nodes,p=f.length,m=0;mo&&(t=o),nc&&(r=c),ao&&(t=o),nc&&(r=c),a=this.nodes.length){var c=0;n.forEach(function(t){t.owner==e&&c++}),c==this.nodes.length&&(this.isConnected=!0)}},e.exports=f}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}else{i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(!(a!=null&&a.getGraphManager()==this))throw`Source not in this graph mgr!`;if(!(o!=null&&o.getGraphManager()==this))throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),!(n.source!=null&&n.target!=null))throw`Edge source and/or target is null!`;if(!(n.source.edges.indexOf(n)==-1&&n.target.edges.indexOf(n)==-1))throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n}},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=c,n[2]=a,n[3]=y,!1;if(ia)return n[0]=s,n[1]=i,n[2]=_,n[3]=o,!1;if(ra?(n[0]=u,n[1]=d,C=!0):(n[0]=l,n[1]=c,C=!0):T===D&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=d,C=!0)),-E===D?a>r?(n[2]=v,n[3]=y,w=!0):(n[2]=_,n[3]=g,w=!0):E===D&&(a>r?(n[2]=h,n[3]=g,w=!0):(n[2]=b,n[3]=y,w=!0)),C&&w)return!1;if(r>a?i>o?(O=this.getCardinalDirection(T,D,4),k=this.getCardinalDirection(E,D,2)):(O=this.getCardinalDirection(-T,D,3),k=this.getCardinalDirection(-E,D,1)):i>o?(O=this.getCardinalDirection(-T,D,1),k=this.getCardinalDirection(-E,D,3)):(O=this.getCardinalDirection(T,D,2),k=this.getCardinalDirection(E,D,4)),!C)switch(O){case 1:j=c,A=r+-m/D,n[0]=A,n[1]=j;break;case 2:A=f,j=i+p*D,n[0]=A,n[1]=j;break;case 3:j=d,A=r+m/D,n[0]=A,n[1]=j;break;case 4:A=u,j=i+-p*D,n[0]=A,n[1]=j;break}if(!w)switch(k){case 1:N=g,M=a+-S/D,n[2]=M,n[3]=N;break;case 2:M=b,N=o+x*D,n[2]=M,n[3]=N;break;case 3:N=y,M=a+S/D,n[2]=M,n[3]=N;break;case 4:M=v,N=o+-x*D,n[2]=M,n[3]=N;break}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,c=t.y,l=n.x,u=n.y,d=i.x,f=i.y,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0;return h=c-o,_=a-s,y=s*o-a*c,g=f-u,v=l-d,b=d*u-l*f,x=h*v-g*_,x===0?null:(p=(_*b-v*y)/x,m=(g*y-h*b)/x,new r(p,m))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(l[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),o.add(u);for(var d=u.getEdges(),a=0;a-1&&l.splice(h,1)}o=new Set,c=new Map}}return e},f.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(d,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&l.push(e),r.set(e,t)}})}n=n.concat(l),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},f.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=f}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,r,i,o,s=this.getAllNodes(),c;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),c=new Set,n=0;nc||s>c)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(c=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=c.length||u>=c[0].length)){for(var d=0;de}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(o()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(o()):n.coseBase=r(n.layoutBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(c.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n1){var s;for(s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(u.WORLD_CENTER_X-o.x/2,u.WORLD_CENTER_Y-o.y/2))},v.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),c.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(t,null,0,359,0,r);var i=g.calculateBounds(e),a=new _;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var _=g[0];g.splice(0,1);var y=u.indexOf(_);y>=0&&u.splice(y,1),p--,d--}m=t==null?0:(u.indexOf(g[0])+1)%p;for(var b=Math.abs(r-n)/d,x=m;f!=d;x=++x%p){var S=u[x].getOtherEnd(e);if(S!=t){var C=(n+f*b)%360,w=(C+b)%360;v.branchRadialLayout(S,e,C,w,i+a,a),f++}}},v.maxDiagonalInTree=function(e){for(var t=m.MIN_VALUE,n=0;nt&&(t=r)}return t},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;l=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},v.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},v.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},v.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rc&&(c=u.rect.height)}n+=c+e.verticalPadding}},v.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},v.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:c.TILING_PADDING_VERTICAL,horizontalPadding:c.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},v.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},v.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var u=i;u<=a;u++)c[0]+=this.grid[u][o-1].length+this.grid[u][o].length-1;if(a0)for(var u=o;u<=s;u++)c[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var d=m.MAX_VALUE,f,p,h=0;h{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(s()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeCoseBilkent=r(s()):n.cytoscapeCoseBilkent=r(n.coseBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,c=n(0).layoutBase.PointD,l=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function d(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function f(e){this.options=d(u,e),p(this.options)}var p=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.quality==`draft`?r.QUALITY=0:e.quality==`proof`?r.QUALITY=2:r.QUALITY=1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};f.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),c=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var l=0;l0){var h=n.getGraphManager().add(n.newGraph(),u);this.processChildrenList(h,o,n)}}},f.prototype.stop=function(){return this.stopped=!0,this};var m=function(e){e(`layout`,`cose-bilkent`,f)};typeof cytoscape<`u`&&m(cytoscape),e.exports=m})])})}))(),1);a.use(c.default);function l(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}r(l,`addNodes`);function u(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}r(u,`addEdges`);function d(e){return new Promise(t=>{let r=i(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),o=a({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});r.remove(),l(e.nodes,o),u(e.edges,o),o.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),o.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),o.ready(e=>{n.info(`Cytoscape ready`,e),t(o)})})}r(d,`createCytoscapeInstance`);function f(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}r(f,`extractPositionedNodes`);function p(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}r(p,`extractPositionedEdges`);async function m(e,t){n.debug(`Starting cose-bilkent layout algorithm`);try{h(e);let t=await d(e),r=f(t),i=p(t);return n.debug(`Layout completed: ${r.length} nodes, ${i.length} edges`),{nodes:r,edges:i}}catch(e){throw n.error(`Error in cose-bilkent layout algorithm:`,e),e}}r(m,`executeCoseBilkentLayout`);function h(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}r(h,`validateLayoutData`);var g=r(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:c},{algorithm:l})=>{let u={},d={},f=t.select(`g`);a(f,e.markers,e.type,e.diagramId);let p=f.insert(`g`).attr(`class`,`subgraphs`),h=f.insert(`g`).attr(`class`,`edgePaths`),g=f.insert(`g`).attr(`class`,`edgeLabels`),_=f.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};d[t.id]=e,u[t.id]=e,await n(p,t)}else{let n={...t};u[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await m({...e,nodes:e.nodes.map(e=>{let t=u[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=u[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=u[t.start??``],a=u[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};c(o,r(h,o,d,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};c(i,r(h,i,d,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`);export{g as render}; \ No newline at end of file diff --git a/webui/assets/cpp-DYj4MD35.js b/webui/assets/cpp-DYj4MD35.js new file mode 100644 index 0000000000000000000000000000000000000000..fdbeedf83c5cddab4850ebc66e00852fda660391 --- /dev/null +++ b/webui/assets/cpp-DYj4MD35.js @@ -0,0 +1 @@ +var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`[`,close:`]`},{open:`{`,close:`}`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*#pragma\\s+region\\b`),end:RegExp(`^\\s*#pragma\\s+endregion\\b`)}}},t={defaultToken:``,tokenPostfix:`.cpp`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`abstract.amp.array.auto.bool.break.case.catch.char.class.const.constexpr.const_cast.continue.cpu.decltype.default.delegate.delete.do.double.dynamic_cast.each.else.enum.event.explicit.export.extern.false.final.finally.float.for.friend.gcnew.generic.goto.if.in.initonly.inline.int.interface.interior_ptr.internal.literal.long.mutable.namespace.new.noexcept.nullptr.__nullptr.operator.override.partial.pascal.pin_ptr.private.property.protected.public.ref.register.reinterpret_cast.restrict.return.safe_cast.sealed.short.signed.sizeof.static.static_assert.static_cast.struct.switch.template.this.thread_local.throw.tile_static.true.try.typedef.typeid.typename.union.unsigned.using.virtual.void.volatile.wchar_t.where.while._asm._based._cdecl._declspec._fastcall._if_exists._if_not_exists._inline._multiple_inheritance._pascal._single_inheritance._stdcall._virtual_inheritance._w64.__abstract.__alignof.__asm.__assume.__based.__box.__builtin_alignof.__cdecl.__clrcall.__declspec.__delegate.__event.__except.__fastcall.__finally.__forceinline.__gc.__hook.__identifier.__if_exists.__if_not_exists.__inline.__int128.__int16.__int32.__int64.__int8.__interface.__leave.__m128.__m128d.__m128i.__m256.__m256d.__m256i.__m512.__m512d.__m512i.__m64.__multiple_inheritance.__newslot.__nogc.__noop.__nounwind.__novtordisp.__pascal.__pin.__pragma.__property.__ptr32.__ptr64.__raise.__restrict.__resume.__sealed.__single_inheritance.__stdcall.__super.__thiscall.__try.__try_cast.__typeof.__unaligned.__unhook.__uuidof.__value.__virtual_inheritance.__w64.__wchar_t`.split(`.`),operators:`=.>.<.!.~.?.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=`.split(`.`),symbols:/[=>\[\]]/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,`number.float`],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,`number.float`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,`number.hex`],[/0[0-7']*[0-7](@integersuffix)/,`number.octal`],[/0[bB][0-1']*[0-1](@integersuffix)/,`number.binary`],[/\d[\d']*\d(@integersuffix)/,`number`],[/\d(@integersuffix)/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@doccomment`],[/\/\*/,`comment`,`@comment`],[/\/\/.*\\$/,`comment`,`@linecomment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],linecomment:[[/.*[^\\]$/,`comment`,`@pop`],[/[^]+/,`comment`]],doccomment:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],raw:[[/[^)]+/,`string.raw`],[/\)$S2\"/,{token:`string.raw.end`,next:`@pop`}],[/\)/,`string.raw`]],annotation:[{include:`@whitespace`},[/using|alignas/,`keyword`],[/[a-zA-Z0-9_]+/,`annotation`],[/[,:]/,`delimiter`],[/[()]/,`@brackets`],[/\]\s*\]/,{token:`annotation`,next:`@pop`}]],include:[[/(\s*)(<)([^<>]*)(>)/,[``,`keyword.directive.include.begin`,`string.include.identifier`,{token:`keyword.directive.include.end`,next:`@pop`}]],[/(\s*)(")([^"]*)(")/,[``,`keyword.directive.include.begin`,`string.include.identifier`,{token:`keyword.directive.include.end`,next:`@pop`}]]]}};export{e as conf,t as language}; \ No newline at end of file diff --git a/webui/assets/create-EseJ7qR2.js b/webui/assets/create-EseJ7qR2.js new file mode 100644 index 0000000000000000000000000000000000000000..1749f63f451d26c9c77a135cd59dc6f5b9fab781 --- /dev/null +++ b/webui/assets/create-EseJ7qR2.js @@ -0,0 +1 @@ +function e(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function t(e){return Array.isArray(e)?e:[e]}var n={STOP:`STOP`};function r(e,t){let i=t(e);e.children!==void 0&&i!==n.STOP&&e.children.forEach(e=>r(e,t))}function i(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function a(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function o(e){return e.children}function s(e){return e.key}function c(){return!1}function l(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function u(e){return e.disabled===!0}function d(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function f(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function p(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function m(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function h(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function g(e){return e?.type===`group`}function _(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var v=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function y(e,t,n,r){return C(t.concat(e),n,r,!1)}function b(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function x(e,t,n,r){let i=C(t,n,r,!1),a=C(e,n,r,!0),o=b(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function S(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:h(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:m(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?C(n,t,l,!1):y(r,n,t,l):x(i,n,t,l);let f=c===`parent`,p=c===`child`||s,g=d,_=new Set,v=Math.max.apply(null,Array.from(u.keys()));for(let e=v;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&g.has(e.key)&&g.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,g.has(e))a=!0;else if(_.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&g.has(e.key)&&g.delete(e.key)}),g.add(n)):a&&_.add(n),t&&p&&g.has(n)&&g.delete(n)}}return{checkedKeys:Array.from(g),indeterminateKeys:Array.from(_)}}function C(e,t,i,a){let{treeNodeMap:o,getChildren:s}=t,c=new Set,l=new Set(e);return e.forEach(e=>{let t=o.get(e);t!==void 0&&r(t,e=>{if(e.disabled)return n.STOP;let{key:t}=e;if(!c.has(t)&&(c.add(t),l.add(t),d(e.rawNode,s))){if(a)return n.STOP;if(!i)throw new v}})}),l}function w(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)!a.ignored&&(t||!a.isGroup)&&o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function T(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function E(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function D(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?O:E,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=A(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=k(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function O(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function k(e){return e.parent}function A(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored)if(n.isGroup){let e=A(n,t);if(e!==null)return e}else return n}}return null}var j={getChild(){return this.ignored?null:A(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return D(this,`next`,e)},getPrev(e={}){return D(this,`prev`,e)}};function M(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),!(e.isLeaf||!e.children||e.ignored)&&(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function N(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function P(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=P(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function F(e,n={}){let r=new Map,d=new Map,{getDisabled:m=u,getIgnored:h=c,getIsGroup:_=g,getKey:v=s}=n,y=n.getChildren??o,b=n.ignoreEmptyChildren?e=>{let t=y(e);return Array.isArray(t)?t.length?t:null:t}:y,x=P(e,r,d,Object.assign({get key(){return v(this.rawNode)},get disabled(){return m(this.rawNode)},get isGroup(){return _(this.rawNode)},get isLeaf(){return a(this.rawNode,b)},get shallowLoaded(){return l(this.rawNode,b)},get ignored(){return h(this.rawNode)},contains(e){return N(this,e)}},j),b);function C(e){if(e==null)return null;let t=r.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function E(e){if(e==null)return null;let t=r.get(e);return t&&!t.ignored?t:null}function D(e,t){let n=E(e);return n?n.getPrev(t):null}function O(e,t){let n=E(e);return n?n.getNext(t):null}function k(e){let t=E(e);return t?t.getParent():null}function A(e){let t=E(e);return t?t.getChild():null}let F={treeNodes:x,treeNodeMap:r,levelTreeNodeMap:d,maxLevel:Math.max(...d.keys()),getChildren:b,getFlattenedNodes(e){return M(x,e)},getNode:C,getPrev:D,getNext:O,getParent:k,getChild:A,getFirstAvailableNode(){return T(x)},getPath(e,t={}){return w(e,t,F)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return S({checkedKeys:f(e),indeterminateKeys:p(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},F)},check(e,n,r={}){let{cascade:i=!0,leafOnly:a=!1,checkStrategy:o=`all`,allowNotLoaded:s=!1}=r;return S({checkedKeys:f(n),indeterminateKeys:p(n),keysToCheck:e==null?[]:t(e),cascade:i,leafOnly:a,checkStrategy:o,allowNotLoaded:s},F)},uncheck(e,n,r={}){let{cascade:i=!0,leafOnly:a=!1,checkStrategy:o=`all`,allowNotLoaded:s=!1}=r;return S({checkedKeys:f(n),indeterminateKeys:p(n),keysToUncheck:e==null?[]:t(e),cascade:i,leafOnly:a,checkStrategy:o,allowNotLoaded:s},F)},getNonLeafKeys(e={}){return i(x,e)}};return F}export{e as i,M as n,_ as r,F as t}; \ No newline at end of file diff --git a/webui/assets/csharp-BolpPGa0.js b/webui/assets/csharp-BolpPGa0.js new file mode 100644 index 0000000000000000000000000000000000000000..c1275d4e14f752e48ea6ec80824f81c430b95bb0 --- /dev/null +++ b/webui/assets/csharp-BolpPGa0.js @@ -0,0 +1 @@ +var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],folding:{markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},t={defaultToken:``,tokenPostfix:`.cs`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],keywords:`extern.alias.using.bool.decimal.sbyte.byte.short.ushort.int.uint.long.ulong.char.float.double.object.dynamic.string.assembly.is.as.ref.out.this.base.new.typeof.void.checked.unchecked.default.delegate.var.const.if.else.switch.case.while.do.for.foreach.in.break.continue.goto.return.throw.try.catch.finally.lock.yield.from.let.where.join.on.equals.into.orderby.ascending.descending.select.group.by.namespace.partial.class.field.event.method.param.public.protected.internal.private.abstract.sealed.static.struct.readonly.volatile.virtual.override.params.get.set.add.remove.operator.true.false.implicit.explicit.interface.enum.null.async.await.fixed.sizeof.stackalloc.unsafe.nameof.when`.split(`.`),namespaceFollows:[`namespace`,`using`],parenFollows:[`if`,`for`,`while`,`switch`,`foreach`,`using`,`catch`,`when`],operators:`=.??.||.&&.|.^.&.==.!=.<=.>=.<<.+.-.*./.%.!.~.++.--.+=.-=.*=./=.%=.&=.|=.^=.<<=.>>=.>>.=>`.split(`.`),symbols:/[=>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,`number.float`],[/0[xX][0-9a-fA-F_]+/,`number.hex`],[/0[bB][01_]+/,`number.hex`],[/[0-9_]+/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,{token:`string.quote`,next:`@string`}],[/\$\@"/,{token:`string.quote`,next:`@litinterpstring`}],[/\@"/,{token:`string.quote`,next:`@litstring`}],[/\$"/,{token:`string.quote`,next:`@interpolatedstring`}],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],[/\./,`delimiter`],[``,``,`@pop`]],namespace:[{include:`@whitespace`},[/[A-Z]\w*/,`namespace`],[/[\.=]/,`delimiter`],[``,``,`@pop`]],comment:[[/[^\/*]+/,`comment`],[`\\*/`,`comment`,`@pop`],[/[\/*]/,`comment`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,{token:`string.quote`,next:`@pop`}]],litstring:[[/[^"]+/,`string`],[/""/,`string.escape`],[/"/,{token:`string.quote`,next:`@pop`}]],litinterpstring:[[/[^"{]+/,`string`],[/""/,`string.escape`],[/{{/,`string.escape`],[/}}/,`string.escape`],[/{/,{token:`string.quote`,next:`root.litinterpstring`}],[/"/,{token:`string.quote`,next:`@pop`}]],interpolatedstring:[[/[^\\"{]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/{{/,`string.escape`],[/}}/,`string.escape`],[/{/,{token:`string.quote`,next:`root.interpolatedstring`}],[/"/,{token:`string.quote`,next:`@pop`}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,`directive.csx`],[/^[ \t\v\f]*#\w.*$/,`namespace.cpp`],[/[ \t\v\f\r\n]+/,``],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]]}};export{e as conf,t as language}; \ No newline at end of file diff --git a/webui/assets/csp-C22RxLEo.js b/webui/assets/csp-C22RxLEo.js new file mode 100644 index 0000000000000000000000000000000000000000..837ca3e0278e26f872749594cf34cfd546f69dac --- /dev/null +++ b/webui/assets/csp-C22RxLEo.js @@ -0,0 +1 @@ +var e={brackets:[],autoClosingPairs:[],surroundingPairs:[]},t={keywords:[],typeKeywords:[],tokenPostfix:`.csp`,operators:[],symbols:/[=>`,token:`delimiter.angle`}],tokenizer:{root:[{include:`@selector`}],selector:[{include:`@comments`},{include:`@import`},{include:`@strings`},[`[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)`,{token:`keyword`,next:`@keyframedeclaration`}],[`[@](page|content|font-face|-moz-document)`,{token:`keyword`}],[`[@](charset|namespace)`,{token:`keyword`,next:`@declarationbody`}],[`(url-prefix)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],[`(url)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],{include:`@selectorname`},[`[\\*]`,`tag`],[`[>\\+,]`,`delimiter`],[`\\[`,{token:`delimiter.bracket`,next:`@selectorattribute`}],[`{`,{token:`delimiter.bracket`,next:`@selectorbody`}]],selectorbody:[{include:`@comments`},[`[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))`,`attribute.name`,`@rulevalue`],[`}`,{token:`delimiter.bracket`,next:`@pop`}]],selectorname:[[`(\\.|#(?=[^{])|%|(@identifier)|:)+`,`tag`]],selectorattribute:[{include:`@term`},[`]`,{token:`delimiter.bracket`,next:`@pop`}]],term:[{include:`@comments`},[`(url-prefix)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],[`(url)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],{include:`@functioninvocation`},{include:`@numbers`},{include:`@name`},{include:`@strings`},[`([<>=\\+\\-\\*\\/\\^\\|\\~,])`,`delimiter`],[`,`,`delimiter`]],rulevalue:[{include:`@comments`},{include:`@strings`},{include:`@term`},[`!important`,`keyword`],[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],warndebug:[[`[@](warn|debug)`,{token:`keyword`,next:`@declarationbody`}]],import:[[`[@](import)`,{token:`keyword`,next:`@declarationbody`}]],urldeclaration:[{include:`@strings`},[`[^)\r +]+`,`string`],[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],parenthizedterm:[{include:`@term`},[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],declarationbody:[{include:`@term`},[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],comments:[[`\\/\\*`,`comment`,`@comment`],[`\\/\\/+.*`,`comment`]],comment:[[`\\*\\/`,`comment`,`@pop`],[/[^*/]+/,`comment`],[/./,`comment`]],name:[[`@identifier`,`attribute.value`]],numbers:[[`-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?`,{token:`attribute.value.number`,next:`@units`}],[`#[0-9a-fA-F_]+(?!\\w)`,`attribute.value.hex`]],units:[[`(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?`,`attribute.value.unit`,`@pop`]],keyframedeclaration:[[`@identifier`,`attribute.value`],[`{`,{token:`delimiter.bracket`,switchTo:`@keyframebody`}]],keyframebody:[{include:`@term`},[`{`,{token:`delimiter.bracket`,next:`@selectorbody`}],[`}`,{token:`delimiter.bracket`,next:`@pop`}]],functioninvocation:[[`@identifier\\(`,{token:`attribute.value`,next:`@functionarguments`}]],functionarguments:[[`\\$@identifier@ws:`,`attribute.name`],[`[,]`,`delimiter`],{include:`@term`},[`\\)`,{token:`attribute.value`,next:`@pop`}]],strings:[[`~?"`,{token:`string`,next:`@stringenddoublequote`}],[`~?'`,{token:`string`,next:`@stringendquote`}]],stringenddoublequote:[[`\\\\.`,`string`],[`"`,{token:`string`,next:`@pop`}],[/[^\\"]+/,`string`],[`.`,`string`]],stringendquote:[[`\\\\.`,`string`],[`'`,{token:`string`,next:`@pop`}],[/[^\\']+/,`string`],[`.`,`string`]]}};export{e as conf,t as language}; \ No newline at end of file diff --git a/webui/assets/css.worker-Wv5dxAWO.js b/webui/assets/css.worker-Wv5dxAWO.js new file mode 100644 index 0000000000000000000000000000000000000000..0baecae2006f01c4b03762e6dc4684893a817523 --- /dev/null +++ b/webui/assets/css.worker-Wv5dxAWO.js @@ -0,0 +1,89 @@ +(function(){let e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?a.isErrorNoTelemetry(e)?new a(e.message+` + +`+e.stack):Error(e.message+` + +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(t){r(t)||e.onUnexpectedError(t)}function n(e){if(e instanceof Error){let{name:t,message:r,cause:i}=e;return{$isError:!0,name:t,message:r,stack:e.stacktrace||e.stack,noTelemetry:a.isErrorNoTelemetry(e),cause:i?n(i):void 0,code:e.code}}return e}function r(e){return e instanceof i?!0:e instanceof Error&&e.name===`Canceled`&&e.message===`Canceled`}var i=class extends Error{constructor(){super(`Canceled`),this.name=this.message}},a=class e extends Error{constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}},o=class e extends Error{constructor(t){super(t||`An unexpected bug occurred.`),Object.setPrototypeOf(this,e.prototype)}};function s(e,t=`Unreachable`){throw Error(t)}function c(e,t=`unexpected state`){if(!e)throw typeof t==`string`?new o(`Assertion Failed: ${t}`):t}function l(e){e()||(e(),t(new o(`Assertion Failed`)))}function u(e,t){let n=0;for(;n=0;t--)yield e[t]}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(e){return e[Symbol.iterator]().next().value}e.first=l;function u(e,t){let n=0;for(let r of e)if(t(r,n++))return!0;return!1}e.some=u;function d(e,t){let n=0;for(let r of e)if(!t(r,n++))return!1;return!0}e.every=d;function p(e,t){for(let n of e)if(t(n))return n}e.find=p;function*m(e,t){for(let n of e)t(n)&&(yield n)}e.filter=m;function*h(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=h;function*g(e,t){let n=0;for(let r of e)yield*t(r,n++)}e.flatMap=g;function*_(...e){for(let t of e)f(t)?yield*t:yield t}e.concat=_;function v(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=v;function y(e){let t=0;for(let n of e)t++;return t}e.length=y;function*b(e,t,n=e.length){for(t<-e.length&&(t=0),t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function h(...e){return _(()=>m(e))}var g=class{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw Error(`Unbound disposable context: Need to use an arrow function to preserve the value of this`);this._isDisposed=!0,this._fn()}}};function _(e){return new g(e)}var v=class e{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{m(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t||t===y.None)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw Error(`Cannot dispose a disposable on itself!`);this._toDispose.delete(e),e.dispose()}}},y=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new v,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},b=class e{static{this.Undefined=new e(void 0)}constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},x=class{constructor(){this._first=b.Undefined,this._last=b.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===b.Undefined}clear(){let e=this._first;for(;e!==b.Undefined;){let t=e.next;e.prev=b.Undefined,e.next=b.Undefined,e=t}this._first=b.Undefined,this._last=b.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new b(e);if(this._first===b.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==b.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==b.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==b.Undefined&&e.next!==b.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===b.Undefined&&e.next===b.Undefined?(this._first=b.Undefined,this._last=b.Undefined):e.next===b.Undefined?(this._last=this._last.prev,this._last.next=b.Undefined):e.prev===b.Undefined&&(this._first=this._first.next,this._first.prev=b.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==b.Undefined;)yield e.element,e=e.next}};let S=globalThis.performance.now.bind(globalThis.performance);var C=class e{static create(t){return new e(t)}constructor(e){this._now=e===!1?Date.now:S,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}},w;(function(e){e.None=()=>y.None;function t(e,t){return f(e,()=>void 0,0,void 0,!0,void 0,t)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(t,n){return e.once(e.filter(t,n))}e.onceIf=r;function i(e,t,n){return u((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=i;function a(e,t,n){return u((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=a;function o(e,t,n){return u((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=o;function s(e){return e}e.signal=s;function c(...e){return(t,n=null,r)=>d(h(...e.map(e=>e(e=>t.call(n,e)))),r)}e.any=c;function l(e,t,n,r){let a=n;return i(e,e=>(a=t(a,e),a),r)}e.reduce=l;function u(e,t){let n,r=new oe({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function d(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function f(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new oe({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(l&&clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=null,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=f;function p(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=p;function m(e,t=(e,t)=>e===t,n){let r=!0,i;return o(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=m;function g(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=g;function _(e,t=!1,n=[],r){let i=n.slice(),a=e(e=>{i?i.push(e):s.fire(e)});r&&r.add(a);let o=()=>{i?.forEach(e=>s.fire(e)),i=null},s=new oe({onWillAddFirstListener(){a||(a=e(e=>s.fire(e)),r&&r.add(a))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){a&&a.dispose(),a=null}});return r&&r.add(s),s.event}e.buffer=_;function b(e,t){return(n,r,i)=>{let a=t(new S);return e(function(e){let t=a.evaluate(e);t!==x&&n.call(r,t)},void 0,i)}}e.chain=b;let x=Symbol(`HaltChainable`);class S{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:x),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t=!0,n;return this.steps.push(r=>{let i=t||!e(r,n);return t=!1,n=r,i?r:x}),this}evaluate(e){for(let t of this.steps)if(e=t(e),e===x)break;return e}}function C(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new oe({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=C;function w(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new oe({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=w;function ee(e,t){let r,i=new Promise((i,a)=>{let o=n(e)(i,null,t);r=()=>o.dispose()});return i.cancel=r,i}e.toPromise=ee;function te(e,t){return e(e=>t.fire(e))}e.forward=te;function ne(e,t,n){return t(n),e(e=>t(e))}e.runAndSubscribe=ne;class re{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;let n={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new oe(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ie(e,t){return new re(e,t).emitter.event}e.fromObservable=ie;function ae(e){return(t,n,r)=>{let i=0,a=!1,o={beginUpdate(){i++},endUpdate(){i--,i===0&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();let s={dispose(){e.removeObserver(o)}};return r instanceof v?r.add(s):Array.isArray(r)&&r.push(s),s}}e.fromObservableLight=ae})(w||={});var ee=class e{static{this.all=new Set}static{this._idPool=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new C,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},te=class e{static{this._idPool=1}constructor(t,n,r=(e._idPool++).toString(16).padStart(3,`0`)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,r]of this._stacks)(!e||t{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let n=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],r=new ie(`${e}. HINT: Stack shows most frequent listener (${n[1]}-times)`,n[0]);return(this._options?.onListenerError||t)(r),y.None}if(this._disposed)return y.None;n&&(e=e.bind(n));let i=new ae(e),a;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=ne.create(),a=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof ae?(this._deliveryQueue??=new se,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let o=_(()=>{a?.(),this._removeListener(i)});return r instanceof v?r.add(o):Array.isArray(r)&&r.push(o),o},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*2<=t.length){let e=0;for(let n=0;n0}},se=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function ce(){return globalThis._VSCODE_NLS_MESSAGES}function le(){return globalThis._VSCODE_NLS_LANGUAGE}let ue=le()===`pseudo`||typeof document<`u`&&document.location&&typeof document.location.hash==`string`&&document.location.hash.indexOf(`pseudo=true`)>=0;function de(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[n[0]],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),ue&&(n=`[`+n.replace(/[aouei]/g,`$&$&`)+`]`),n}function T(e,t,...n){return de(typeof e==`number`?fe(e,t):t,n)}function fe(e,t){let n=ce()?.[e];if(typeof n!=`string`){if(typeof t==`string`)return t;throw Error(`!!! NLS MISSING: ${e} !!!`)}return n}let pe=!1,me=!1,he=!1,ge=!1,_e,ve=globalThis,ye;ve.vscode!==void 0&&ve.vscode.process!==void 0?ye=ve.vscode.process:typeof process<`u`&&typeof process?.versions?.node==`string`&&(ye=process);let be=typeof ye?.versions?.electron==`string`&&ye?.type===`renderer`;if(typeof ye==`object`){pe=ye.platform===`win32`,me=ye.platform===`darwin`,he=ye.platform===`linux`,he&&ye.env.SNAP&&ye.env.SNAP_REVISION,ye.env.CI||ye.env.BUILD_ARTIFACTSTAGINGDIRECTORY||ye.env.GITHUB_WORKSPACE;let e=ye.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,t.resolvedLanguage,t.languagePack?.translationsConfigFile}catch{}}else typeof navigator==`object`&&!be?(_e=navigator.userAgent,pe=_e.indexOf(`Windows`)>=0,me=_e.indexOf(`Macintosh`)>=0,(_e.indexOf(`Macintosh`)>=0||_e.indexOf(`iPad`)>=0||_e.indexOf(`iPhone`)>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,he=_e.indexOf(`Linux`)>=0,_e?.indexOf(`Mobi`),ge=!0,le(),navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);let xe=pe,Se=me;ge&&typeof ve.importScripts==`function`&&ve.origin;let Ce=_e,we=typeof ve.postMessage==`function`&&!ve.importScripts;(()=>{if(we){let e=[];ve.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n{let r=++t;e.push({id:r,callback:n}),ve.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})();let Te=!!(Ce&&Ce.indexOf(`Chrome`)>=0);Ce&&Ce.indexOf(`Firefox`),!Te&&Ce&&Ce.indexOf(`Safari`),Ce&&Ce.indexOf(`Edg/`),Ce&&Ce.indexOf(`Android`);function Ee(e){return e}var De=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e==`function`?(this._fn=e,this._computeKey=Ee):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},Oe;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Running=1]=`Running`,e[e.Completed=2]=`Completed`})(Oe||={});var ke=class{constructor(e){this.executor=e,this._state=Oe.Uninitialized}get value(){if(this._state===Oe.Uninitialized){this._state=Oe.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Oe.Completed}}else if(this._state===Oe.Running)throw Error(`Cannot read the value of a lazy that is being initialized`);if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function Ae(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,`\\$&`)}function je(e){return e.source===`^`||e.source===`^$`||e.source===`$`||e.source===`^\\s*$`?!1:!!(e.exec(``)&&e.lastIndex===0)}function Me(e){return e.split(/\r\n|\r|\n/)}function Ne(e){for(let t=0,n=e.length;t=0;n--){let t=e.charCodeAt(n);if(t!==32&&t!==9)return n}return-1}function Fe(e){return e>=65&&e<=90}function Ie(e,t){let n=Math.min(e.length,t.length),r;for(r=0;rt[3*r+1])r=2*r+1;else return t[3*r+2];return 0}});function We(){return JSON.parse(`[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]`)}var Ge=class e{static{this.ambiguousCharacterData=new ke(()=>JSON.parse(`{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}`))}static{this.cache=new De({getCacheKey:JSON.stringify},t=>{function n(e){let t=new Map;for(let n=0;n!e.startsWith(`_`)&&Object.hasOwn(a,e));o.length===0&&(o=[`_default`]);let s;for(let e of o){let t=n(a[e]);s=i(s,t)}return new e(r(n(a._common),s))})}static getInstance(t){return e.cache.get(Array.from(t))}static{this._locales=new ke(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)))}static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},Ke=class e{static getRawData(){return JSON.parse(`{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}`)}static{this._data=void 0}static getData(){return this._data||=new Set([...Object.values(e.getRawData())].flat()),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};let qe=`default`;var Je=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}},Ye=class{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}},Xe=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}},Ze=class{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}},Qe=class{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}},$e=class{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,t,n){let r=String(++this._lastSentReq);return new Promise((i,a)=>{this._pendingReplies[r]={resolve:i,reject:a},this._send(new Je(this._workerId,r,e,t,n))})}listen(e,t,n){let r=null,i=new oe({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Xe(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Qe(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,t){return new Proxy(Object.create(null),{get:(n,r)=>(typeof r==`string`&&!n[r]&&(tt(r)?n[r]=t=>this.listen(e,r,t):et(r)?n[r]=this.listen(e,r,void 0):r.charCodeAt(0)===36&&(n[r]=async(...n)=>(await t?.(),this.sendMessage(e,r,n)))),n[r])})}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn(`Got reply to unknown seq`);return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;if(e.err.$isError){let t=Error();t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack,n=t}t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new Ye(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new Ye(this._workerId,t,void 0,n(e)))})}_handleSubscribeEventMessage(e){let t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new Ze(this._workerId,t,e))});this._pendingEvents.set(t,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn(`Got event for unknown req`);return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn(`Got unsubscribe for unknown req`);return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let n=0;n{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this.requestHandler=t(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===qe&&t===`$initialize`)return this.initialize(n[0]);let r=e===qe?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(Error(`Missing channel ${e} on worker thread`));let i=r[t];if(typeof i!=`function`)return Promise.reject(Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i.apply(r,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){let r=e===qe?this.requestHandler:this._localChannels.get(e);if(!r)throw Error(`Missing channel ${e} on worker thread`);if(tt(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);let i=e.call(r,n);if(typeof i!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);return i}if(et(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing event ${t} on request handler.`);return e}throw Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){let t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e){this._protocol.setWorkerId(e)}};let rt=!1;function it(e){if(rt)throw Error(`WebWorker already initialized!`);rt=!0;let t=new nt(e=>globalThis.postMessage(e),t=>e(t));return globalThis.onmessage=e=>{t.onmessage(e.data)},t}var at=class{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};let ot=typeof Buffer<`u`;new ke(()=>new Uint8Array(256));let st;var ct=class e{static wrap(t){return ot&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return ot?this.buffer.toString():(st||=new TextDecoder,st.decode(this.buffer))}};let lt=`0123456789abcdef`;function ut({buffer:e}){let t=``;for(let n=0;n>>4],t+=lt[r&15]}return t}function dt(e,t){return(t<<5)-t+e|0}function ft(e,t){t=dt(149417,t);for(let n=0,r=e.length;n>>r)>>>0}function mt(e,t=32){return e instanceof ArrayBuffer?ut(ct.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,`0`)}(class e{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t=e.length;if(t===0)return;let n=this._buff,r=this._buffLen,i=this._leftoverHighSurrogate,a,o;for(i===0?(a=e.charCodeAt(0),o=0):(a=i,o=-1,i=0);;){let s=a;if(Re(a))if(o+1>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),mt(this._h0)+mt(this._h1)+mt(this._h2)+mt(this._h3)+mt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,pt(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let r=this._h0,i=this._h1,a=this._h2,o=this._h3,s=this._h4,c,l,u;for(let e=0;e<80;e++)e<20?(c=i&a|~i&o,l=1518500249):e<40?(c=i^a^o,l=1859775393):e<60?(c=i&a|i&o|a&o,l=2400959708):(c=i^a^o,l=3395469782),u=pt(r,5)+c+s+l+t.getUint32(e*4,!1)&4294967295,s=o,o=a,a=pt(i,30),i=r,r=u;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+s&4294967295}});var ht=class{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new at(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},bt=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,a,o]=e._getElements(t),[s,c,l]=e._getElements(n);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=a,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]==`string`}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let e=new Int32Array(n.length);for(let t=0,r=n.length;t=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(_t.Assert(e===t+1,`originalStart should only be one more than originalEnd`),i=[new at(e,0,n,r-n+1)]):e<=t?(_t.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[new at(e,t-e+1,n,0)]):(_t.Assert(e===t+1,`originalStart should only be one more than originalEnd`),_t.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[]),i}let a=[0],o=[0],s=this.ComputeRecursionPoint(e,t,n,r,a,o,i),c=a[0],l=o[0];if(s!==null)return s;if(!i[0]){let a=this.ComputeDiffRecursive(e,c,n,l,i),o=[];return o=i[0]?[new at(c+1,t-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,t,l+1,r,i),this.ConcatenateChanges(a,o)}return[new at(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=null,y=null,b=new yt,x=t,S=n,C=f[0]-h[0]-r,w=-1073741824,ee=this.m_forwardHistory.length-1;do{let t=C+e;t===x||t=0&&(c=this.m_forwardHistory[ee],e=c[0],x=1,S=c.length-1)}while(--ee>=-1);if(v=b.getReverseChanges(),_[0]){let e=f[0]+1,t=h[0]+1;if(v!==null&&v.length>0){let n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new at(e,d-e+1,t,m-t+1)]}else{b=new yt,x=a,S=o,C=f[0]-h[0]-s,w=1073741824,ee=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let e=C+i;e===x||e=l[e+1]?(u=l[e+1]-1,p=u-C-s,u>w&&b.MarkNextChange(),w=u+1,b.AddOriginalElement(u+1,p+1),C=e+1-i):(u=l[e-1],p=u-C-s,u>w&&b.MarkNextChange(),w=u,b.AddModifiedElement(u+1,p+1),C=e-1-i),ee>=0&&(l=this.m_reverseHistory[ee],i=l[0],x=1,S=l.length-1)}while(--ee>=-1);y=b.getChanges()}return this.ConcatenateChanges(v,y)}ComputeRecursionPoint(e,t,n,r,i,a,o){let s=0,c=0,l=0,u=0,d=0,f=0;e--,n--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let p=t-e+(r-n),m=p+1,h=new Int32Array(m),g=new Int32Array(m),_=r-n,v=t-e,y=e-n,b=t-r,x=(v-_)%2==0;h[_]=e,g[v]=t,o[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,C=0;l=this.ClipDiagonalBound(_-S,S,_,m),u=this.ClipDiagonalBound(_+S,S,_,m);for(let e=l;e<=u;e+=2){s=e===l||ep+C&&(p=s,C=c),!x&&Math.abs(e-v)<=S-1&&s>=g[e])return i[0]=s,a[0]=c,n<=g[e]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}let w=(p-e+(C-n)-S)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(p,w))return o[0]=!0,i[0]=p,a[0]=C,w>0&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):(e++,n++,[new at(e,t-e+1,n,r-n+1)]);d=this.ClipDiagonalBound(v-S,S,v,m),f=this.ClipDiagonalBound(v+S,S,v,m);for(let p=d;p<=f;p+=2){s=p===d||p=g[p+1]?g[p+1]-1:g[p-1],c=s-(p-v)-b;let m=s;for(;s>e&&c>n&&this.ElementsAreEqual(s,c);)s--,c--;if(g[p]=s,x&&Math.abs(p-_)<=S&&s<=h[p])return i[0]=s,a[0]=c,m>=h[p]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}if(S<=1447){let e=new Int32Array(u-l+2);e[0]=_-l+1,vt.Copy2(h,l,e,1,u-l+1),this.m_forwardHistory.push(e),e=new Int32Array(f-d+2),e[0]=v-d+1,vt.Copy2(g,d,e,1,f-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o)}PrettifyChanges(e){for(let t=0;t0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){let n=e[t],r=0,i=0;if(t>0){let n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}let a=n.originalLength>0,o=n.modifiedLength>0,s=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){let t=n.originalStart-e,l=n.modifiedStart-e;if(tc&&(c=u,s=e)}n.originalStart-=s,n.modifiedStart-=s;let l=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],l)){e[t-1]=l[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>s&&(s=n,c=t,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return+!!this._OriginalRegionIsBoundary(e,t)+ +!!this._ModifiedRegionIsBoundary(n,r)}ConcatenateChanges(e,t){let n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){let r=Array(e.length+t.length-1);return vt.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],vt.Copy(t,1,r,e.length,t.length-1),r}else{let n=Array(e.length+t.length);return vt.Copy(e,0,n,0,e.length),vt.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(_t.Assert(e.originalStart<=t.originalStart,`Left change is not less than or equal to right change`),_t.Assert(e.modifiedStart<=t.modifiedStart,`Left change is not less than or equal to right change`),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){let r=e.originalStart,i=e.originalLength,a=e.modifiedStart,o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new at(r,i,a,o),!0}else return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&en||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,a,o;return n.startLineNumbert.endLineNumber?(a=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(a=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(a=t.endLineNumber,o=t.endColumn),new e(r,i,a,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,a=t.endLineNumber,o=t.endColumn,s=n.startLineNumber,c=n.startColumn,l=n.endLineNumber,u=n.endColumn;return rl?(a=l,o=u):a===l&&(o=Math.min(o,u)),r>a||r===a&&i>o?null:new e(r,i,a,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(e){return new E(e.endLineNumber,e.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(e){return new E(e.startLineNumber,e.startColumn)}toString(){return`[`+this.startLineNumber+`,`+this.startColumn+` -> `+this.endLineNumber+`,`+this.endColumn+`]`}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber==`number`&&typeof e.startColumn==`number`&&typeof e.endLineNumber==`number`&&typeof e.endColumn==`number`}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}};function xt(e){return e<0?0:e>255?255:e|0}function St(e){return e<0?0:e>4294967295?4294967295:e|0}var Ct=class e{constructor(t){let n=xt(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);return t.fill(e),t}set(e,t){let n=xt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},wt=class{constructor(e,t,n){let r=new Uint8Array(e*t);for(let i=0,a=e*t;it&&(t=a),i>n&&(n=i),o>n&&(n=o)}t++,n++;let r=new wt(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}};let Et=null;function Dt(){return Et===null&&(Et=new Tt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Et}let Ot=null;function kt(){if(Ot===null){Ot=new Ct(0);for(let e=0;e<36;e++)Ot.set(` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`.charCodeAt(e),1);for(let e=0;e<4;e++)Ot.set(`.,;:`.charCodeAt(e),2)}return Ot}var At=class e{static _createLink(e,t,n,r,i){let a=i-1;do{let n=t.charCodeAt(a);if(e.get(n)!==2)break;a--}while(a>r);if(r>0){let e=t.charCodeAt(r-1),n=t.charCodeAt(a);(e===40&&n===41||e===91&&n===93||e===123&&n===125)&&a--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:a+2},url:t.substring(r,a+1)}}static computeLinks(t,n=Dt()){let r=kt(),i=[];for(let a=1,o=t.getLineCount();a<=o;a++){let o=t.getLineContent(a),s=o.length,c=0,l=0,u=0,d=1,f=!1,p=!1,m=!1,h=!1;for(;c=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};let Nt=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Pt;(function(e){function t(t){return t===e.None||t===e.Cancelled||t instanceof Ft?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:w.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Nt})})(Pt||={});var Ft=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Nt:(this._emitter||=new oe,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}},It=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||=new Ft,this._token}cancel(){this._token?this._token instanceof Ft&&this._token.cancel():this._token=Pt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Ft&&this._token.dispose():this._token=Pt.None}},Lt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}};let Rt=new Lt,zt=new Lt,Bt=new Lt,Vt=Array(230),Ht=Object.create(null),Ut=Object.create(null),Wt=[];for(let e=0;e<=193;e++)Wt[e]=-1;(function(){let e=[[1,0,`None`,0,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,0,``,0,``,``,``],[1,2,`Super`,0,``,0,``,``,``],[1,3,`Fn`,0,``,0,``,``,``],[1,4,`FnLock`,0,``,0,``,``,``],[1,5,`Suspend`,0,``,0,``,``,``],[1,6,`Resume`,0,``,0,``,``,``],[1,7,`Turbo`,0,``,0,``,``,``],[1,8,`Sleep`,0,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,0,``,0,``,``,``],[0,10,`KeyA`,31,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,32,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,33,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,34,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,35,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,36,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,37,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,38,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,39,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,40,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,41,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,42,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,43,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,44,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,45,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,46,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,47,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,48,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,49,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,50,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,51,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,52,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,53,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,54,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,55,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,56,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,22,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,23,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,24,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,25,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,26,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,27,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,28,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,29,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,30,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,21,`0`,48,`VK_0`,``,``],[1,46,`Enter`,3,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,9,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,1,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,2,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,10,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,88,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,86,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,92,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,94,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,93,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,0,``,0,``,``,``],[0,57,`Semicolon`,85,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,95,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,91,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,87,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,89,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,90,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,8,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,59,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,60,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,61,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,62,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,63,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,64,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,65,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,66,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,67,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,68,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,69,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,70,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,0,``,0,``,``,``],[1,77,`ScrollLock`,84,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,7,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,19,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,14,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,11,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,20,`Delete`,46,`VK_DELETE`,``,``],[1,83,`End`,13,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,12,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,17,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,15,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,18,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,16,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,83,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,113,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,108,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,111,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,109,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,3,``,0,``,``,``],[1,95,`Numpad1`,99,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,100,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,101,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,102,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,103,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,104,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,105,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,106,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,107,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,98,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,112,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,97,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,58,`ContextMenu`,93,``,``,``],[1,108,`Power`,0,``,0,``,``,``],[1,109,`NumpadEqual`,0,``,0,``,``,``],[1,110,`F13`,71,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,72,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,73,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,74,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,75,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,76,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,77,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,78,`F20`,131,`VK_F20`,``,``],[1,118,`F21`,79,`F21`,132,`VK_F21`,``,``],[1,119,`F22`,80,`F22`,133,`VK_F22`,``,``],[1,120,`F23`,81,`F23`,134,`VK_F23`,``,``],[1,121,`F24`,82,`F24`,135,`VK_F24`,``,``],[1,122,`Open`,0,``,0,``,``,``],[1,123,`Help`,0,``,0,``,``,``],[1,124,`Select`,0,``,0,``,``,``],[1,125,`Again`,0,``,0,``,``,``],[1,126,`Undo`,0,``,0,``,``,``],[1,127,`Cut`,0,``,0,``,``,``],[1,128,`Copy`,0,``,0,``,``,``],[1,129,`Paste`,0,``,0,``,``,``],[1,130,`Find`,0,``,0,``,``,``],[1,131,`AudioVolumeMute`,117,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,118,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,119,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,110,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,115,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,0,``,0,``,``,``],[0,137,`IntlYen`,0,``,0,``,``,``],[1,138,`Convert`,0,``,0,``,``,``],[1,139,`NonConvert`,0,``,0,``,``,``],[1,140,`Lang1`,0,``,0,``,``,``],[1,141,`Lang2`,0,``,0,``,``,``],[1,142,`Lang3`,0,``,0,``,``,``],[1,143,`Lang4`,0,``,0,``,``,``],[1,144,`Lang5`,0,``,0,``,``,``],[1,145,`Abort`,0,``,0,``,``,``],[1,146,`Props`,0,``,0,``,``,``],[1,147,`NumpadParenLeft`,0,``,0,``,``,``],[1,148,`NumpadParenRight`,0,``,0,``,``,``],[1,149,`NumpadBackspace`,0,``,0,``,``,``],[1,150,`NumpadMemoryStore`,0,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,0,``,0,``,``,``],[1,152,`NumpadMemoryClear`,0,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,0,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,0,``,0,``,``,``],[1,155,`NumpadClear`,131,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,0,``,0,``,``,``],[1,0,``,5,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,4,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,6,`Alt`,18,`VK_MENU`,``,``],[1,0,``,57,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,5,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,4,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,6,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,57,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,5,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,4,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,6,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,57,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,0,``,0,``,``,``],[1,166,`BrightnessDown`,0,``,0,``,``,``],[1,167,`MediaPlay`,0,``,0,``,``,``],[1,168,`MediaRecord`,0,``,0,``,``,``],[1,169,`MediaFastForward`,0,``,0,``,``,``],[1,170,`MediaRewind`,0,``,0,``,``,``],[1,171,`MediaTrackNext`,124,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,125,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,126,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,0,``,0,``,``,``],[1,175,`MediaPlayPause`,127,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,128,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,129,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,130,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,0,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,0,``,0,``,``,``],[1,181,`LaunchScreenSaver`,0,``,0,``,``,``],[1,182,`BrowserSearch`,120,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,121,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,122,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,123,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,0,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,0,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,0,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,0,``,0,``,``,``],[1,190,`MailReply`,0,``,0,``,``,``],[1,191,`MailForward`,0,``,0,``,``,``],[1,192,`MailSend`,0,``,0,``,``,``],[1,0,``,114,`KeyInComposition`,229,``,``,``],[1,0,``,116,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,96,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,0,``,0,`VK_KANA`,``,``],[1,0,``,0,``,0,`VK_HANGUL`,``,``],[1,0,``,0,``,0,`VK_JUNJA`,``,``],[1,0,``,0,``,0,`VK_FINAL`,``,``],[1,0,``,0,``,0,`VK_HANJA`,``,``],[1,0,``,0,``,0,`VK_KANJI`,``,``],[1,0,``,0,``,0,`VK_CONVERT`,``,``],[1,0,``,0,``,0,`VK_NONCONVERT`,``,``],[1,0,``,0,``,0,`VK_ACCEPT`,``,``],[1,0,``,0,``,0,`VK_MODECHANGE`,``,``],[1,0,``,0,``,0,`VK_SELECT`,``,``],[1,0,``,0,``,0,`VK_PRINT`,``,``],[1,0,``,0,``,0,`VK_EXECUTE`,``,``],[1,0,``,0,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,0,``,0,`VK_HELP`,``,``],[1,0,``,0,``,0,`VK_APPS`,``,``],[1,0,``,0,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,0,``,0,`VK_PACKET`,``,``],[1,0,``,0,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_ATTN`,``,``],[1,0,``,0,``,0,`VK_CRSEL`,``,``],[1,0,``,0,``,0,`VK_EXSEL`,``,``],[1,0,``,0,``,0,`VK_EREOF`,``,``],[1,0,``,0,``,0,`VK_PLAY`,``,``],[1,0,``,0,``,0,`VK_ZOOM`,``,``],[1,0,``,0,``,0,`VK_NONAME`,``,``],[1,0,``,0,``,0,`VK_PA1`,``,``],[1,0,``,0,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,Ht[a]=i,Ut[a.toLowerCase()]=i,e&&(Wt[i]=o)),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);Rt.define(o,s),zt.define(o,u||s),Bt.define(o,d||u||s)}c&&(Vt[c]=o)}})();var Gt;(function(e){function t(e){return Rt.keyCodeToStr(e)}e.toString=t;function n(e){return Rt.strToKeyCode(e)}e.fromString=n;function r(e){return zt.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return Bt.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return zt.strToKeyCode(e)||Bt.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`}return Rt.keyCodeToStr(e)}e.toElectronAccelerator=o})(Gt||={});function Kt(e,t){return(e|(t&65535)<<16>>>0)>>>0}let qt,Jt=globalThis.vscode;if(Jt!==void 0&&Jt.process!==void 0){let e=Jt.process;qt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else qt=typeof process<`u`&&typeof process?.versions?.node==`string`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return xe?`win32`:Se?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};let Yt=qt.cwd,Xt=qt.env,Zt=qt.platform;var Qt=class extends Error{constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function $t(e,t){if(typeof e!=`object`||!e)throw new Qt(t,`Object`,e)}function O(e,t){if(typeof e!=`string`)throw new Qt(t,`string`,e)}let en=Zt===`win32`;function k(e){return e===47||e===92}function tn(e){return e===47}function nn(e){return e>=65&&e<=90||e>=97&&e<=122}function rn(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function an(e){return e?`${e[0]===`.`?``:`.`}${e}`:``}function on(e,t){$t(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${an(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}let sn={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],O(a,`paths[${i}]`),a.length===0)continue}else t.length===0?a=Yt():(a=Xt[`=${t}`]||Yt(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===92)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)k(u)&&(s=1,l=!0);else if(k(u))if(l=!0,k(a.charCodeAt(1))){let e=2,t=e;for(;e2&&k(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=rn(n,!r,`\\`,k),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){O(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return tn(a)?`\\`:e;if(k(a))if(i=!0,k(e.charCodeAt(1))){let i=2,a=i;for(;i2&&k(e.charCodeAt(2))&&(i=!0,n=3));let o=n0&&k(e.charCodeAt(t-1))&&(o+=`\\`),!i&&r===void 0&&e.includes(`:`)){if(o.length>=2&&nn(o.charCodeAt(0))&&o.charCodeAt(1)===58)return`.\\${o}`;let n=e.indexOf(`:`);do if(n===t-1||k(e.charCodeAt(n+1)))return`.\\${o}`;while((n=e.indexOf(`:`,n+1))!==-1)}return r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){O(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return k(n)||t>2&&nn(n)&&e.charCodeAt(1)===58&&k(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&k(n.charCodeAt(0))){++i;let e=n.length;e>1&&k(n.charCodeAt(1))&&(++i,e>2&&(k(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return sn.normalize(t)},relative(e,t){if(O(e,`from`),O(t,`to`),e===t)return``;let n=sn.resolve(e),r=sn.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;if(n.length!==e.length||r.length!==t.length){let e=n.split(`\\`),t=r.split(`\\`);e[e.length-1]===``&&e.pop(),t[t.length-1]===``&&t.pop();let i=e.length,a=t.length,o=io?t.slice(s).join(`\\`):i>o?`..\\`.repeat(i-1-s)+`..`:``:`..\\`.repeat(i-s)+t.slice(s).join(`\\`)}let i=0;for(;ii&&e.charCodeAt(a-1)===92;)a--;let o=a-i,s=0;for(;ss&&t.charCodeAt(c-1)===92;)c--;let l=c-s,u=ou){if(t.charCodeAt(s+f)===92)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===92?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===92)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===92&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=sn.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let e=t.charCodeAt(2);if(e!==63&&e!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(nn(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`;return t},dirname(e){O(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return k(i)?e:`.`;if(k(i)){if(n=r=1,k(e.charCodeAt(1))){let i=2,a=i;for(;i2&&k(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(k(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&O(t,`suffix`),O(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&nn(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(k(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(k(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){O(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===58&&nn(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(k(t)){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),t===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:on.bind(null,`\\`),parse(e){O(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return k(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(k(i)){if(r=1,k(e.charCodeAt(1))){let t=2,i=t;for(;t0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l){if(i=e.charCodeAt(l),k(i)){if(!c){o=l+1;break}continue}s===-1&&(c=!1,s=l+1),i===46?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1)}return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},cn=(()=>{if(en){let e=/\\/g;return()=>{let t=Yt().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>Yt()})(),ln={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];O(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===47)}if(!n){let e=cn();t=`${e}/${t}`,n=e.charCodeAt(0)===47}return t=rn(t,!n,`/`,tn),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(O(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=rn(e,!t,`/`,tn),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return O(e,`path`),e.length>0&&e.charCodeAt(0)===47},join(...e){if(e.length===0)return`.`;let t=[];for(let n=0;n0&&t.push(r)}return t.length===0?`.`:ln.normalize(t.join(`/`))},relative(e,t){if(O(e,`from`),O(t,`to`),e===t||(e=ln.resolve(e),t=ln.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(t.charCodeAt(1+s)===47)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===47?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===47)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(O(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===47){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&O(t,`suffix`),O(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===47){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){O(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e[o];if(s===`/`){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),s===`.`?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:on.bind(null,`/`),parse(e){O(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===47,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===47){if(!s){a=c+1;break}continue}o===-1&&(s=!1,o=c+1),t===46?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};ln.win32=sn.win32=sn,ln.posix=sn.posix=ln,en?sn.normalize:ln.normalize,en?sn.resolve:ln.resolve,en?sn.relative:ln.relative,en?sn.dirname:ln.dirname,en?sn.basename:ln.basename,en?sn.extname:ln.extname,en?sn.sep:ln.sep;let un=/^\w[\w\d+.-]*$/,dn=/^\//,fn=/^\/\//;function pn(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!un.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!dn.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(fn.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function mn(e,t){return!e&&!t?`file`:e}function hn(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==gn&&(t=gn+t):t=gn;break}return t}let gn=`/`,_n=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var vn=class e{static isUri(t){return t instanceof e?!0:!t||typeof t!=`object`?!1:typeof t.authority==`string`&&typeof t.fragment==`string`&&typeof t.path==`string`&&typeof t.query==`string`&&typeof t.scheme==`string`&&typeof t.fsPath==`string`&&typeof t.with==`function`&&typeof t.toString==`function`}constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=mn(e,a),this.authority=t||``,this.path=hn(this.scheme,n||``),this.query=r||``,this.fragment=i||``,pn(this,a))}get fsPath(){return wn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new bn(t,n,r,i,a)}static parse(e,t=!1){let n=_n.exec(e);return n?new bn(n[2]||``,On(n[4]||``),On(n[5]||``),On(n[7]||``),On(n[9]||``),t):new bn(``,``,``,``,``)}static file(e){let t=``;if(xe&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new bn(`file`,t,e,``,``)}static from(e,t){return new bn(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path`);let r;return r=xe&&t.scheme===`file`?e.file(sn.join(wn(t,!0),...n)).path:ln.join(t.path,...n),t.with({path:r})}toString(e=!1){return Tn(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new bn(t);return e._formatted=t.external??null,e._fsPath=t._sep===yn?t.fsPath??null:null,e}}};let yn=xe?1:void 0;var bn=class extends vn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||=wn(this,!1),this._fsPath}toString(e=!1){return e?Tn(this,!0):(this._formatted||=Tn(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=yn),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};let xn={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function Sn(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=xn[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function Cn(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,xe&&(n=n.replace(/\//g,`\\`)),n}function Tn(e,t){let n=t?Cn:Sn,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:Sn(c,!1,!1)),r}function En(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+En(e.substr(3)):e}}let Dn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function On(e){return e.match(Dn)?e.replace(Dn,e=>En(e)):e}var kn=class e extends D{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return`[`+this.selectionStartLineNumber+`,`+this.selectionStartColumn+` -> `+this.positionLineNumber+`,`+this.positionColumn+`]`}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new E(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new E(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();let n=new Pn(this,e,t);return this._factories.set(e,n),_(()=>{let t=this._factories.get(e);!t||t!==n||(this._factories.delete(e),t.dispose())})}async getOrCreate(e){let t=this.get(e);if(t)return t;let n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;let t=this._factories.get(e);return!!(!t||t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},Pn=class extends y{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||=this._create(),this._resolvePromise}async _create(){let e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}},Fn=class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return`(`+this.offset+`, `+this.type+`)`}},In;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(In||={});var Ln;(function(e){let t=new Map;t.set(0,j.symbolMethod),t.set(1,j.symbolFunction),t.set(2,j.symbolConstructor),t.set(3,j.symbolField),t.set(4,j.symbolVariable),t.set(5,j.symbolClass),t.set(6,j.symbolStruct),t.set(7,j.symbolInterface),t.set(8,j.symbolModule),t.set(9,j.symbolProperty),t.set(10,j.symbolEvent),t.set(11,j.symbolOperator),t.set(12,j.symbolUnit),t.set(13,j.symbolValue),t.set(15,j.symbolEnum),t.set(14,j.symbolConstant),t.set(15,j.symbolEnum),t.set(16,j.symbolEnumMember),t.set(17,j.symbolKeyword),t.set(28,j.symbolSnippet),t.set(18,j.symbolText),t.set(19,j.symbolColor),t.set(20,j.symbolFile),t.set(21,j.symbolReference),t.set(22,j.symbolCustomColor),t.set(23,j.symbolFolder),t.set(24,j.symbolTypeParameter),t.set(25,j.account),t.set(26,j.issues),t.set(27,j.tools);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for CompletionItemKind `+e),j.symbolProperty),n}e.toIcon=n;function r(e){switch(e){case 0:return T(728,`Method`);case 1:return T(729,`Function`);case 2:return T(730,`Constructor`);case 3:return T(731,`Field`);case 4:return T(732,`Variable`);case 5:return T(733,`Class`);case 6:return T(734,`Struct`);case 7:return T(735,`Interface`);case 8:return T(736,`Module`);case 9:return T(737,`Property`);case 10:return T(738,`Event`);case 11:return T(739,`Operator`);case 12:return T(740,`Unit`);case 13:return T(741,`Value`);case 14:return T(742,`Constant`);case 15:return T(743,`Enum`);case 16:return T(744,`Enum Member`);case 17:return T(745,`Keyword`);case 18:return T(746,`Text`);case 19:return T(747,`Color`);case 20:return T(748,`File`);case 21:return T(749,`Reference`);case 22:return T(750,`Custom Color`);case 23:return T(751,`Folder`);case 24:return T(752,`Type Parameter`);case 25:return T(753,`User`);case 26:return T(754,`Issue`);case 27:return T(755,`Tool`);case 28:return T(756,`Snippet`);default:return``}}e.toLabel=r;let i=new Map;i.set(`method`,0),i.set(`function`,1),i.set(`constructor`,2),i.set(`field`,3),i.set(`variable`,4),i.set(`class`,5),i.set(`struct`,6),i.set(`interface`,7),i.set(`module`,8),i.set(`property`,9),i.set(`event`,10),i.set(`operator`,11),i.set(`unit`,12),i.set(`value`,13),i.set(`constant`,14),i.set(`enum`,15),i.set(`enum-member`,16),i.set(`enumMember`,16),i.set(`keyword`,17),i.set(`snippet`,28),i.set(`text`,18),i.set(`color`,19),i.set(`file`,20),i.set(`reference`,21),i.set(`customcolor`,22),i.set(`folder`,23),i.set(`type-parameter`,24),i.set(`typeParameter`,24),i.set(`account`,25),i.set(`issue`,26),i.set(`tool`,27);function a(e,t){let n=i.get(e);return n===void 0&&!t&&(n=9),n}e.fromString=a})(Ln||={});var Rn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(Rn||={});var zn;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(zn||={});var Bn;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(Bn||={});var Vn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.PasteAs=1]=`PasteAs`})(Vn||={});var Hn;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Hn||={});var Un;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(Un||={}),T(757,`array`),T(758,`boolean`),T(759,`class`),T(760,`constant`),T(761,`constructor`),T(762,`enumeration`),T(763,`enumeration member`),T(764,`event`),T(765,`field`),T(766,`file`),T(767,`function`),T(768,`interface`),T(769,`key`),T(770,`method`),T(771,`module`),T(772,`namespace`),T(773,`null`),T(774,`number`),T(775,`object`),T(776,`operator`),T(777,`package`),T(778,`property`),T(779,`string`),T(780,`struct`),T(781,`type parameter`),T(782,`variable`);var Wn;(function(e){let t=new Map;t.set(0,j.symbolFile),t.set(1,j.symbolModule),t.set(2,j.symbolNamespace),t.set(3,j.symbolPackage),t.set(4,j.symbolClass),t.set(5,j.symbolMethod),t.set(6,j.symbolProperty),t.set(7,j.symbolField),t.set(8,j.symbolConstructor),t.set(9,j.symbolEnum),t.set(10,j.symbolInterface),t.set(11,j.symbolFunction),t.set(12,j.symbolVariable),t.set(13,j.symbolConstant),t.set(14,j.symbolString),t.set(15,j.symbolNumber),t.set(16,j.symbolBoolean),t.set(17,j.symbolArray),t.set(18,j.symbolObject),t.set(19,j.symbolKey),t.set(20,j.symbolNull),t.set(21,j.symbolEnumMember),t.set(22,j.symbolStruct),t.set(23,j.symbolEvent),t.set(24,j.symbolOperator),t.set(25,j.symbolTypeParameter);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for SymbolKind `+e),j.symbolProperty),n}e.toIcon=n;let r=new Map;r.set(0,20),r.set(1,8),r.set(2,8),r.set(3,8),r.set(4,5),r.set(5,0),r.set(6,9),r.set(7,3),r.set(8,2),r.set(9,15),r.set(10,7),r.set(11,1),r.set(12,4),r.set(13,14),r.set(14,18),r.set(15,13),r.set(16,13),r.set(17,13),r.set(18,13),r.set(19,17),r.set(20,13),r.set(21,16),r.set(22,6),r.set(23,10),r.set(24,11),r.set(25,24);function i(e){let t=r.get(e);return t===void 0&&(console.info(`No completion kind found for SymbolKind `+e),t=20),t}e.toCompletionKind=i})(Wn||={}),class e{static{this.Comment=new e(`comment`)}static{this.Imports=new e(`imports`)}static{this.Region=new e(`region`)}static fromValue(t){switch(t){case`comment`:return e.Comment;case`imports`:return e.Imports;case`region`:return e.Region}return new e(t)}constructor(e){this.value=e}};var Gn;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(Gn||={});var Kn;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(Kn||={});var qn;(function(e){function t(e){return!e||typeof e!=`object`?!1:typeof e.id==`string`&&typeof e.title==`string`}e.is=t})(qn||={});var Jn;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(Jn||={}),new Nn;var Yn;(function(e){e[e.Unknown=0]=`Unknown`,e[e.Disabled=1]=`Disabled`,e[e.Enabled=2]=`Enabled`})(Yn||={});var Xn;(function(e){e[e.Invoke=1]=`Invoke`,e[e.Auto=2]=`Auto`})(Xn||={});var Zn;(function(e){e[e.None=0]=`None`,e[e.KeepWhitespace=1]=`KeepWhitespace`,e[e.InsertAsSnippet=4]=`InsertAsSnippet`})(Zn||={});var Qn;(function(e){e[e.Method=0]=`Method`,e[e.Function=1]=`Function`,e[e.Constructor=2]=`Constructor`,e[e.Field=3]=`Field`,e[e.Variable=4]=`Variable`,e[e.Class=5]=`Class`,e[e.Struct=6]=`Struct`,e[e.Interface=7]=`Interface`,e[e.Module=8]=`Module`,e[e.Property=9]=`Property`,e[e.Event=10]=`Event`,e[e.Operator=11]=`Operator`,e[e.Unit=12]=`Unit`,e[e.Value=13]=`Value`,e[e.Constant=14]=`Constant`,e[e.Enum=15]=`Enum`,e[e.EnumMember=16]=`EnumMember`,e[e.Keyword=17]=`Keyword`,e[e.Text=18]=`Text`,e[e.Color=19]=`Color`,e[e.File=20]=`File`,e[e.Reference=21]=`Reference`,e[e.Customcolor=22]=`Customcolor`,e[e.Folder=23]=`Folder`,e[e.TypeParameter=24]=`TypeParameter`,e[e.User=25]=`User`,e[e.Issue=26]=`Issue`,e[e.Tool=27]=`Tool`,e[e.Snippet=28]=`Snippet`})(Qn||={});var $n;(function(e){e[e.Deprecated=1]=`Deprecated`})($n||={});var er;(function(e){e[e.Invoke=0]=`Invoke`,e[e.TriggerCharacter=1]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=2]=`TriggerForIncompleteCompletions`})(er||={});var tr;(function(e){e[e.EXACT=0]=`EXACT`,e[e.ABOVE=1]=`ABOVE`,e[e.BELOW=2]=`BELOW`})(tr||={});var nr;(function(e){e[e.NotSet=0]=`NotSet`,e[e.ContentFlush=1]=`ContentFlush`,e[e.RecoverFromMarkers=2]=`RecoverFromMarkers`,e[e.Explicit=3]=`Explicit`,e[e.Paste=4]=`Paste`,e[e.Undo=5]=`Undo`,e[e.Redo=6]=`Redo`})(nr||={});var rr;(function(e){e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(rr||={});var ir;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(ir||={});var ar;(function(e){e[e.None=0]=`None`,e[e.Keep=1]=`Keep`,e[e.Brackets=2]=`Brackets`,e[e.Advanced=3]=`Advanced`,e[e.Full=4]=`Full`})(ar||={});var or;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]=`acceptSuggestionOnCommitCharacter`,e[e.acceptSuggestionOnEnter=1]=`acceptSuggestionOnEnter`,e[e.accessibilitySupport=2]=`accessibilitySupport`,e[e.accessibilityPageSize=3]=`accessibilityPageSize`,e[e.allowOverflow=4]=`allowOverflow`,e[e.allowVariableLineHeights=5]=`allowVariableLineHeights`,e[e.allowVariableFonts=6]=`allowVariableFonts`,e[e.allowVariableFontsInAccessibilityMode=7]=`allowVariableFontsInAccessibilityMode`,e[e.ariaLabel=8]=`ariaLabel`,e[e.ariaRequired=9]=`ariaRequired`,e[e.autoClosingBrackets=10]=`autoClosingBrackets`,e[e.autoClosingComments=11]=`autoClosingComments`,e[e.screenReaderAnnounceInlineSuggestion=12]=`screenReaderAnnounceInlineSuggestion`,e[e.autoClosingDelete=13]=`autoClosingDelete`,e[e.autoClosingOvertype=14]=`autoClosingOvertype`,e[e.autoClosingQuotes=15]=`autoClosingQuotes`,e[e.autoIndent=16]=`autoIndent`,e[e.autoIndentOnPaste=17]=`autoIndentOnPaste`,e[e.autoIndentOnPasteWithinString=18]=`autoIndentOnPasteWithinString`,e[e.automaticLayout=19]=`automaticLayout`,e[e.autoSurround=20]=`autoSurround`,e[e.bracketPairColorization=21]=`bracketPairColorization`,e[e.guides=22]=`guides`,e[e.codeLens=23]=`codeLens`,e[e.codeLensFontFamily=24]=`codeLensFontFamily`,e[e.codeLensFontSize=25]=`codeLensFontSize`,e[e.colorDecorators=26]=`colorDecorators`,e[e.colorDecoratorsLimit=27]=`colorDecoratorsLimit`,e[e.columnSelection=28]=`columnSelection`,e[e.comments=29]=`comments`,e[e.contextmenu=30]=`contextmenu`,e[e.copyWithSyntaxHighlighting=31]=`copyWithSyntaxHighlighting`,e[e.cursorBlinking=32]=`cursorBlinking`,e[e.cursorSmoothCaretAnimation=33]=`cursorSmoothCaretAnimation`,e[e.cursorStyle=34]=`cursorStyle`,e[e.cursorSurroundingLines=35]=`cursorSurroundingLines`,e[e.cursorSurroundingLinesStyle=36]=`cursorSurroundingLinesStyle`,e[e.cursorWidth=37]=`cursorWidth`,e[e.cursorHeight=38]=`cursorHeight`,e[e.disableLayerHinting=39]=`disableLayerHinting`,e[e.disableMonospaceOptimizations=40]=`disableMonospaceOptimizations`,e[e.domReadOnly=41]=`domReadOnly`,e[e.dragAndDrop=42]=`dragAndDrop`,e[e.dropIntoEditor=43]=`dropIntoEditor`,e[e.editContext=44]=`editContext`,e[e.emptySelectionClipboard=45]=`emptySelectionClipboard`,e[e.experimentalGpuAcceleration=46]=`experimentalGpuAcceleration`,e[e.experimentalWhitespaceRendering=47]=`experimentalWhitespaceRendering`,e[e.extraEditorClassName=48]=`extraEditorClassName`,e[e.fastScrollSensitivity=49]=`fastScrollSensitivity`,e[e.find=50]=`find`,e[e.fixedOverflowWidgets=51]=`fixedOverflowWidgets`,e[e.folding=52]=`folding`,e[e.foldingStrategy=53]=`foldingStrategy`,e[e.foldingHighlight=54]=`foldingHighlight`,e[e.foldingImportsByDefault=55]=`foldingImportsByDefault`,e[e.foldingMaximumRegions=56]=`foldingMaximumRegions`,e[e.unfoldOnClickAfterEndOfLine=57]=`unfoldOnClickAfterEndOfLine`,e[e.fontFamily=58]=`fontFamily`,e[e.fontInfo=59]=`fontInfo`,e[e.fontLigatures=60]=`fontLigatures`,e[e.fontSize=61]=`fontSize`,e[e.fontWeight=62]=`fontWeight`,e[e.fontVariations=63]=`fontVariations`,e[e.formatOnPaste=64]=`formatOnPaste`,e[e.formatOnType=65]=`formatOnType`,e[e.glyphMargin=66]=`glyphMargin`,e[e.gotoLocation=67]=`gotoLocation`,e[e.hideCursorInOverviewRuler=68]=`hideCursorInOverviewRuler`,e[e.hover=69]=`hover`,e[e.inDiffEditor=70]=`inDiffEditor`,e[e.inlineSuggest=71]=`inlineSuggest`,e[e.letterSpacing=72]=`letterSpacing`,e[e.lightbulb=73]=`lightbulb`,e[e.lineDecorationsWidth=74]=`lineDecorationsWidth`,e[e.lineHeight=75]=`lineHeight`,e[e.lineNumbers=76]=`lineNumbers`,e[e.lineNumbersMinChars=77]=`lineNumbersMinChars`,e[e.linkedEditing=78]=`linkedEditing`,e[e.links=79]=`links`,e[e.matchBrackets=80]=`matchBrackets`,e[e.minimap=81]=`minimap`,e[e.mouseStyle=82]=`mouseStyle`,e[e.mouseWheelScrollSensitivity=83]=`mouseWheelScrollSensitivity`,e[e.mouseWheelZoom=84]=`mouseWheelZoom`,e[e.multiCursorMergeOverlapping=85]=`multiCursorMergeOverlapping`,e[e.multiCursorModifier=86]=`multiCursorModifier`,e[e.mouseMiddleClickAction=87]=`mouseMiddleClickAction`,e[e.multiCursorPaste=88]=`multiCursorPaste`,e[e.multiCursorLimit=89]=`multiCursorLimit`,e[e.occurrencesHighlight=90]=`occurrencesHighlight`,e[e.occurrencesHighlightDelay=91]=`occurrencesHighlightDelay`,e[e.overtypeCursorStyle=92]=`overtypeCursorStyle`,e[e.overtypeOnPaste=93]=`overtypeOnPaste`,e[e.overviewRulerBorder=94]=`overviewRulerBorder`,e[e.overviewRulerLanes=95]=`overviewRulerLanes`,e[e.padding=96]=`padding`,e[e.pasteAs=97]=`pasteAs`,e[e.parameterHints=98]=`parameterHints`,e[e.peekWidgetDefaultFocus=99]=`peekWidgetDefaultFocus`,e[e.placeholder=100]=`placeholder`,e[e.definitionLinkOpensInPeek=101]=`definitionLinkOpensInPeek`,e[e.quickSuggestions=102]=`quickSuggestions`,e[e.quickSuggestionsDelay=103]=`quickSuggestionsDelay`,e[e.readOnly=104]=`readOnly`,e[e.readOnlyMessage=105]=`readOnlyMessage`,e[e.renameOnType=106]=`renameOnType`,e[e.renderRichScreenReaderContent=107]=`renderRichScreenReaderContent`,e[e.renderControlCharacters=108]=`renderControlCharacters`,e[e.renderFinalNewline=109]=`renderFinalNewline`,e[e.renderLineHighlight=110]=`renderLineHighlight`,e[e.renderLineHighlightOnlyWhenFocus=111]=`renderLineHighlightOnlyWhenFocus`,e[e.renderValidationDecorations=112]=`renderValidationDecorations`,e[e.renderWhitespace=113]=`renderWhitespace`,e[e.revealHorizontalRightPadding=114]=`revealHorizontalRightPadding`,e[e.roundedSelection=115]=`roundedSelection`,e[e.rulers=116]=`rulers`,e[e.scrollbar=117]=`scrollbar`,e[e.scrollBeyondLastColumn=118]=`scrollBeyondLastColumn`,e[e.scrollBeyondLastLine=119]=`scrollBeyondLastLine`,e[e.scrollPredominantAxis=120]=`scrollPredominantAxis`,e[e.selectionClipboard=121]=`selectionClipboard`,e[e.selectionHighlight=122]=`selectionHighlight`,e[e.selectionHighlightMaxLength=123]=`selectionHighlightMaxLength`,e[e.selectionHighlightMultiline=124]=`selectionHighlightMultiline`,e[e.selectOnLineNumbers=125]=`selectOnLineNumbers`,e[e.showFoldingControls=126]=`showFoldingControls`,e[e.showUnused=127]=`showUnused`,e[e.snippetSuggestions=128]=`snippetSuggestions`,e[e.smartSelect=129]=`smartSelect`,e[e.smoothScrolling=130]=`smoothScrolling`,e[e.stickyScroll=131]=`stickyScroll`,e[e.stickyTabStops=132]=`stickyTabStops`,e[e.stopRenderingLineAfter=133]=`stopRenderingLineAfter`,e[e.suggest=134]=`suggest`,e[e.suggestFontSize=135]=`suggestFontSize`,e[e.suggestLineHeight=136]=`suggestLineHeight`,e[e.suggestOnTriggerCharacters=137]=`suggestOnTriggerCharacters`,e[e.suggestSelection=138]=`suggestSelection`,e[e.tabCompletion=139]=`tabCompletion`,e[e.tabIndex=140]=`tabIndex`,e[e.trimWhitespaceOnDelete=141]=`trimWhitespaceOnDelete`,e[e.unicodeHighlighting=142]=`unicodeHighlighting`,e[e.unusualLineTerminators=143]=`unusualLineTerminators`,e[e.useShadowDOM=144]=`useShadowDOM`,e[e.useTabStops=145]=`useTabStops`,e[e.wordBreak=146]=`wordBreak`,e[e.wordSegmenterLocales=147]=`wordSegmenterLocales`,e[e.wordSeparators=148]=`wordSeparators`,e[e.wordWrap=149]=`wordWrap`,e[e.wordWrapBreakAfterCharacters=150]=`wordWrapBreakAfterCharacters`,e[e.wordWrapBreakBeforeCharacters=151]=`wordWrapBreakBeforeCharacters`,e[e.wordWrapColumn=152]=`wordWrapColumn`,e[e.wordWrapOverride1=153]=`wordWrapOverride1`,e[e.wordWrapOverride2=154]=`wordWrapOverride2`,e[e.wrappingIndent=155]=`wrappingIndent`,e[e.wrappingStrategy=156]=`wrappingStrategy`,e[e.showDeprecated=157]=`showDeprecated`,e[e.inertialScroll=158]=`inertialScroll`,e[e.inlayHints=159]=`inlayHints`,e[e.wrapOnEscapedLineFeeds=160]=`wrapOnEscapedLineFeeds`,e[e.effectiveCursorStyle=161]=`effectiveCursorStyle`,e[e.editorClassName=162]=`editorClassName`,e[e.pixelRatio=163]=`pixelRatio`,e[e.tabFocusMode=164]=`tabFocusMode`,e[e.layoutInfo=165]=`layoutInfo`,e[e.wrappingInfo=166]=`wrappingInfo`,e[e.defaultColorDecorators=167]=`defaultColorDecorators`,e[e.colorDecoratorsActivatedOn=168]=`colorDecoratorsActivatedOn`,e[e.inlineCompletionsAccessibilityVerbose=169]=`inlineCompletionsAccessibilityVerbose`,e[e.effectiveEditContext=170]=`effectiveEditContext`,e[e.scrollOnMiddleClick=171]=`scrollOnMiddleClick`,e[e.effectiveAllowVariableFonts=172]=`effectiveAllowVariableFonts`})(or||={});var sr;(function(e){e[e.TextDefined=0]=`TextDefined`,e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(sr||={});var cr;(function(e){e[e.LF=0]=`LF`,e[e.CRLF=1]=`CRLF`})(cr||={});var lr;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(lr||={});var ur;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(ur||={});var dr;(function(e){e[e.None=0]=`None`,e[e.Indent=1]=`Indent`,e[e.IndentOutdent=2]=`IndentOutdent`,e[e.Outdent=3]=`Outdent`})(dr||={});var fr;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(fr||={});var pr;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(pr||={});var mr;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(mr||={});var hr;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(hr||={});var gr;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(gr||={});var _r;(function(e){e[e.DependsOnKbLayout=-1]=`DependsOnKbLayout`,e[e.Unknown=0]=`Unknown`,e[e.Backspace=1]=`Backspace`,e[e.Tab=2]=`Tab`,e[e.Enter=3]=`Enter`,e[e.Shift=4]=`Shift`,e[e.Ctrl=5]=`Ctrl`,e[e.Alt=6]=`Alt`,e[e.PauseBreak=7]=`PauseBreak`,e[e.CapsLock=8]=`CapsLock`,e[e.Escape=9]=`Escape`,e[e.Space=10]=`Space`,e[e.PageUp=11]=`PageUp`,e[e.PageDown=12]=`PageDown`,e[e.End=13]=`End`,e[e.Home=14]=`Home`,e[e.LeftArrow=15]=`LeftArrow`,e[e.UpArrow=16]=`UpArrow`,e[e.RightArrow=17]=`RightArrow`,e[e.DownArrow=18]=`DownArrow`,e[e.Insert=19]=`Insert`,e[e.Delete=20]=`Delete`,e[e.Digit0=21]=`Digit0`,e[e.Digit1=22]=`Digit1`,e[e.Digit2=23]=`Digit2`,e[e.Digit3=24]=`Digit3`,e[e.Digit4=25]=`Digit4`,e[e.Digit5=26]=`Digit5`,e[e.Digit6=27]=`Digit6`,e[e.Digit7=28]=`Digit7`,e[e.Digit8=29]=`Digit8`,e[e.Digit9=30]=`Digit9`,e[e.KeyA=31]=`KeyA`,e[e.KeyB=32]=`KeyB`,e[e.KeyC=33]=`KeyC`,e[e.KeyD=34]=`KeyD`,e[e.KeyE=35]=`KeyE`,e[e.KeyF=36]=`KeyF`,e[e.KeyG=37]=`KeyG`,e[e.KeyH=38]=`KeyH`,e[e.KeyI=39]=`KeyI`,e[e.KeyJ=40]=`KeyJ`,e[e.KeyK=41]=`KeyK`,e[e.KeyL=42]=`KeyL`,e[e.KeyM=43]=`KeyM`,e[e.KeyN=44]=`KeyN`,e[e.KeyO=45]=`KeyO`,e[e.KeyP=46]=`KeyP`,e[e.KeyQ=47]=`KeyQ`,e[e.KeyR=48]=`KeyR`,e[e.KeyS=49]=`KeyS`,e[e.KeyT=50]=`KeyT`,e[e.KeyU=51]=`KeyU`,e[e.KeyV=52]=`KeyV`,e[e.KeyW=53]=`KeyW`,e[e.KeyX=54]=`KeyX`,e[e.KeyY=55]=`KeyY`,e[e.KeyZ=56]=`KeyZ`,e[e.Meta=57]=`Meta`,e[e.ContextMenu=58]=`ContextMenu`,e[e.F1=59]=`F1`,e[e.F2=60]=`F2`,e[e.F3=61]=`F3`,e[e.F4=62]=`F4`,e[e.F5=63]=`F5`,e[e.F6=64]=`F6`,e[e.F7=65]=`F7`,e[e.F8=66]=`F8`,e[e.F9=67]=`F9`,e[e.F10=68]=`F10`,e[e.F11=69]=`F11`,e[e.F12=70]=`F12`,e[e.F13=71]=`F13`,e[e.F14=72]=`F14`,e[e.F15=73]=`F15`,e[e.F16=74]=`F16`,e[e.F17=75]=`F17`,e[e.F18=76]=`F18`,e[e.F19=77]=`F19`,e[e.F20=78]=`F20`,e[e.F21=79]=`F21`,e[e.F22=80]=`F22`,e[e.F23=81]=`F23`,e[e.F24=82]=`F24`,e[e.NumLock=83]=`NumLock`,e[e.ScrollLock=84]=`ScrollLock`,e[e.Semicolon=85]=`Semicolon`,e[e.Equal=86]=`Equal`,e[e.Comma=87]=`Comma`,e[e.Minus=88]=`Minus`,e[e.Period=89]=`Period`,e[e.Slash=90]=`Slash`,e[e.Backquote=91]=`Backquote`,e[e.BracketLeft=92]=`BracketLeft`,e[e.Backslash=93]=`Backslash`,e[e.BracketRight=94]=`BracketRight`,e[e.Quote=95]=`Quote`,e[e.OEM_8=96]=`OEM_8`,e[e.IntlBackslash=97]=`IntlBackslash`,e[e.Numpad0=98]=`Numpad0`,e[e.Numpad1=99]=`Numpad1`,e[e.Numpad2=100]=`Numpad2`,e[e.Numpad3=101]=`Numpad3`,e[e.Numpad4=102]=`Numpad4`,e[e.Numpad5=103]=`Numpad5`,e[e.Numpad6=104]=`Numpad6`,e[e.Numpad7=105]=`Numpad7`,e[e.Numpad8=106]=`Numpad8`,e[e.Numpad9=107]=`Numpad9`,e[e.NumpadMultiply=108]=`NumpadMultiply`,e[e.NumpadAdd=109]=`NumpadAdd`,e[e.NUMPAD_SEPARATOR=110]=`NUMPAD_SEPARATOR`,e[e.NumpadSubtract=111]=`NumpadSubtract`,e[e.NumpadDecimal=112]=`NumpadDecimal`,e[e.NumpadDivide=113]=`NumpadDivide`,e[e.KEY_IN_COMPOSITION=114]=`KEY_IN_COMPOSITION`,e[e.ABNT_C1=115]=`ABNT_C1`,e[e.ABNT_C2=116]=`ABNT_C2`,e[e.AudioVolumeMute=117]=`AudioVolumeMute`,e[e.AudioVolumeUp=118]=`AudioVolumeUp`,e[e.AudioVolumeDown=119]=`AudioVolumeDown`,e[e.BrowserSearch=120]=`BrowserSearch`,e[e.BrowserHome=121]=`BrowserHome`,e[e.BrowserBack=122]=`BrowserBack`,e[e.BrowserForward=123]=`BrowserForward`,e[e.MediaTrackNext=124]=`MediaTrackNext`,e[e.MediaTrackPrevious=125]=`MediaTrackPrevious`,e[e.MediaStop=126]=`MediaStop`,e[e.MediaPlayPause=127]=`MediaPlayPause`,e[e.LaunchMediaPlayer=128]=`LaunchMediaPlayer`,e[e.LaunchMail=129]=`LaunchMail`,e[e.LaunchApp2=130]=`LaunchApp2`,e[e.Clear=131]=`Clear`,e[e.MAX_VALUE=132]=`MAX_VALUE`})(_r||={});var vr;(function(e){e[e.Hint=1]=`Hint`,e[e.Info=2]=`Info`,e[e.Warning=4]=`Warning`,e[e.Error=8]=`Error`})(vr||={});var yr;(function(e){e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`})(yr||={});var br;(function(e){e[e.Inline=1]=`Inline`,e[e.Gutter=2]=`Gutter`})(br||={});var xr;(function(e){e[e.Normal=1]=`Normal`,e[e.Underlined=2]=`Underlined`})(xr||={});var Sr;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.TEXTAREA=1]=`TEXTAREA`,e[e.GUTTER_GLYPH_MARGIN=2]=`GUTTER_GLYPH_MARGIN`,e[e.GUTTER_LINE_NUMBERS=3]=`GUTTER_LINE_NUMBERS`,e[e.GUTTER_LINE_DECORATIONS=4]=`GUTTER_LINE_DECORATIONS`,e[e.GUTTER_VIEW_ZONE=5]=`GUTTER_VIEW_ZONE`,e[e.CONTENT_TEXT=6]=`CONTENT_TEXT`,e[e.CONTENT_EMPTY=7]=`CONTENT_EMPTY`,e[e.CONTENT_VIEW_ZONE=8]=`CONTENT_VIEW_ZONE`,e[e.CONTENT_WIDGET=9]=`CONTENT_WIDGET`,e[e.OVERVIEW_RULER=10]=`OVERVIEW_RULER`,e[e.SCROLLBAR=11]=`SCROLLBAR`,e[e.OVERLAY_WIDGET=12]=`OVERLAY_WIDGET`,e[e.OUTSIDE_EDITOR=13]=`OUTSIDE_EDITOR`})(Sr||={});var Cr;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(Cr||={});var wr;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(wr||={});var Tr;(function(e){e[e.TOP_RIGHT_CORNER=0]=`TOP_RIGHT_CORNER`,e[e.BOTTOM_RIGHT_CORNER=1]=`BOTTOM_RIGHT_CORNER`,e[e.TOP_CENTER=2]=`TOP_CENTER`})(Tr||={});var Er;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})(Er||={});var Dr;(function(e){e[e.Word=0]=`Word`,e[e.Line=1]=`Line`,e[e.Suggest=2]=`Suggest`})(Dr||={});var Or;(function(e){e[e.Left=0]=`Left`,e[e.Right=1]=`Right`,e[e.None=2]=`None`,e[e.LeftOfInjectedText=3]=`LeftOfInjectedText`,e[e.RightOfInjectedText=4]=`RightOfInjectedText`})(Or||={});var kr;(function(e){e[e.Off=0]=`Off`,e[e.On=1]=`On`,e[e.Relative=2]=`Relative`,e[e.Interval=3]=`Interval`,e[e.Custom=4]=`Custom`})(kr||={});var Ar;(function(e){e[e.None=0]=`None`,e[e.Text=1]=`Text`,e[e.Blocks=2]=`Blocks`})(Ar||={});var jr;(function(e){e[e.Smooth=0]=`Smooth`,e[e.Immediate=1]=`Immediate`})(jr||={});var Mr;(function(e){e[e.Auto=1]=`Auto`,e[e.Hidden=2]=`Hidden`,e[e.Visible=3]=`Visible`})(Mr||={});var Nr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Nr||={});var Pr;(function(e){e.Off=`off`,e.OnCode=`onCode`,e.On=`on`})(Pr||={});var Fr;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Fr||={});var Ir;(function(e){e[e.File=0]=`File`,e[e.Module=1]=`Module`,e[e.Namespace=2]=`Namespace`,e[e.Package=3]=`Package`,e[e.Class=4]=`Class`,e[e.Method=5]=`Method`,e[e.Property=6]=`Property`,e[e.Field=7]=`Field`,e[e.Constructor=8]=`Constructor`,e[e.Enum=9]=`Enum`,e[e.Interface=10]=`Interface`,e[e.Function=11]=`Function`,e[e.Variable=12]=`Variable`,e[e.Constant=13]=`Constant`,e[e.String=14]=`String`,e[e.Number=15]=`Number`,e[e.Boolean=16]=`Boolean`,e[e.Array=17]=`Array`,e[e.Object=18]=`Object`,e[e.Key=19]=`Key`,e[e.Null=20]=`Null`,e[e.EnumMember=21]=`EnumMember`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`})(Ir||={});var Lr;(function(e){e[e.Deprecated=1]=`Deprecated`})(Lr||={});var Rr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Rr||={});var zr;(function(e){e[e.Hidden=0]=`Hidden`,e[e.Blink=1]=`Blink`,e[e.Smooth=2]=`Smooth`,e[e.Phase=3]=`Phase`,e[e.Expand=4]=`Expand`,e[e.Solid=5]=`Solid`})(zr||={});var Br;(function(e){e[e.Line=1]=`Line`,e[e.Block=2]=`Block`,e[e.Underline=3]=`Underline`,e[e.LineThin=4]=`LineThin`,e[e.BlockOutline=5]=`BlockOutline`,e[e.UnderlineThin=6]=`UnderlineThin`})(Br||={});var Vr;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]=`AlwaysGrowsWhenTypingAtEdges`,e[e.NeverGrowsWhenTypingAtEdges=1]=`NeverGrowsWhenTypingAtEdges`,e[e.GrowsOnlyWhenTypingBefore=2]=`GrowsOnlyWhenTypingBefore`,e[e.GrowsOnlyWhenTypingAfter=3]=`GrowsOnlyWhenTypingAfter`})(Vr||={});var Hr;(function(e){e[e.None=0]=`None`,e[e.Same=1]=`Same`,e[e.Indent=2]=`Indent`,e[e.DeepIndent=3]=`DeepIndent`})(Hr||={});var Ur=class{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return Kt(e,t)}};function Wr(){return{editor:void 0,languages:void 0,CancellationTokenSource:It,Emitter:oe,KeyCode:_r,KeyMod:Ur,Position:E,Range:D,Selection:kn,SelectionDirection:Nr,MarkerSeverity:vr,MarkerTag:yr,Uri:vn,Token:Fn}}var Gr,Kr,qr=class{constructor(e,t){this.uri=e,this.value=t}};function Jr(e){return Array.isArray(e)}(class e{static{this.defaultToKey=e=>e.toString()}constructor(t,n){if(this[Gr]=`ResourceMap`,t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(Jr(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[e,n]of t)this.set(e,n)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new qr(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(Gr=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}});var Yr=class{constructor(){this[Kr]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let n=this._map.get(e);if(n)return t!==0&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,n!==0&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.key,done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}values(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.value,done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}entries(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:[n.key,n.value],done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}[(Kr=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}},Xr=class extends Yr{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Zr=class extends Xr{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},Qr=class{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}};new Zr(10);var $r;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})($r||={});var ei;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(ei||={});var ti;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(ti||={});var ni;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(ni||={});function ri(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t=n)break;let r=e.charCodeAt(t);if(r===110||r===114||r===87)return!0}}return!1}function ii(e,t,n,r,i){if(r===0)return!0;let a=t.charCodeAt(r-1);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r);if(e.get(n)!==0)return!0}return!1}function ai(e,t,n,r,i){if(r+i===n)return!0;let a=t.charCodeAt(r+i);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r+i-1);if(e.get(n)!==0)return!0}return!1}function oi(e,t,n,r,i){return ii(e,t,n,r,i)&&ai(e,t,n,r,i)}var si=class{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t=e.length,n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(n=this._searchRegex.exec(e),!n))return null;let r=n.index,i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){Ve(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||oi(this._wordSeparators,e,t,r,i))return n}while(n);return null}};function ci(e=``){let t=`(-?\\d*\\.\\d\\w*)|([^`;for(let n of`\`~!@#$%^&*()-=+[{]}\\|;:'",.<>/?`)e.indexOf(n)>=0||(t+=`\\`+n);return t+=`\\s]+)`,new RegExp(t,`g`)}let li=ci();function ui(e){let t=li;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n=`g`;e.ignoreCase&&(n+=`i`),e.multiline&&(n+=`m`),e.unicode&&(n+=`u`),t=new RegExp(e.source,n)}return t.lastIndex=0,t}let di=new x;di.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function fi(e,t,n,r,i){if(t=ui(t),i||=p.first(di),n.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,n=n.substring(a,e+i.maxLen/2),fi(e,t,n,r,i)}let a=Date.now(),o=e-1-r,s=-1,c=null;for(let e=1;!(Date.now()-a>=i.timeBudget);e++){let r=o-i.windowSize*e;t.lastIndex=Math.max(0,r);let a=pi(t,n,o,s);if(!a&&c||(c=a,r<=0))break;s=r}if(c){let e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,e}return null}function pi(e,t,n,r){let i;for(;i=e.exec(t);){let t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}var mi=class{static computeUnicodeHighlights(e,t,n){let r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),a=new gi(t),o=a.getCandidateCodePoints(),c;c=RegExp(o===`allNonBasicAscii`?`[^\\t\\n\\r\\x20-\\x7E]`:`${hi(Array.from(o))}`,`g`);let l=new si(null,c),u=[],d=!1,f,p=0,m=0,h=0;forLoop:for(let t=r,n=i;t<=n;t++){let n=e.getLineContent(t),r=n.length;l.reset(0);do if(f=l.next(n),f){let e=f.index,i=f.index+f[0].length;e>0&&Re(n.charCodeAt(e-1))&&e--,i+1=1e3){d=!0;break forLoop}u.push(new D(t,e+1,t,i+1))}}while(f)}return{ranges:u,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:h}}static computeUnicodeHighlightReason(e,t){let n=new gi(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{let r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),a=Ge.getLocales().filter(e=>!Ge.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:a}}case 1:return{kind:2}}}};function hi(e,t){return`[${Ae(e.map(e=>String.fromCodePoint(e)).join(``))}]`}var gi=class{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Ge.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return`allNonBasicAscii`;let e=new Set;if(this.options.invisibleCharacters)for(let t of Ke.codePoints)_i(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(let e of t){let t=e.codePointAt(0),n=Ue(e);r||=n,!n&&!this.ambiguousCharacters.isAmbiguous(t)&&!Ke.isInvisibleCharacter(t)&&(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!_i(e)&&Ke.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}};function _i(e){return e===` `||e===` +`||e===` `}var vi=class{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}},yi=class{constructor(e,t){this.lineRangeMapping=e,this.changes=t}};function bi(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Ti||={});function Ei(e,t){return(n,r)=>t(e(n),e(r))}let Di=(e,t)=>e-t;function Oi(e){return(t,n)=>-e(t,n)}(class e{static{this.empty=new e(e=>{})}constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>t(n)?e(n):!0))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||Ti.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}});var M=class e{static fromTo(t,n){return new e(t,n)}static addRange(t,n){let r=0;for(;rn))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}static emptyAt(t){return new e(t,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new o(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new o(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new o(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;te.startLineNumber,Di)}static joinMany(e){if(e.length===0)return[];let t=new Pi(e[0].slice());for(let n=1;nt)throw new o(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&et.endLineNumberExclusive>=e.startLineNumber),n=Ai(this._normalizedRanges,t=>t.startLineNumber<=e.endLineNumberExclusive)+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){let n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{let r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){let t=ki(this._normalizedRanges,t=>t.startLineNumber<=e);return!!t&&t.endLineNumberExclusive>e}intersects(e){let t=ki(this._normalizedRanges,t=>t.startLineNumbere.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let n=[],r=0,i=0,a=null;for(;r=e.startLineNumber?a=new N(a.startLineNumber,Math.max(a.endLineNumberExclusive,e.endLineNumberExclusive)):(n.push(a),a=e)}return a!==null&&n.push(a),new e(n)}subtractFrom(t){let n=Mi(this._normalizedRanges,e=>e.endLineNumberExclusive>=t.startLineNumber),r=Ai(this._normalizedRanges,e=>e.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new e([t]);let i=[],a=t.startLineNumber;for(let e=n;ea&&i.push(new N(a,t.startLineNumber)),a=t.endLineNumberExclusive}return ae.toString()).join(`, `)}getIntersection(t){let n=[],r=0,i=0;for(;re.delta(t)))}},Fi=class e{static{this.zero=new e(0,0)}static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new e(0,n.column-t.column):new e(n.lineNumber-t.lineNumber,n.column-1)}static fromPosition(t){return new e(t.lineNumber-1,t.column-1)}static ofRange(t){return e.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(let e of t)e===` +`?(n++,r=0):r++;return new e(n,r)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount===e.lineCount?this.columnCount>=e.columnCount:this.lineCount>e.lineCount}add(t){return t.lineCount===0?new e(this.lineCount,this.columnCount+t.columnCount):new e(this.lineCount+t.lineCount,t.columnCount)}createRange(e){return this.lineCount===0?new D(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new D(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new D(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return N.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new E(e.lineNumber,e.column+this.columnCount):new E(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}},Ii=class{getOffsetRange(e){return new M(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return D.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new Li.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new Li.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){let t=e.replacements.map(e=>this.getTextReplacement(e));return new Li.deps.TextEdit(t)}},Li=class{static{this._deps=void 0}static get deps(){if(!this._deps)throw Error(`Dependencies not set. Call _setDependencies first.`);return this._deps}},Ri=class extends Ii{constructor(e){super(),this.text=e,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t0&&e.charAt(t-1)===`\r`?this.lineEndOffsetByLineIdx.push(t-1):this.lineEndOffsetByLineIdx.push(t));this.lineEndOffsetByLineIdx.push(e.length)}getOffset(e){let t=this._validatePosition(e);return this.lineStartOffsetByLineIdx[t.lineNumber-1]+t.column-1}_validatePosition(e){if(e.lineNumber<1)return new E(1,1);let t=this.textLength.lineCount+1;if(e.lineNumber>t)return new E(t,this.getLineLength(t)+1);if(e.column<1)return new E(e.lineNumber,1);let n=this.getLineLength(e.lineNumber);return e.column-1>n?new E(e.lineNumber,n+1):e}getPosition(e){let t=Ai(this.lineStartOffsetByLineIdx,t=>t<=e);return new E(t+1,e-this.lineStartOffsetByLineIdx[t]+1)}get textLength(){let e=this.lineStartOffsetByLineIdx.length-1;return new Li.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}},zi=class{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new E(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new D(e,1,e,2**53-1)).length}getTransformer(){return this._transformer||=new Ri(this.getValue()),this._transformer}getLineAt(e){return this.getValueOfRange(new D(e,1,e,2**53-1))}},Bi=class extends zi{constructor(e,t){c(t>=1),super(),this._getLineContent=e,this._lineCount=t}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let t=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let n=e.startLineNumber+1;ne[t-1],e.length)}},Hi=class e{static joinReplacements(t,n){if(t.length===0)throw new o;if(t.length===1)return t[0];let r=t[0].range.getStartPosition(),i=t[t.length-1].range.getEndPosition(),a=``;for(let e=0;e ${t.lineNumber},${t.column}): "${this.text}"`}},Ui=class e{static inverse(t,n,r){let i=[],a=1,o=1;for(let n of t){let t=new e(new N(a,n.original.startLineNumber),new N(o,n.modified.startLineNumber));t.modified.isEmpty||i.push(t),a=n.original.endLineNumberExclusive,o=n.modified.endLineNumberExclusive}let s=new e(new N(a,n+1),new N(o,r+1));return s.modified.isEmpty||i.push(s),i}static clip(t,n,r){let i=[];for(let a of t){let t=a.original.intersect(n),o=a.modified.intersect(r);t&&!t.isEmpty&&o&&!o.isEmpty&&i.push(new e(t,o))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){let e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new qi(e,t);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new o(`not a valid diff`);return new qi(new D(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new D(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new qi(new D(this.original.startLineNumber-1,2**53-1,this.original.endLineNumberExclusive-1,2**53-1),new D(this.modified.startLineNumber-1,2**53-1,this.modified.endLineNumberExclusive-1,2**53-1))}toRangeMapping2(e,t){if(Gi(this.original.endLineNumberExclusive,e)&&Gi(this.modified.endLineNumberExclusive,t))return new qi(new D(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new D(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new qi(D.fromPositions(new E(this.original.startLineNumber,1),Wi(new E(this.original.endLineNumberExclusive-1,2**53-1),e)),D.fromPositions(new E(this.modified.startLineNumber,1),Wi(new E(this.modified.endLineNumberExclusive-1,2**53-1),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new qi(D.fromPositions(Wi(new E(this.original.startLineNumber-1,2**53-1),e),Wi(new E(this.original.endLineNumberExclusive-1,2**53-1),e)),D.fromPositions(Wi(new E(this.modified.startLineNumber-1,2**53-1),t),Wi(new E(this.modified.endLineNumberExclusive-1,2**53-1),t)));throw new o}};function Wi(e,t){if(e.lineNumber<1)return new E(1,1);if(e.lineNumber>t.length)return new E(t.length,t[t.length-1].length+1);let n=t[e.lineNumber-1];return e.column>n.length+1?new E(e.lineNumber,n.length+1):e}function Gi(e,t){return e>=1&&e<=t.length}var Ki=class e extends Ui{static fromRangeMappings(t){return new e(N.join(t.map(e=>N.fromRangeInclusive(e.originalRange))),N.join(t.map(e=>N.fromRangeInclusive(e.modifiedRange))),t)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new e(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new e(this.original,this.modified,[this.toRangeMapping()])}},qi=class e{static fromEdit(t){let n=t.getNewRanges();return t.replacements.map((t,r)=>new e(t.range,n[r]))}static assertSorted(e){for(let t=1;t${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}toTextEdit(e){let t=e.getValueOfRange(this.modifiedRange);return new Hi(this.originalRange,t)}};function Ji(e,t,n,r=!1){let i=[];for(let r of xi(e.map(e=>Yi(e,t,n)),(e,t)=>e.original.intersectsOrTouches(t.original)||e.modified.intersectsOrTouches(t.modified))){let e=r[0],t=r[r.length-1];i.push(new Ki(e.original.join(t.original),e.modified.join(t.modified),r.map(e=>e.innerChanges[0])))}return l(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length.lineCount-i[i.length-1].modified.endLineNumberExclusive!==t.length.lineCount-i[i.length-1].original.endLineNumberExclusive)?!1:u(i,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1),new Ki(new N(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),new N(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i),[e])}var Xi=class{computeDiff(e,t,n){let r=new ra(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[],a=null;for(let e of r.changes){let t;t=e.originalEndLineNumber===0?new N(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new N(e.originalStartLineNumber,e.originalEndLineNumber+1);let n;n=e.modifiedEndLineNumber===0?new N(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new N(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new Ki(t,n,e.charChanges?.map(e=>new qi(new D(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new D(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));a&&(a.modified.endLineNumberExclusive===r.modified.startLineNumber||a.original.endLineNumberExclusive===r.original.startLineNumber)&&(r=new Ki(a.original.join(r.original),a.modified.join(r.modified),a.innerChanges&&r.innerChanges?a.innerChanges.concat(r.innerChanges):void 0),i.pop()),i.push(r),a=r}return l(()=>u(i,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive(e===10?`\\n`:String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(`, `)+`]`}_assertIndex(e,t){if(e<0||e>=t.length)throw Error(`Illegal index`)}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}},ea=class e{constructor(e,t,n,r,i,a,o,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}static createFromDiffChange(t,n,r){return new e(n.getStartLineNumber(t.originalStart),n.getStartColumn(t.originalStart),n.getEndLineNumber(t.originalStart+t.originalLength-1),n.getEndColumn(t.originalStart+t.originalLength-1),r.getStartLineNumber(t.modifiedStart),r.getStartColumn(t.modifiedStart),r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),r.getEndColumn(t.modifiedStart+t.modifiedLength-1))}};function ta(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&a()){let e=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),o=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(e.getElements().length>0&&o.getElements().length>0){let t=Zi(e,o,a,!0).changes;s&&(t=ta(t)),f=[];for(let n=0,r=t.length;n1&&o>1&&e.charCodeAt(n-2)===t.charCodeAt(o-2);)n--,o--;(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,a+1,1,o)}{let n=aa(e,1),o=aa(t,1),s=e.length+1,c=t.length+1;for(;n!0;let t=Date.now();return()=>Date.now()-t{r.push(e.fromOffsetPairs(t?t.getEndExclusives():la.zero,i?i.getStarts():new la(n,(t?t.seq2Range.endExclusive-t.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new M(t.offset1,n.offset1),new M(t.offset2,n.offset2))}static assertSorted(e){let t;for(let n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new o(`Sequence diffs must be sorted`);t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new e(n,r)}getStarts(){return new la(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new la(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},la=class e{static{this.zero=new e(0,0)}static{this.max=new e(2**53-1,2**53-1)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new e(this.offset1+t,this.offset2+t)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}},ua=class e{static{this.instance=new e}isValid(){return!0}},da=class{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new o(`timeout must be positive`)}isValid(){return!(Date.now()-this.startTime0&&c>0&&a.get(s-1,c-1)===3&&(d+=o.get(s-1,c-1)),d+=r?r(s,c):1):d=-1;let f=Math.max(l,u,d);if(f===d){let e=s>0&&c>0?o.get(s-1,c-1):0;o.set(s,c,e+1),a.set(s,c,3)}else f===l?(o.set(s,c,0),a.set(s,c,1)):f===u&&(o.set(s,c,0),a.set(s,c,2));i.set(s,c,f)}let s=[],c=e.length,l=t.length;function u(e,t){(e+1!==c||t+1!==l)&&s.push(new ca(new M(e+1,c),new M(t+1,l))),c=e,l=t}let d=e.length-1,f=t.length-1;for(;d>=0&&f>=0;)a.get(d,f)===3?(u(d,f),d--,f--):a.get(d,f)===1?d--:f--;return u(-1,-1),s.reverse(),new sa(s,!1)}},ga=class{compute(e,t,n=ua.instance){if(e.length===0||t.length===0)return sa.trivial(e,t);let r=e,i=t;function a(e,t){for(;er.length||d>i.length)continue;let f=a(u,d);s.set(l,f);let p=u===n?c.get(l+1):c.get(l-1);if(c.set(l,f===u?p:new _a(p,u,d,f-u)),s.get(l)===r.length&&s.get(l)-l===i.length)break loop}}let u=c.get(l),d=[],f=r.length,p=i.length;for(;;){let e=u?u.x+u.length:0,t=u?u.y+u.length:0;if((e!==f||t!==p)&&d.push(new ca(new M(e,f),new M(t,p))),!u)break;f=u.x,p=u.y,u=u.prev}return d.reverse(),new sa(d,!1)}},_a=class{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}},va=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){let e=this.negativeArr;this.negativeArr=new Int32Array(e.length*2),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){let e=this.positiveArr;this.positiveArr=new Int32Array(e.length*2),this.positiveArr.set(e)}this.positiveArr[e]=t}}},ya=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}},ba=class{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let t=this.range.startLineNumber;t<=this.range.endLineNumber;t++){let r=e[t-1],i=0;t===this.range.startLineNumber&&this.range.startColumn>1&&(i=this.range.startColumn-1,r=r.substring(i)),this.lineStartOffsets.push(i);let a=0;if(!n){let e=r.trimStart();a=r.length-e.length,r=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(a);let o=t===this.range.endLineNumber?Math.min(this.range.endColumn-1-i-a,r.length):r.length;for(let e=0;eString.fromCharCode(e)).join(``)}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let t=Ta(e>0?this.elements[e-1]:-1),n=Ta(et<=e),r=e-this.firstElementOffsetByLineIdx[n];return new E(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(r===0&&t===`left`?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){let t=this.translateOffset(e.start,`right`),n=this.translateOffset(e.endExclusive,`left`);return n.isBefore(t)?D.fromPositions(n,n):D.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length||!xa(this.elements[e]))return;let t=e;for(;t>0&&xa(this.elements[t-1]);)t--;let n=e;for(;n=this.elements.length||!xa(this.elements[e]))return;let t=e;for(;t>0&&xa(this.elements[t-1])&&!Sa(this.elements[t]);)t--;let n=e;for(;nt<=e.start)??0,ji(this.firstElementOffsetByLineIdx,t=>e.endExclusive<=t)??this.elements.length)}};function xa(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function Sa(e){return e>=65&&e<=90}let Ca={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function wa(e){return Ca[e]}function Ta(e){return e===10?8:e===13?7:pa(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Ea(e,t,n,r,i,a){let{moves:o,excludedChanges:s}=Oa(e,t,n,a);if(!a.isValid())return[];let c=ka(e.filter(e=>!s.has(e)),r,i,t,n,a);return wi(o,c),o=ja(o),o=o.filter(e=>{let n=e.original.toOffsetRange().slice(t).map(e=>e.trim());return n.join(` +`).length>=15&&Da(n,e=>e.length>=2)>=2}),o=Ma(e,o),o}function Da(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function Oa(e,t,n,r){let i=[],a=e.filter(e=>e.modified.isEmpty&&e.original.length>=3).map(e=>new ma(e.original,t,e)),o=new Set(e.filter(e=>e.original.isEmpty&&e.modified.length>=3).map(e=>new ma(e.modified,n,e))),s=new Set;for(let e of a){let t=-1,n;for(let r of o){let i=e.computeSimilarity(r);i>t&&(t=i,n=r)}if(t>.9&&n&&(o.delete(n),i.push(new Ui(e.range,n.range)),s.add(e.source),s.add(n.source)),!r.isValid())return{moves:i,excludedChanges:s}}return{moves:i,excludedChanges:s}}function ka(e,t,n,r,i,a){let o=[],s=new Qr;for(let n of e)for(let e=n.original.startLineNumber;ee.modified.startLineNumber,Di));for(let t of e){let e=[];for(let r=t.modified.startLineNumber;r{for(let n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive){n.originalLineRange=new N(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new N(n.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),a.push(n);return}let n={modifiedLineRange:i,originalLineRange:t};c.push(n),a.push(n)}),e=a}if(!a.isValid())return[]}c.sort(Oi(Ei(e=>e.modifiedLineRange.length,Di)));let l=new Pi,u=new Pi;for(let e of c){let t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,n=l.subtractFrom(e.modifiedLineRange),r=u.subtractFrom(e.originalLineRange).getWithDelta(t),i=n.getIntersection(r);for(let e of i.ranges){if(e.length<3)continue;let n=e,r=e.delta(-t);o.push(new Ui(r,n)),l.addRange(n),u.addRange(r)}}o.sort(Ei(e=>e.original.startLineNumber,Di));let d=new Ni(e);for(let t=0;te.original.startLineNumber<=n.original.startLineNumber),c=ki(e,e=>e.modified.startLineNumber<=n.modified.startLineNumber),f=Math.max(n.original.startLineNumber-s.original.startLineNumber,n.modified.startLineNumber-c.modified.startLineNumber),p=d.findLastMonotonous(e=>e.original.startLineNumbere.modified.startLineNumberr.length||t>i.length||l.contains(t)||u.contains(e)||!Aa(r[e-1],i[t-1],a))break}g>0&&(u.addRange(new N(n.original.startLineNumber-g,n.original.startLineNumber)),l.addRange(new N(n.modified.startLineNumber-g,n.modified.startLineNumber)));let _;for(_=0;_r.length||t>i.length||l.contains(t)||u.contains(e)||!Aa(r[e-1],i[t-1],a))break}_>0&&(u.addRange(new N(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+_)),l.addRange(new N(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+_))),(g>0||_>0)&&(o[t]=new Ui(new N(n.original.startLineNumber-g,n.original.endLineNumberExclusive+_),new N(n.modified.startLineNumber-g,n.modified.endLineNumberExclusive+_)))}return o}function Aa(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let r=new ga().compute(new ba([e],new D(1,1,1,e.length),!1),new ba([t],new D(1,1,1,t.length),!1),n),i=0,a=ca.invert(r.diffs,e.length);for(let t of a)t.seq1Range.forEach(t=>{pa(e.charCodeAt(t))||i++});function o(t){let n=0;for(let r=0;rt.length?e:t);return i/s>.6&&s>10}function ja(e){if(e.length===0)return e;e.sort(Ei(e=>e.original.startLineNumber,Di));let t=[e[0]];for(let n=1;n=0&&o>=0&&a+o<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function Ma(e,t){let n=new Ni(e);return t=t.filter(t=>(n.findLastMonotonous(e=>e.original.startLineNumbere.modified.startLineNumber0&&(o=o.delta(s))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Fa(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r0?n[r-1]:void 0,a=n[r],o=r+1=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+oc&&(c=l,s=r)}return e.delta(s)}function La(e,t,n){let r=[];for(let e of n){let t=r[r.length-1];if(!t){r.push(e);continue}e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2?r[r.length-1]=new ca(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):r.push(e)}return r}function Ra(e,t,n,r,i=!1){let a=ca.invert(n,e.length),o=[],s=new la(0,0);function c(n,c){if(n.offset10;){let n=a[0];if(!(n.seq1Range.intersects(d.seq1Range)||n.seq2Range.intersects(d.seq2Range)))break;let i=new ca(r(e,n.seq1Range.start),r(t,n.seq2Range.start)),o=i.intersect(n);if(p+=o.seq1Range.length,m+=o.seq2Range.length,d=d.join(i),d.seq1Range.endExclusive>=n.seq1Range.endExclusive)a.shift();else break}(i&&p+m0;){let e=a.shift();e.seq1Range.isEmpty||(c(e.getStarts(),e),c(e.getEndExclusives().delta(-1),e))}return za(n,o)}function za(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],a;a=r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=a.seq1Range.start?n[n.length-1]=n[n.length-1].join(a):n.push(a)}return n}function Ba(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let t=[r[0]];for(let n=1;n5||n.seq1Range.length+n.seq2Range.length>5)}o(s,i)?(a=!0,t[t.length-1]=t[t.length-1].join(i)):t.push(i)}r=t}while(i++<10&&a);return r}function Va(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let n=[r[0]];for(let i=1;i5||i.length>500)return!1;let a=e.getText(i).trim();if(a.length>20||a.split(/\r\n|\r|\n/).length>1)return!1;let o=e.countLinesIn(n.seq1Range),l=n.seq1Range.length,u=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,f=e.countLinesIn(r.seq1Range),p=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),h=r.seq2Range.length;function g(e){return Math.min(e,130)}return(g(o*40+l)**1.5+g(u*40+d)**1.5)**1.5+(g(f*40+p)**1.5+g(m*40+h)**1.5)**1.5>(130**1.5)**1.5*1.3}o(c,s)?(a=!0,n[n.length-1]=n[n.length-1].join(s)):n.push(s)}r=n}while(i++<10&&a);let s=[];return Ci(r,(t,n,r)=>{let i=n;function a(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}let o=e.extendToFullLines(n.seq1Range),c=e.getText(new M(o.start,n.seq1Range.start));a(c)&&(i=i.deltaStart(-c.length));let l=e.getText(new M(n.seq1Range.endExclusive,o.endExclusive));a(l)&&(i=i.deltaEnd(l.length));let u=ca.fromOffsetPairs(t?t.getEndExclusives():la.zero,r?r.getStarts():la.max),d=i.intersect(u);s.length>0&&d.getStarts().equals(s[s.length-1].getEndExclusives())?s[s.length-1]=s[s.length-1].join(d):s.push(d)}),s}var Ha=class{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((e===0?0:Ua(this.lines[e-1]))+(e===this.lines.length?0:Ua(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join(` +`)}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}};function Ua(e){let t=0;for(;te===t))return new vi([],[],!1);if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return new vi([new Ki(new N(1,e.length+1),new N(1,t.length+1),[new qi(new D(1,1,e.length,e[e.length-1].length+1),new D(1,1,t.length,t[t.length-1].length+1))])],[],!1);let r=n.maxComputationTimeMs===0?ua.instance:new da(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,a=new Map;function o(e){let t=a.get(e);return t===void 0&&(t=a.size,a.set(e,t)),t}let s=e.map(e=>o(e.trim())),c=t.map(e=>o(e.trim())),u=new Ha(s,e),d=new Ha(c,t),f=u.length+d.length<1700?this.dynamicProgrammingDiffing.compute(u,d,r,(n,r)=>e[n]===t[r]?t[r].length===0?.1:1+Math.log(1+t[r].length):.99):this.myersDiffingAlgorithm.compute(u,d,r),p=f.diffs,m=f.hitTimeout;p=Na(u,d,p),p=Ba(u,d,p);let h=[],g=a=>{if(i)for(let o=0;oa.seq1Range.start-_===a.seq2Range.start-v),g(a.seq1Range.start-_),_=a.seq1Range.endExclusive,v=a.seq2Range.endExclusive;let o=this.refineDiff(e,t,a,r,i,n);o.hitTimeout&&(m=!0);for(let e of o.mappings)h.push(e)}g(e.length-_);let y=Ji(h,new Vi(e),new Vi(t)),b=[];return n.computeMoves&&(b=this.computeMoves(y,e,t,s,c,r,i,n)),l(()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(let i of y){if(!i.innerChanges)return!1;for(let r of i.innerChanges)if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1;if(!r(i.modified,t)||!r(i.original,e))return!1}return!0}),new vi(y,b,m)}computeMoves(e,t,n,r,i,a,o,s){return Ea(e,t,n,r,i,a).map(e=>new yi(e,Ji(this.refineDiff(t,n,new ca(e.original.toOffsetRange(),e.modified.toOffsetRange()),a,o,s).mappings,new Vi(t),new Vi(n),!0)))}refineDiff(e,t,n,r,i,a){let o=Ga(n).toRangeMapping2(e,t),s=new ba(e,o.originalRange,i),c=new ba(t,o.modifiedRange,i),l=s.length+c.length<500?this.dynamicProgrammingDiffing.compute(s,c,r):this.myersDiffingAlgorithm.compute(s,c,r),u=l.diffs;return u=Na(s,c,u),u=Ra(s,c,u,(e,t)=>e.findWordContaining(t)),a.extendToSubwords&&(u=Ra(s,c,u,(e,t)=>e.findSubWordContaining(t),!0)),u=La(s,c,u),u=Va(s,c,u),{mappings:u.map(e=>new qi(s.translateRange(e.seq1Range),c.translateRange(e.seq2Range))),hitTimeout:l.hitTimeout}}};function Ga(e){return new Ui(new N(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new N(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}let Ka={getLegacy:()=>new Xi,getDefault:()=>new Wa};function qa(e,t){let n=10**t;return Math.round(e*n)/n}var P=class{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}},Ja=class e{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=qa(Math.max(Math.min(1,t),0),3),this.l=qa(Math.max(Math.min(1,n),0),3),this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=t.a,o=Math.max(n,r,i),s=Math.min(n,r,i),c=0,l=0,u=(s+o)/2,d=o-s;if(d>0){switch(l=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),o){case n:c=(r-i)/d+(r1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(t){let n=t.h/360,{s:r,l:i,a}=t,o,s,c;if(r===0)o=s=c=i;else{let t=i<.5?i*(1+r):i+r-i*r,a=2*i-t;o=e._hue2rgb(a,t,n+1/3),s=e._hue2rgb(a,t,n),c=e._hue2rgb(a,t,n-1/3)}return new P(Math.round(o*255),Math.round(s*255),Math.round(c*255),a)}},Ya=class e{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=qa(Math.max(Math.min(1,t),0),3),this.v=qa(Math.max(Math.min(1,n),0),3),this.a=qa(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=Math.max(n,r,i),o=a-Math.min(n,r,i),s=a===0?0:o/a,c;return c=o===0?0:a===n?((r-i)/o%6+6)%6:a===r?(i-n)/o+2:(n-r)/o+4,new e(Math.round(c*60),s,a,t.a)}static toRGBA(e){let{h:t,s:n,v:r,a:i}=e,a=r*n,o=a*(1-Math.abs(t/60%2-1)),s=r-a,[c,l,u]=[0,0,0];return t<60?(c=a,l=o):t<120?(c=o,l=a):t<180?(l=a,u=o):t<240?(l=o,u=a):t<300?(c=o,u=a):t<=360&&(c=a,u=o),c=Math.round((c+s)*255),l=Math.round((l+s)*255),u=Math.round((u+s)*255),new P(c,l,u,i)}},Xa=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:Ja.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ya.fromRGBA(this.rgba)}constructor(e){if(!e)throw Error(`Color needs a value`);if(e instanceof P)this.rgba=e;else if(e instanceof Ja)this._hsla=e,this.rgba=Ja.toRGBA(e);else if(e instanceof Ya)this._hsva=e,this.rgba=Ya.toRGBA(e);else throw Error(`Invalid color ctor argument`)}equals(e){return!!e&&P.equals(this.rgba,e.rgba)&&Ja.equals(this.hsla,e.hsla)&&Ya.equals(this.hsva,e.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b);return qa(.2126*t+.7152*n+.0722*r,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()>>0,this._toNumber32Bit}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(r-i)/r,e.darken(n)}static{this.white=new e(new P(255,255,255,1))}static{this.black=new e(new P(0,0,0,1))}static{this.red=new e(new P(255,0,0,1))}static{this.blue=new e(new P(0,0,255,1))}static{this.green=new e(new P(0,255,0,1))}static{this.cyan=new e(new P(0,255,255,1))}static{this.lightgrey=new e(new P(211,211,211,1))}static{this.transparent=new e(new P(0,0,0,0))}};(function(e){(function(t){(function(t){function n(t){return t.rgba.a===1?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)}t.formatRGB=n;function r(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`}t.formatRGBA=r;function i(t){return t.hsla.a===1?`hsl(${t.hsla.h}, ${Math.round(t.hsla.s*100)}%, ${Math.round(t.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(t)}t.formatHSL=i;function a(e){return`hsla(${e.hsla.h}, ${Math.round(e.hsla.s*100)}%, ${Math.round(e.hsla.l*100)}%, ${e.hsla.a.toFixed(2)})`}t.formatHSLA=a;function o(e){let t=e.toString(16);return t.length===2?t:`0`+t}function s(e){return`#${o(e.rgba.r)}${o(e.rgba.g)}${o(e.rgba.b)}`}t.formatHex=s;function c(t,n=!1){return n&&t.rgba.a===1?e.Format.CSS.formatHex(t):`#${o(t.rgba.r)}${o(t.rgba.g)}${o(t.rgba.b)}${o(Math.round(t.rgba.a*255))}`}t.formatHexA=c;function l(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}t.format=l;function u(t){if(t===`transparent`)return e.transparent;if(t.startsWith(`#`))return f(t);if(t.startsWith(`rgba(`)){let n=t.match(/rgba\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+(\.\d+)?)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new P(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`),parseFloat(n.groups?.a??`0`)))}if(t.startsWith(`rgb(`)){let n=t.match(/rgb\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new P(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`)))}return d(t)}t.parse=u;function d(t){switch(t){case`aliceblue`:return new e(new P(240,248,255,1));case`antiquewhite`:return new e(new P(250,235,215,1));case`aqua`:return new e(new P(0,255,255,1));case`aquamarine`:return new e(new P(127,255,212,1));case`azure`:return new e(new P(240,255,255,1));case`beige`:return new e(new P(245,245,220,1));case`bisque`:return new e(new P(255,228,196,1));case`black`:return new e(new P(0,0,0,1));case`blanchedalmond`:return new e(new P(255,235,205,1));case`blue`:return new e(new P(0,0,255,1));case`blueviolet`:return new e(new P(138,43,226,1));case`brown`:return new e(new P(165,42,42,1));case`burlywood`:return new e(new P(222,184,135,1));case`cadetblue`:return new e(new P(95,158,160,1));case`chartreuse`:return new e(new P(127,255,0,1));case`chocolate`:return new e(new P(210,105,30,1));case`coral`:return new e(new P(255,127,80,1));case`cornflowerblue`:return new e(new P(100,149,237,1));case`cornsilk`:return new e(new P(255,248,220,1));case`crimson`:return new e(new P(220,20,60,1));case`cyan`:return new e(new P(0,255,255,1));case`darkblue`:return new e(new P(0,0,139,1));case`darkcyan`:return new e(new P(0,139,139,1));case`darkgoldenrod`:return new e(new P(184,134,11,1));case`darkgray`:return new e(new P(169,169,169,1));case`darkgreen`:return new e(new P(0,100,0,1));case`darkgrey`:return new e(new P(169,169,169,1));case`darkkhaki`:return new e(new P(189,183,107,1));case`darkmagenta`:return new e(new P(139,0,139,1));case`darkolivegreen`:return new e(new P(85,107,47,1));case`darkorange`:return new e(new P(255,140,0,1));case`darkorchid`:return new e(new P(153,50,204,1));case`darkred`:return new e(new P(139,0,0,1));case`darksalmon`:return new e(new P(233,150,122,1));case`darkseagreen`:return new e(new P(143,188,143,1));case`darkslateblue`:return new e(new P(72,61,139,1));case`darkslategray`:return new e(new P(47,79,79,1));case`darkslategrey`:return new e(new P(47,79,79,1));case`darkturquoise`:return new e(new P(0,206,209,1));case`darkviolet`:return new e(new P(148,0,211,1));case`deeppink`:return new e(new P(255,20,147,1));case`deepskyblue`:return new e(new P(0,191,255,1));case`dimgray`:return new e(new P(105,105,105,1));case`dimgrey`:return new e(new P(105,105,105,1));case`dodgerblue`:return new e(new P(30,144,255,1));case`firebrick`:return new e(new P(178,34,34,1));case`floralwhite`:return new e(new P(255,250,240,1));case`forestgreen`:return new e(new P(34,139,34,1));case`fuchsia`:return new e(new P(255,0,255,1));case`gainsboro`:return new e(new P(220,220,220,1));case`ghostwhite`:return new e(new P(248,248,255,1));case`gold`:return new e(new P(255,215,0,1));case`goldenrod`:return new e(new P(218,165,32,1));case`gray`:return new e(new P(128,128,128,1));case`green`:return new e(new P(0,128,0,1));case`greenyellow`:return new e(new P(173,255,47,1));case`grey`:return new e(new P(128,128,128,1));case`honeydew`:return new e(new P(240,255,240,1));case`hotpink`:return new e(new P(255,105,180,1));case`indianred`:return new e(new P(205,92,92,1));case`indigo`:return new e(new P(75,0,130,1));case`ivory`:return new e(new P(255,255,240,1));case`khaki`:return new e(new P(240,230,140,1));case`lavender`:return new e(new P(230,230,250,1));case`lavenderblush`:return new e(new P(255,240,245,1));case`lawngreen`:return new e(new P(124,252,0,1));case`lemonchiffon`:return new e(new P(255,250,205,1));case`lightblue`:return new e(new P(173,216,230,1));case`lightcoral`:return new e(new P(240,128,128,1));case`lightcyan`:return new e(new P(224,255,255,1));case`lightgoldenrodyellow`:return new e(new P(250,250,210,1));case`lightgray`:return new e(new P(211,211,211,1));case`lightgreen`:return new e(new P(144,238,144,1));case`lightgrey`:return new e(new P(211,211,211,1));case`lightpink`:return new e(new P(255,182,193,1));case`lightsalmon`:return new e(new P(255,160,122,1));case`lightseagreen`:return new e(new P(32,178,170,1));case`lightskyblue`:return new e(new P(135,206,250,1));case`lightslategray`:return new e(new P(119,136,153,1));case`lightslategrey`:return new e(new P(119,136,153,1));case`lightsteelblue`:return new e(new P(176,196,222,1));case`lightyellow`:return new e(new P(255,255,224,1));case`lime`:return new e(new P(0,255,0,1));case`limegreen`:return new e(new P(50,205,50,1));case`linen`:return new e(new P(250,240,230,1));case`magenta`:return new e(new P(255,0,255,1));case`maroon`:return new e(new P(128,0,0,1));case`mediumaquamarine`:return new e(new P(102,205,170,1));case`mediumblue`:return new e(new P(0,0,205,1));case`mediumorchid`:return new e(new P(186,85,211,1));case`mediumpurple`:return new e(new P(147,112,219,1));case`mediumseagreen`:return new e(new P(60,179,113,1));case`mediumslateblue`:return new e(new P(123,104,238,1));case`mediumspringgreen`:return new e(new P(0,250,154,1));case`mediumturquoise`:return new e(new P(72,209,204,1));case`mediumvioletred`:return new e(new P(199,21,133,1));case`midnightblue`:return new e(new P(25,25,112,1));case`mintcream`:return new e(new P(245,255,250,1));case`mistyrose`:return new e(new P(255,228,225,1));case`moccasin`:return new e(new P(255,228,181,1));case`navajowhite`:return new e(new P(255,222,173,1));case`navy`:return new e(new P(0,0,128,1));case`oldlace`:return new e(new P(253,245,230,1));case`olive`:return new e(new P(128,128,0,1));case`olivedrab`:return new e(new P(107,142,35,1));case`orange`:return new e(new P(255,165,0,1));case`orangered`:return new e(new P(255,69,0,1));case`orchid`:return new e(new P(218,112,214,1));case`palegoldenrod`:return new e(new P(238,232,170,1));case`palegreen`:return new e(new P(152,251,152,1));case`paleturquoise`:return new e(new P(175,238,238,1));case`palevioletred`:return new e(new P(219,112,147,1));case`papayawhip`:return new e(new P(255,239,213,1));case`peachpuff`:return new e(new P(255,218,185,1));case`peru`:return new e(new P(205,133,63,1));case`pink`:return new e(new P(255,192,203,1));case`plum`:return new e(new P(221,160,221,1));case`powderblue`:return new e(new P(176,224,230,1));case`purple`:return new e(new P(128,0,128,1));case`rebeccapurple`:return new e(new P(102,51,153,1));case`red`:return new e(new P(255,0,0,1));case`rosybrown`:return new e(new P(188,143,143,1));case`royalblue`:return new e(new P(65,105,225,1));case`saddlebrown`:return new e(new P(139,69,19,1));case`salmon`:return new e(new P(250,128,114,1));case`sandybrown`:return new e(new P(244,164,96,1));case`seagreen`:return new e(new P(46,139,87,1));case`seashell`:return new e(new P(255,245,238,1));case`sienna`:return new e(new P(160,82,45,1));case`silver`:return new e(new P(192,192,192,1));case`skyblue`:return new e(new P(135,206,235,1));case`slateblue`:return new e(new P(106,90,205,1));case`slategray`:return new e(new P(112,128,144,1));case`slategrey`:return new e(new P(112,128,144,1));case`snow`:return new e(new P(255,250,250,1));case`springgreen`:return new e(new P(0,255,127,1));case`steelblue`:return new e(new P(70,130,180,1));case`tan`:return new e(new P(210,180,140,1));case`teal`:return new e(new P(0,128,128,1));case`thistle`:return new e(new P(216,191,216,1));case`tomato`:return new e(new P(255,99,71,1));case`turquoise`:return new e(new P(64,224,208,1));case`violet`:return new e(new P(238,130,238,1));case`wheat`:return new e(new P(245,222,179,1));case`white`:return new e(new P(255,255,255,1));case`whitesmoke`:return new e(new P(245,245,245,1));case`yellow`:return new e(new P(255,255,0,1));case`yellowgreen`:return new e(new P(154,205,50,1));default:return null}}function f(t){let n=t.length;if(n===0||t.charCodeAt(0)!==35)return null;if(n===7)return new e(new P(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),1));if(n===9)return new e(new P(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),(16*p(t.charCodeAt(7))+p(t.charCodeAt(8)))/255));if(n===4){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3));return new e(new P(16*n+n,16*r+r,16*i+i))}if(n===5){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3)),a=p(t.charCodeAt(4));return new e(new P(16*n+n,16*r+r,16*i+i,(16*a+a)/255))}return null}t.parseHex=f;function p(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||={})})(e.Format||={})})(Xa||={});function Za(e){let t=[];for(let n of e){let e=Number(n);(e||e===0&&n.replace(/\s/g,``)!==``)&&t.push(e)}return t}function Qa(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function $a(e,t){let n=t.index,r=t[0].length;if(n===void 0)return;let i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function eo(e,t){if(!e)return;let n=Xa.Format.CSS.parseHex(t);if(n)return{range:e,color:Qa(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function to(e,t,n){if(!e||t.length!==1)return;let r=Za(t[0].values());return{range:e,color:Qa(r[0],r[1],r[2],n?r[3]:1)}}function no(e,t,n){if(!e||t.length!==1)return;let r=Za(t[0].values()),i=new Xa(new Ja(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Qa(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function ro(e,t){return typeof e==`string`?[...e.matchAll(t)]:e.findMatches(t)}function io(e){let t=[],n=ro(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(let r of n){let n=r.filter(e=>e!==void 0),i=n[1],a=n[2];if(!a)continue;let o;i===`rgb`?o=to($a(e,r),ro(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm),!1):i===`rgba`?o=to($a(e,r),ro(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm),!0):i===`hsl`?o=no($a(e,r),ro(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm),!1):i===`hsla`?o=no($a(e,r),ro(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm),!0):i===`#`&&(o=eo($a(e,r),i+a)),o&&t.push(o)}return t}function ao(e){return!e||typeof e.getValue!=`function`||typeof e.positionAt!=`function`?[]:io(e)}let oo=/^-+|-+$/g;function so(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){let r=co(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){let r=lo(e,t);n=n.concat(r)}return n}function co(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let r=e.getLineContent(i),a=r.match(t.foldingRules.markers.start);if(a){let e={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){let t={range:e,...uo(r.substring(a[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}function lo(e,t){let n=[],r=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()===``)return n;let i=ri(t.markSectionHeaderRegex),a=new RegExp(t.markSectionHeaderRegex,`gdm${i?`s`:``}`);if(je(a))return n;for(let t=1;t<=r;t+=95){let i=Math.min(t+100-1,r),o=[];for(let n=t;n<=i;n++)o.push(e.getLineContent(n));let s=o.join(` +`);a.lastIndex=0;let c;for(;(c=a.exec(s))!==null;){let e=s.substring(0,c.index),r=(e.match(/\n/g)||[]).length,i=t+r,o=c[0].split(` +`),l=o.length,u=i+l-1,d=e.lastIndexOf(` +`)+1,f=c.index-d+1,p=o[o.length-1],m={range:{startLineNumber:i,startColumn:f,endLineNumber:u,endColumn:l===1?f+c[0].length:p.length+1},text:(c.groups??{}).label??``,hasSeparatorLine:((c.groups??{}).separator??``)!==``,shouldBeInComments:!0};(m.text||m.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new i)}},po;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(po||={});var mo=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new o(`ProducerConsumer: cannot produce after final value has been set`)}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{let e=new fo;return this._unsatisfiedConsumers.push(e),e.p}}};(class e{constructor(e,t){this._onReturn=t,this._producerConsumer=new mo,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})},queueMicrotask(async()=>{let t=e({emitOne:e=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:e}}),emitMany:e=>{for(let t of e)this._producerConsumer.produce({ok:!0,value:{done:!1,value:t}})},reject:e=>this._finishError(e)});if(!this._producerConsumer.hasFinalValue)try{await t,this._finishOk()}catch(e){this._finishError(e)}})}static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static{this.EMPTY=e.fromArray([])}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}});var ho=class{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=St(e);let n=this.values,r=this.prefixSum,i=t.length;return i===0?!1:(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=St(e),t=St(t),this.values[e]===t?!1:(this.values[e]=t,e-1=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),t===0?!1:(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=St(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,a=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],a=i-this.values[r],e=i)t=r+1;else break;return new go(r,e-a)}},go=class{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}},_o=class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);let t=e.changes;for(let e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new E(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;re.push(this._models[t])),e}$acceptNewModel(e){this._models[e.url]=new yo(vn.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}},yo=class extends _o{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){let t=[];for(let n=0;nthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}},bo=class e{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new vo}dispose(){}async $ping(){return`pong`}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){let r=this._getModel(e);return r?mi.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){let n=this._getModel(e);return n?so(n,t):[]}async $computeDiff(t,n,r,i){let a=this._getModel(t),o=this._getModel(n);return!a||!o?null:e.computeDiff(a,o,r,i)}static computeDiff(e,t,n,r){let i=r===`advanced`?Ka.getDefault():Ka.getLegacy(),a=e.getLinesContent(),o=t.getLinesContent(),s=i.computeDiff(a,o,n),c=s.changes.length>0?!1:this._modelsAreIdentical(e,t);function l(e){return e.map(e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])])}return{identical:c,quitEarly:s.hitTimeout,changes:l(s.changes),moves:s.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)])}}static _modelsAreIdentical(e,t){let n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let a=[],o;n=n.slice(0).sort((e,t)=>e.range&&t.range?D.compareRangesUsingStarts(e.range,t.range):!e.range-+!t.range);let s=0;for(let e=1;ee._diffLimit){a.push({range:t,text:s});continue}let l=gt(n,s,r),u=i.offsetAt(D.lift(t).getStartPosition());for(let e of l){let t=i.positionAt(u+e.originalStart),n=i.positionAt(u+e.originalStart+e.originalLength),r={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};i.getValueInRange(r.range)!==r.text&&a.push(r)}}return typeof o==`number`&&a.push({eol:o,text:``,range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a}async $computeLinks(e){let t=this._getModel(e);return t?jt(t):null}async $computeDefaultDocumentColors(e){let t=this._getModel(e);return t?ao(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(t,n,r,i){let a=new C,o=new RegExp(r,i),s=new Set;outer:for(let r of t){let t=this._getModel(r);if(t){for(let r of t.words(o))if(!(r===n||!isNaN(Number(r)))&&(s.add(r),s.size>e._suggestionsLimit))break outer}}return{words:Array.from(s),duration:a.elapsed()}}async $computeWordRanges(e,t,n,r){let i=this._getModel(e);if(!i)return Object.create(null);let a=new RegExp(n,r),o=Object.create(null);for(let e=t.startLineNumber;e{let i=xo.getChannel(r);return t=e({host:new Proxy({},{get(e,t,n){if(t!==`then`){if(typeof t!=`string`)throw Error(`Not supported`);return(...e)=>i.$fhr(t,e)}}}),getMirrorModels:()=>n.requestHandler.getModels()}),new bo(t)});return t}function Co(e){self.onmessage=t=>{So(n=>e(n,t.data))}}var F;(function(e){e[e.Ident=0]=`Ident`,e[e.AtKeyword=1]=`AtKeyword`,e[e.String=2]=`String`,e[e.BadString=3]=`BadString`,e[e.UnquotedString=4]=`UnquotedString`,e[e.Hash=5]=`Hash`,e[e.Num=6]=`Num`,e[e.Percentage=7]=`Percentage`,e[e.Dimension=8]=`Dimension`,e[e.UnicodeRange=9]=`UnicodeRange`,e[e.CDO=10]=`CDO`,e[e.CDC=11]=`CDC`,e[e.Colon=12]=`Colon`,e[e.SemiColon=13]=`SemiColon`,e[e.CurlyL=14]=`CurlyL`,e[e.CurlyR=15]=`CurlyR`,e[e.ParenthesisL=16]=`ParenthesisL`,e[e.ParenthesisR=17]=`ParenthesisR`,e[e.BracketL=18]=`BracketL`,e[e.BracketR=19]=`BracketR`,e[e.Whitespace=20]=`Whitespace`,e[e.Includes=21]=`Includes`,e[e.Dashmatch=22]=`Dashmatch`,e[e.SubstringOperator=23]=`SubstringOperator`,e[e.PrefixOperator=24]=`PrefixOperator`,e[e.SuffixOperator=25]=`SuffixOperator`,e[e.Delim=26]=`Delim`,e[e.EMS=27]=`EMS`,e[e.EXS=28]=`EXS`,e[e.Length=29]=`Length`,e[e.Angle=30]=`Angle`,e[e.Time=31]=`Time`,e[e.Freq=32]=`Freq`,e[e.Exclamation=33]=`Exclamation`,e[e.Resolution=34]=`Resolution`,e[e.Comma=35]=`Comma`,e[e.Charset=36]=`Charset`,e[e.EscapedJavaScript=37]=`EscapedJavaScript`,e[e.BadEscapedJavaScript=38]=`BadEscapedJavaScript`,e[e.Comment=39]=`Comment`,e[e.SingleLineComment=40]=`SingleLineComment`,e[e.EOF=41]=`EOF`,e[e.ContainerQueryLength=42]=`ContainerQueryLength`,e[e.CustomToken=43]=`CustomToken`})(F||={});var wo=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;tt&&n===47?(e=!0,!1):(t=n===42,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,t;return this.stream.peekChar()===46&&(e=1),t=this.stream.peekChar(e),t>=48&&t<=57?(this.stream.advance(e+1),this.stream.advanceWhileChar(t=>t>=48&&t<=57||e===0&&t===46),!0):!1}_newline(e){let t=this.stream.peekChar();switch(t){case 13:case 12:case 10:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===13&&this.stream.advanceIfChar(10)&&e.push(` +`),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===92){this.stream.advance(1),n=this.stream.peekChar();let r=0;for(;r<6&&(n>=48&&n<=57||n>=97&&n<=102||n>=65&&n<=70);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{let t=parseInt(this.stream.substring(this.stream.pos()-r),16);t&&e.push(String.fromCharCode(t))}catch{}return n===32||n===9?this.stream.advance(1):this._newline([]),!0}if(n!==13&&n!==12&&n!==10)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){let n=this.stream.peekChar();return n!==0&&n!==e&&n!==92&&n!==13&&n!==12&&n!==10?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1}_string(e){if(this.stream.peekChar()===39||this.stream.peekChar()===34){let t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),F.String):F.BadString}return null}_unquotedChar(e){let t=this.stream.peekChar();return t!==0&&t!==92&&t!==39&&t!==34&&t!==40&&t!==41&&t!==32&&t!==9&&t!==10&&t!==12&&t!==13?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t}_whitespace(){return this.stream.advanceWhileChar(e=>e===32||e===9||e===10||e===12||e===13)>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){let t=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1}_identFirstChar(e){let t=this.stream.peekChar();return t===95||t>=97&&t<=122||t>=65&&t<=90||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_minus(e){let t=this.stream.peekChar();return t===45?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_identChar(e){let t=this.stream.peekChar();return t===95||t===45||t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(43)){let e=e=>e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(e=>e===63);if(t>=1&&t<=6)if(this.stream.advanceIfChar(45)){let t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}else return!0}return!1}};function L(e,t){if(e.length0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Oo(e,t,n=4){let r=Math.abs(e.length-t.length);if(r>n)return 0;let i=[],a=[],o,s;for(o=0;o0;)(t&1)==1&&(n+=e),e+=e,t>>>=1;return n}var R;(function(e){e[e.Undefined=0]=`Undefined`,e[e.Identifier=1]=`Identifier`,e[e.Stylesheet=2]=`Stylesheet`,e[e.Ruleset=3]=`Ruleset`,e[e.Selector=4]=`Selector`,e[e.SimpleSelector=5]=`SimpleSelector`,e[e.SelectorInterpolation=6]=`SelectorInterpolation`,e[e.SelectorCombinator=7]=`SelectorCombinator`,e[e.SelectorCombinatorParent=8]=`SelectorCombinatorParent`,e[e.SelectorCombinatorSibling=9]=`SelectorCombinatorSibling`,e[e.SelectorCombinatorAllSiblings=10]=`SelectorCombinatorAllSiblings`,e[e.SelectorCombinatorShadowPiercingDescendant=11]=`SelectorCombinatorShadowPiercingDescendant`,e[e.Page=12]=`Page`,e[e.PageBoxMarginBox=13]=`PageBoxMarginBox`,e[e.ClassSelector=14]=`ClassSelector`,e[e.IdentifierSelector=15]=`IdentifierSelector`,e[e.ElementNameSelector=16]=`ElementNameSelector`,e[e.PseudoSelector=17]=`PseudoSelector`,e[e.AttributeSelector=18]=`AttributeSelector`,e[e.Declaration=19]=`Declaration`,e[e.Declarations=20]=`Declarations`,e[e.Property=21]=`Property`,e[e.Expression=22]=`Expression`,e[e.BinaryExpression=23]=`BinaryExpression`,e[e.Term=24]=`Term`,e[e.Operator=25]=`Operator`,e[e.Value=26]=`Value`,e[e.StringLiteral=27]=`StringLiteral`,e[e.URILiteral=28]=`URILiteral`,e[e.EscapedValue=29]=`EscapedValue`,e[e.Function=30]=`Function`,e[e.NumericValue=31]=`NumericValue`,e[e.HexColorValue=32]=`HexColorValue`,e[e.RatioValue=33]=`RatioValue`,e[e.MixinDeclaration=34]=`MixinDeclaration`,e[e.MixinReference=35]=`MixinReference`,e[e.VariableName=36]=`VariableName`,e[e.VariableDeclaration=37]=`VariableDeclaration`,e[e.Prio=38]=`Prio`,e[e.Interpolation=39]=`Interpolation`,e[e.NestedProperties=40]=`NestedProperties`,e[e.ExtendsReference=41]=`ExtendsReference`,e[e.SelectorPlaceholder=42]=`SelectorPlaceholder`,e[e.Debug=43]=`Debug`,e[e.If=44]=`If`,e[e.Else=45]=`Else`,e[e.For=46]=`For`,e[e.Each=47]=`Each`,e[e.While=48]=`While`,e[e.MixinContentReference=49]=`MixinContentReference`,e[e.MixinContentDeclaration=50]=`MixinContentDeclaration`,e[e.Media=51]=`Media`,e[e.Keyframe=52]=`Keyframe`,e[e.FontFace=53]=`FontFace`,e[e.Import=54]=`Import`,e[e.Namespace=55]=`Namespace`,e[e.Invocation=56]=`Invocation`,e[e.FunctionDeclaration=57]=`FunctionDeclaration`,e[e.ReturnStatement=58]=`ReturnStatement`,e[e.MediaQuery=59]=`MediaQuery`,e[e.MediaCondition=60]=`MediaCondition`,e[e.MediaFeature=61]=`MediaFeature`,e[e.FunctionParameter=62]=`FunctionParameter`,e[e.FunctionArgument=63]=`FunctionArgument`,e[e.KeyframeSelector=64]=`KeyframeSelector`,e[e.ViewPort=65]=`ViewPort`,e[e.Document=66]=`Document`,e[e.AtApplyRule=67]=`AtApplyRule`,e[e.CustomPropertyDeclaration=68]=`CustomPropertyDeclaration`,e[e.CustomPropertySet=69]=`CustomPropertySet`,e[e.ListEntry=70]=`ListEntry`,e[e.Supports=71]=`Supports`,e[e.SupportsCondition=72]=`SupportsCondition`,e[e.NamespacePrefix=73]=`NamespacePrefix`,e[e.GridLine=74]=`GridLine`,e[e.Plugin=75]=`Plugin`,e[e.UnknownAtRule=76]=`UnknownAtRule`,e[e.Use=77]=`Use`,e[e.ModuleConfiguration=78]=`ModuleConfiguration`,e[e.Forward=79]=`Forward`,e[e.ForwardVisibility=80]=`ForwardVisibility`,e[e.Module=81]=`Module`,e[e.UnicodeRange=82]=`UnicodeRange`,e[e.Layer=83]=`Layer`,e[e.LayerNameList=84]=`LayerNameList`,e[e.LayerName=85]=`LayerName`,e[e.PropertyAtRule=86]=`PropertyAtRule`,e[e.Container=87]=`Container`})(R||={});var z;(function(e){e[e.Mixin=0]=`Mixin`,e[e.Rule=1]=`Rule`,e[e.Variable=2]=`Variable`,e[e.Function=3]=`Function`,e[e.Keyframe=4]=`Keyframe`,e[e.Unknown=5]=`Unknown`,e[e.Module=6]=`Module`,e[e.Forward=7]=`Forward`,e[e.ForwardVisibility=8]=`ForwardVisibility`,e[e.Property=9]=`Property`})(z||={});function Mo(e,t){let n=null;return!e||te.end?null:(e.accept(e=>e.offset===-1&&e.length===-1?!0:e.offset<=t&&e.end>=t?(n?e.length<=n.length&&(n=e):n=e,!0):!1),n)}function No(e,t){let n=Mo(e,t),r=[];for(;n;)r.unshift(n),n=n.parent;return r}function Po(e){let t=e.findParent(R.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}var B=class{get end(){return this.offset+this.length}constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}set type(e){this.nodeType=e}get type(){return this.nodeType||R.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>`unknown`}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(let t of this.children)t.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,t=-1){if(e.parent&&e.parent.children){let t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1)}e.parent=this;let n=this.children;return n||=this.children=[],t===-1?n.push(e):n.splice(t,0,e),e}attachTo(e,t=-1){return e&&e.adoptChild(this,t),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||=[],this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(t=>t.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(e=>e.isErroneous(!0))}setNode(e,t,n=-1){return t?(t.attachTo(this,n),this[e]=t,!0):!1}addChild(e){return e?(this.children||=[],e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offsetthis.end||this.length===-1)&&(this.length=t-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e=0;n--)if(t=this.children[n],t.offset<=e)return t}return null}findChildAtOffset(e,t){let n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof V;)e=e.parent;return e}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t}findAParent(...e){let t=this;for(;t&&!e.some(e=>t.type===e);)t=t.parent;return t}setData(e,t){this.options||={},this.options[e]=t}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},V=class extends B{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}},Fo=class extends B{constructor(e,t){super(e,t)}get type(){return R.UnicodeRange}setRangeStart(e){return this.setNode(`rangeStart`,e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode(`rangeEnd`,e)}getRangeEnd(){return this.rangeEnd}},Io=class extends B{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return R.Identifier}containsInterpolation(){return this.hasChildren()}},Lo=class extends B{constructor(e,t){super(e,t)}get type(){return R.Stylesheet}},Ro=class extends B{constructor(e,t){super(e,t)}get type(){return R.Declarations}},H=class extends B{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode(`declarations`,e)}},zo=class extends H{constructor(e,t){super(e,t)}get type(){return R.Ruleset}getSelectors(){return this.selectors||=new V(this),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(R.Declarations)!==null}},Bo=class extends B{constructor(e,t){super(e,t)}get type(){return R.Selector}},Vo=class extends B{constructor(e,t){super(e,t)}get type(){return R.SimpleSelector}},Ho=class extends B{constructor(e,t){super(e,t)}},Uo=class extends H{constructor(e,t){super(e,t)}get type(){return R.CustomPropertySet}},Wo=class e extends Ho{constructor(e,t){super(e,t),this.property=null}get type(){return R.Declaration}setProperty(e){return this.setNode(`property`,e)}getProperty(){return this.property}getFullPropertyName(){let t=this.property?this.property.getName():`unknown`;if(this.parent instanceof Ro&&this.parent.getParent()instanceof as){let n=this.parent.getParent().getParent();if(n instanceof e)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&e.charAt(0)===`-`){let t=e.indexOf(`-`,1);if(t!==-1)return e.substring(t+1)}return e}setValue(e){return this.setNode(`value`,e)}getValue(){return this.value}setNestedProperties(e){return this.setNode(`nestedProperties`,e)}getNestedProperties(){return this.nestedProperties}},Go=class extends Wo{constructor(e,t){super(e,t)}get type(){return R.CustomPropertyDeclaration}setPropertySet(e){return this.setNode(`propertySet`,e)}getPropertySet(){return this.propertySet}},Ko=class extends B{constructor(e,t){super(e,t)}get type(){return R.Property}setIdentifier(e){return this.setNode(`identifier`,e)}getIdentifier(){return this.identifier}getName(){return Ao(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},qo=class extends B{constructor(e,t){super(e,t)}get type(){return R.Invocation}getArguments(){return this.arguments||=new V(this),this.arguments}},Jo=class extends qo{constructor(e,t){super(e,t)}get type(){return R.Function}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}},Yo=class extends B{constructor(e,t){super(e,t)}get type(){return R.FunctionParameter}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}setDefaultValue(e){return this.setNode(`defaultValue`,e,0)}getDefaultValue(){return this.defaultValue}},Xo=class extends B{constructor(e,t){super(e,t)}get type(){return R.FunctionArgument}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}setValue(e){return this.setNode(`value`,e,0)}getValue(){return this.value}},Zo=class extends H{constructor(e,t){super(e,t)}get type(){return R.If}setExpression(e){return this.setNode(`expression`,e,0)}setElseClause(e){return this.setNode(`elseClause`,e)}},Qo=class extends H{constructor(e,t){super(e,t)}get type(){return R.For}setVariable(e){return this.setNode(`variable`,e,0)}},$o=class extends H{constructor(e,t){super(e,t)}get type(){return R.Each}getVariables(){return this.variables||=new V(this),this.variables}},es=class extends H{constructor(e,t){super(e,t)}get type(){return R.While}},ts=class extends H{constructor(e,t){super(e,t)}get type(){return R.Else}},ns=class extends H{constructor(e,t){super(e,t)}get type(){return R.FunctionDeclaration}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}getParameters(){return this.parameters||=new V(this),this.parameters}},rs=class extends H{constructor(e,t){super(e,t)}get type(){return R.ViewPort}},is=class extends H{constructor(e,t){super(e,t)}get type(){return R.FontFace}},as=class extends H{constructor(e,t){super(e,t)}get type(){return R.NestedProperties}},os=class extends H{constructor(e,t){super(e,t)}get type(){return R.Keyframe}setKeyword(e){return this.setNode(`keyword`,e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}},ss=class extends H{constructor(e,t){super(e,t)}get type(){return R.KeyframeSelector}},cs=class extends B{constructor(e,t){super(e,t)}get type(){return R.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}},ls=class extends B{get type(){return R.Use}getParameters(){return this.parameters||=new V(this),this.parameters}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}},us=class extends B{get type(){return R.ModuleConfiguration}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():``}setValue(e){return this.setNode(`value`,e,0)}getValue(){return this.value}},ds=class extends B{get type(){return R.Forward}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||=new V(this),this.members}getParameters(){return this.parameters||=new V(this),this.parameters}},fs=class extends B{get type(){return R.ForwardVisibility}setIdentifier(e){return this.setNode(`identifier`,e,0)}getIdentifier(){return this.identifier}},ps=class extends B{constructor(e,t){super(e,t)}get type(){return R.Namespace}},ms=class extends H{constructor(e,t){super(e,t)}get type(){return R.Media}},hs=class extends H{constructor(e,t){super(e,t)}get type(){return R.Supports}},gs=class extends H{constructor(e,t){super(e,t)}get type(){return R.Layer}setNames(e){return this.setNode(`names`,e)}getNames(){return this.names}},_s=class extends H{constructor(e,t){super(e,t)}get type(){return R.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},vs=class extends H{constructor(e,t){super(e,t)}get type(){return R.Document}},ys=class extends H{constructor(e,t){super(e,t)}get type(){return R.Container}},bs=class extends B{constructor(e,t){super(e,t)}},xs=class extends B{constructor(e,t){super(e,t)}get type(){return R.MediaQuery}},Ss=class extends B{constructor(e,t){super(e,t)}get type(){return R.MediaCondition}},Cs=class extends B{constructor(e,t){super(e,t)}get type(){return R.MediaFeature}},ws=class extends B{constructor(e,t){super(e,t)}get type(){return R.SupportsCondition}},Ts=class extends H{constructor(e,t){super(e,t)}get type(){return R.Page}},Es=class extends H{constructor(e,t){super(e,t)}get type(){return R.PageBoxMarginBox}},Ds=class extends B{constructor(e,t){super(e,t)}get type(){return R.Expression}},Os=class extends B{constructor(e,t){super(e,t)}get type(){return R.BinaryExpression}setLeft(e){return this.setNode(`left`,e)}getLeft(){return this.left}setRight(e){return this.setNode(`right`,e)}getRight(){return this.right}setOperator(e){return this.setNode(`operator`,e)}getOperator(){return this.operator}},ks=class extends B{constructor(e,t){super(e,t)}get type(){return R.Term}setOperator(e){return this.setNode(`operator`,e)}getOperator(){return this.operator}setExpression(e){return this.setNode(`expression`,e)}getExpression(){return this.expression}},As=class extends B{constructor(e,t){super(e,t)}get type(){return R.AttributeSelector}setNamespacePrefix(e){return this.setNode(`namespacePrefix`,e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode(`identifier`,e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode(`operator`,e)}getOperator(){return this.operator}setValue(e){return this.setNode(`value`,e)}getValue(){return this.value}},js=class extends B{constructor(e,t){super(e,t)}get type(){return R.HexColorValue}},Ms=class extends B{constructor(e,t){super(e,t)}get type(){return R.RatioValue}},Ns=class extends B{constructor(e,t){super(e,t)}get type(){return R.NumericValue}getValue(){let e=this.getText(),t=0,n;for(let r=0,i=e.length;r0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(``):t.comment}`),i=t.args??{};return Zs(r,i)}var Xs=/{([^}]+)}/g;function Zs(e,t){return Object.keys(t).length===0?e:e.replace(Xs,(e,n)=>t[n]??e)}var W=class{constructor(e,t){this.id=e,this.message=t}};let G={NumberExpected:new W(`css-numberexpected`,U(`number expected`)),ConditionExpected:new W(`css-conditionexpected`,U(`condition expected`)),RuleOrSelectorExpected:new W(`css-ruleorselectorexpected`,U(`at-rule or selector expected`)),DotExpected:new W(`css-dotexpected`,U(`dot expected`)),ColonExpected:new W(`css-colonexpected`,U(`colon expected`)),SemiColonExpected:new W(`css-semicolonexpected`,U(`semi-colon expected`)),TermExpected:new W(`css-termexpected`,U(`term expected`)),ExpressionExpected:new W(`css-expressionexpected`,U(`expression expected`)),OperatorExpected:new W(`css-operatorexpected`,U(`operator expected`)),IdentifierExpected:new W(`css-identifierexpected`,U(`identifier expected`)),PercentageExpected:new W(`css-percentageexpected`,U(`percentage expected`)),URIOrStringExpected:new W(`css-uriorstringexpected`,U(`uri or string expected`)),URIExpected:new W(`css-uriexpected`,U(`URI expected`)),VariableNameExpected:new W(`css-varnameexpected`,U(`variable name expected`)),VariableValueExpected:new W(`css-varvalueexpected`,U(`variable value expected`)),PropertyValueExpected:new W(`css-propertyvalueexpected`,U(`property value expected`)),LeftCurlyExpected:new W(`css-lcurlyexpected`,U(`{ expected`)),RightCurlyExpected:new W(`css-rcurlyexpected`,U(`} expected`)),LeftSquareBracketExpected:new W(`css-rbracketexpected`,U(`[ expected`)),RightSquareBracketExpected:new W(`css-lbracketexpected`,U(`] expected`)),LeftParenthesisExpected:new W(`css-lparentexpected`,U(`( expected`)),RightParenthesisExpected:new W(`css-rparentexpected`,U(`) expected`)),CommaExpected:new W(`css-commaexpected`,U(`comma expected`)),PageDirectiveOrDeclarationExpected:new W(`css-pagedirordeclexpected`,U(`page directive or declaraton expected`)),UnknownAtRule:new W(`css-unknownatrule`,U(`at-rule unknown`)),UnknownKeyword:new W(`css-unknownkeyword`,U(`unknown keyword`)),SelectorExpected:new W(`css-selectorexpected`,U(`selector expected`)),StringLiteralExpected:new W(`css-stringliteralexpected`,U(`string literal expected`)),WhitespaceExpected:new W(`css-whitespaceexpected`,U(`whitespace expected`)),MediaQueryExpected:new W(`css-mediaqueryexpected`,U(`media query expected`)),IdentifierOrWildcardExpected:new W(`css-idorwildcardexpected`,U(`identifier or wildcard expected`)),WildcardExpected:new W(`css-wildcardexpected`,U(`wildcard expected`)),IdentifierOrVariableExpected:new W(`css-idorvarexpected`,U(`identifier or variable expected`))};var Qs;(function(e){function t(e){return typeof e==`string`}e.is=t})(Qs||={});var $s;(function(e){function t(e){return typeof e==`string`}e.is=t})($s||={});var ec;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(ec||={});var tc;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(tc||={});var nc;(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=tc.MAX_VALUE),t===Number.MAX_VALUE&&(t=tc.MAX_VALUE),{line:e,character:t}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.uinteger(t.line)&&Y.uinteger(t.character)}e.is=n})(nc||={});var K;(function(e){function t(e,t,n,r){if(Y.uinteger(e)&&Y.uinteger(t)&&Y.uinteger(n)&&Y.uinteger(r))return{start:nc.create(e,t),end:nc.create(n,r)};if(nc.is(e)&&nc.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&nc.is(t.start)&&nc.is(t.end)}e.is=n})(K||={});var rc;(function(e){function t(e,t){return{uri:e,range:t}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&K.is(t.range)&&(Y.string(t.uri)||Y.undefined(t.uri))}e.is=n})(rc||={});var ic;(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&K.is(t.targetRange)&&Y.string(t.targetUri)&&K.is(t.targetSelectionRange)&&(K.is(t.originSelectionRange)||Y.undefined(t.originSelectionRange))}e.is=n})(ic||={});var ac;(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.numberRange(t.red,0,1)&&Y.numberRange(t.green,0,1)&&Y.numberRange(t.blue,0,1)&&Y.numberRange(t.alpha,0,1)}e.is=n})(ac||={});var oc;(function(e){function t(e,t){return{range:e,color:t}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&K.is(t.range)&&ac.is(t.color)}e.is=n})(oc||={});var sc;(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.string(t.label)&&(Y.undefined(t.textEdit)||q.is(t))&&(Y.undefined(t.additionalTextEdits)||Y.typedArray(t.additionalTextEdits,q.is))}e.is=n})(sc||={});var cc;(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(cc||={});var lc;(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return Y.defined(n)&&(o.startCharacter=n),Y.defined(r)&&(o.endCharacter=r),Y.defined(i)&&(o.kind=i),Y.defined(a)&&(o.collapsedText=a),o}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.uinteger(t.startLine)&&Y.uinteger(t.startLine)&&(Y.undefined(t.startCharacter)||Y.uinteger(t.startCharacter))&&(Y.undefined(t.endCharacter)||Y.uinteger(t.endCharacter))&&(Y.undefined(t.kind)||Y.string(t.kind))}e.is=n})(lc||={});var uc;(function(e){function t(e,t){return{location:e,message:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&rc.is(t.location)&&Y.string(t.message)}e.is=n})(uc||={});var dc;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(dc||={});var fc;(function(e){e.Unnecessary=1,e.Deprecated=2})(fc||={});var pc;(function(e){function t(e){let t=e;return Y.objectLiteral(t)&&Y.string(t.href)}e.is=t})(pc||={});var mc;(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return Y.defined(n)&&(o.severity=n),Y.defined(r)&&(o.code=r),Y.defined(i)&&(o.source=i),Y.defined(a)&&(o.relatedInformation=a),o}e.create=t;function n(e){let t=e;return Y.defined(t)&&K.is(t.range)&&Y.string(t.message)&&(Y.number(t.severity)||Y.undefined(t.severity))&&(Y.integer(t.code)||Y.string(t.code)||Y.undefined(t.code))&&(Y.undefined(t.codeDescription)||Y.string(t.codeDescription?.href))&&(Y.string(t.source)||Y.undefined(t.source))&&(Y.undefined(t.relatedInformation)||Y.typedArray(t.relatedInformation,uc.is))}e.is=n})(mc||={});var hc;(function(e){function t(e,t,...n){let r={title:e,command:t};return Y.defined(n)&&n.length>0&&(r.arguments=n),r}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.title)&&Y.string(t.command)}e.is=n})(hc||={});var q;(function(e){function t(e,t){return{range:e,newText:t}}e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}e.insert=n;function r(e){return{range:e,newText:``}}e.del=r;function i(e){let t=e;return Y.objectLiteral(t)&&Y.string(t.newText)&&K.is(t.range)}e.is=i})(q||={});var gc;(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&Y.string(t.label)&&(Y.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(Y.string(t.description)||t.description===void 0)}e.is=n})(gc||={});var _c;(function(e){function t(e){let t=e;return Y.string(t)}e.is=t})(_c||={});var vc;(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}e.del=r;function i(e){let t=e;return q.is(t)&&(gc.is(t.annotationId)||_c.is(t.annotationId))}e.is=i})(vc||={});var yc;(function(e){function t(e,t){return{textDocument:e,edits:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Ec.is(t.textDocument)&&Array.isArray(t.edits)}e.is=n})(yc||={});var bc;(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&Y.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||Y.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||Y.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||_c.is(t.annotationId))}e.is=n})(bc||={});var xc;(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&Y.string(t.oldUri)&&Y.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||Y.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||Y.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||_c.is(t.annotationId))}e.is=n})(xc||={});var Sc;(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&Y.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||Y.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||Y.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||_c.is(t.annotationId))}e.is=n})(Sc||={});var Cc;(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>Y.string(e.kind)?bc.is(e)||xc.is(e)||Sc.is(e):yc.is(e)))}e.is=t})(Cc||={});var wc;(function(e){function t(e){return{uri:e}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.uri)}e.is=n})(wc||={});var Tc;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.uri)&&Y.integer(t.version)}e.is=n})(Tc||={});var Ec;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.uri)&&(t.version===null||Y.integer(t.version))}e.is=n})(Ec||={});var Dc;(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.string(t.uri)&&Y.string(t.languageId)&&Y.integer(t.version)&&Y.string(t.text)}e.is=n})(Dc||={});var Oc;(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}e.is=t})(Oc||={});var kc;(function(e){function t(e){let t=e;return Y.objectLiteral(e)&&Oc.is(t.kind)&&Y.string(t.value)}e.is=t})(kc||={});var J;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(J||={});var Ac;(function(e){e.PlainText=1,e.Snippet=2})(Ac||={});var jc;(function(e){e.Deprecated=1})(jc||={});var Mc;(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}e.create=t;function n(e){let t=e;return t&&Y.string(t.newText)&&K.is(t.insert)&&K.is(t.replace)}e.is=n})(Mc||={});var Nc;(function(e){e.asIs=1,e.adjustIndentation=2})(Nc||={});var Pc;(function(e){function t(e){let t=e;return t&&(Y.string(t.detail)||t.detail===void 0)&&(Y.string(t.description)||t.description===void 0)}e.is=t})(Pc||={});var Fc;(function(e){function t(e){return{label:e}}e.create=t})(Fc||={});var Ic;(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}e.create=t})(Ic||={});var Lc;(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}e.fromPlainText=t;function n(e){let t=e;return Y.string(t)||Y.objectLiteral(t)&&Y.string(t.language)&&Y.string(t.value)}e.is=n})(Lc||={});var Rc;(function(e){function t(e){let t=e;return!!t&&Y.objectLiteral(t)&&(kc.is(t.contents)||Lc.is(t.contents)||Y.typedArray(t.contents,Lc.is))&&(e.range===void 0||K.is(e.range))}e.is=t})(Rc||={});var zc;(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}e.create=t})(zc||={});var Bc;(function(e){function t(e,t,...n){let r={label:e};return Y.defined(t)&&(r.documentation=t),Y.defined(n)?r.parameters=n:r.parameters=[],r}e.create=t})(Bc||={});var Vc;(function(e){e.Text=1,e.Read=2,e.Write=3})(Vc||={});var Hc;(function(e){function t(e,t){let n={range:e};return Y.number(t)&&(n.kind=t),n}e.create=t})(Hc||={});var Uc;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Uc||={});var Wc;(function(e){e.Deprecated=1})(Wc||={});var Gc;(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}e.create=t})(Gc||={});var Kc;(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}e.create=t})(Kc||={});var qc;(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}e.create=t;function n(e){let t=e;return t&&Y.string(t.name)&&Y.number(t.kind)&&K.is(t.range)&&K.is(t.selectionRange)&&(t.detail===void 0||Y.string(t.detail))&&(t.deprecated===void 0||Y.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=n})(qc||={});var Jc;(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(Jc||={});var Yc;(function(e){e.Invoked=1,e.Automatic=2})(Yc||={});var Xc;(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.typedArray(t.diagnostics,mc.is)&&(t.only===void 0||Y.typedArray(t.only,Y.string))&&(t.triggerKind===void 0||t.triggerKind===Yc.Invoked||t.triggerKind===Yc.Automatic)}e.is=n})(Xc||={});var Zc;(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):hc.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return t&&Y.string(t.title)&&(t.diagnostics===void 0||Y.typedArray(t.diagnostics,mc.is))&&(t.kind===void 0||Y.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||hc.is(t.command))&&(t.isPreferred===void 0||Y.boolean(t.isPreferred))&&(t.edit===void 0||Cc.is(t.edit))}e.is=n})(Zc||={});var Qc;(function(e){function t(e,t){let n={range:e};return Y.defined(t)&&(n.data=t),n}e.create=t;function n(e){let t=e;return Y.defined(t)&&K.is(t.range)&&(Y.undefined(t.command)||hc.is(t.command))}e.is=n})(Qc||={});var $c;(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&Y.uinteger(t.tabSize)&&Y.boolean(t.insertSpaces)}e.is=n})($c||={});var el;(function(e){function t(e,t,n){return{range:e,target:t,data:n}}e.create=t;function n(e){let t=e;return Y.defined(t)&&K.is(t.range)&&(Y.undefined(t.target)||Y.string(t.target))}e.is=n})(el||={});var tl;(function(e){function t(e,t){return{range:e,parent:t}}e.create=t;function n(t){let n=t;return Y.objectLiteral(n)&&K.is(n.range)&&(n.parent===void 0||e.is(n.parent))}e.is=n})(tl||={});var nl;(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(nl||={});var rl;(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(rl||={});var il;(function(e){function t(e){let t=e;return Y.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}e.is=t})(il||={});var al;(function(e){function t(e,t){return{range:e,text:t}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&Y.string(t.text)}e.is=n})(al||={});var ol;(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&Y.boolean(t.caseSensitiveLookup)&&(Y.string(t.variableName)||t.variableName===void 0)}e.is=n})(ol||={});var sl;(function(e){function t(e,t){return{range:e,expression:t}}e.create=t;function n(e){let t=e;return t!=null&&K.is(t.range)&&(Y.string(t.expression)||t.expression===void 0)}e.is=n})(sl||={});var cl;(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}e.create=t;function n(e){let t=e;return Y.defined(t)&&K.is(e.stoppedLocation)}e.is=n})(cl||={});var ll;(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}e.is=t})(ll||={});var ul;(function(e){function t(e){return{value:e}}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&(t.tooltip===void 0||Y.string(t.tooltip)||kc.is(t.tooltip))&&(t.location===void 0||rc.is(t.location))&&(t.command===void 0||hc.is(t.command))}e.is=n})(ul||={});var dl;(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return Y.objectLiteral(t)&&nc.is(t.position)&&(Y.string(t.label)||Y.typedArray(t.label,ul.is))&&(t.kind===void 0||ll.is(t.kind))&&t.textEdits===void 0||Y.typedArray(t.textEdits,q.is)&&(t.tooltip===void 0||Y.string(t.tooltip)||kc.is(t.tooltip))&&(t.paddingLeft===void 0||Y.boolean(t.paddingLeft))&&(t.paddingRight===void 0||Y.boolean(t.paddingRight))}e.is=n})(dl||={});var fl;(function(e){function t(e){return{kind:`snippet`,value:e}}e.createSnippet=t})(fl||={});var pl;(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}e.create=t})(pl||={});var ml;(function(e){function t(e){return{items:e}}e.create=t})(ml||={});var hl;(function(e){e.Invoked=0,e.Automatic=1})(hl||={});var gl;(function(e){function t(e,t){return{range:e,text:t}}e.create=t})(gl||={});var _l;(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}e.create=t})(_l||={});var vl;(function(e){function t(e){let t=e;return Y.objectLiteral(t)&&$s.is(t.uri)&&Y.string(t.name)}e.is=t})(vl||={});var yl;(function(e){function t(e,t,n,r){return new bl(e,t,n,r)}e.create=t;function n(e){let t=e;return!!(Y.defined(t)&&Y.string(t.uri)&&(Y.undefined(t.languageId)||Y.string(t.languageId))&&Y.uinteger(t.lineCount)&&Y.func(t.getText)&&Y.func(t.positionAt)&&Y.func(t.offsetAt))}e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,c=0;for(;o0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return nc.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return nc.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1e?r=i:n=i+1}let i=n-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(ri&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}e.applyEdits=r})(Sl||={});function Cl(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Cl(r,t),Cl(i,t);let a=0,o=0,s=0;for(;an.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function El(e){let t=Tl(e.range);return t===e.range?e:{newText:e.newText,range:t}}var Dl;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Oc.Markdown,Oc.PlainText]}},hover:{contentFormat:[Oc.Markdown,Oc.PlainText]}}}})(Dl||={});var Ol;(function(e){e[e.Unknown=0]=`Unknown`,e[e.File=1]=`File`,e[e.Directory=2]=`Directory`,e[e.SymbolicLink=64]=`SymbolicLink`})(Ol||={});let kl=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Al=[{label:`rgb`,func:`rgb($red, $green, $blue)`,insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:U(`Creates a Color from red, green, and blue values.`)},{label:`rgba`,func:`rgba($red, $green, $blue, $alpha)`,insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:U(`Creates a Color from red, green, blue, and alpha values.`)},{label:`rgb relative`,func:`rgb(from $color $red $green $blue)`,insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:U(`Creates a Color from the red, green, and blue values of another Color.`)},{label:`hsl`,func:`hsl($hue, $saturation, $lightness)`,insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:U(`Creates a Color from hue, saturation, and lightness values.`)},{label:`hsla`,func:`hsla($hue, $saturation, $lightness, $alpha)`,insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:U(`Creates a Color from hue, saturation, lightness, and alpha values.`)},{label:`hsl relative`,func:`hsl(from $color $hue $saturation $lightness)`,insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:U(`Creates a Color from the hue, saturation, and lightness values of another Color.`)},{label:`hwb`,func:`hwb($hue $white $black)`,insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:U(`Creates a Color from hue, white, and black values.`)},{label:`hwb relative`,func:`hwb(from $color $hue $white $black)`,insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:U(`Creates a Color from the hue, white, and black values of another Color.`)},{label:`lab`,func:`lab($lightness $a $b)`,insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:U(`Creates a Color from lightness, a, and b values.`)},{label:`lab relative`,func:`lab(from $color $lightness $a $b)`,insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:U(`Creates a Color from the lightness, a, and b values of another Color.`)},{label:`oklab`,func:`oklab($lightness $a $b)`,insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:U(`Creates a Color from lightness, a, and b values.`)},{label:`oklab relative`,func:`oklab(from $color $lightness $a $b)`,insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:U(`Creates a Color from the lightness, a, and b values of another Color.`)},{label:`lch`,func:`lch($lightness $chroma $hue)`,insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:U(`Creates a Color from lightness, chroma, and hue values.`)},{label:`lch relative`,func:`lch(from $color $lightness $chroma $hue)`,insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:U(`Creates a Color from the lightness, chroma, and hue values of another Color.`)},{label:`oklch`,func:`oklch($lightness $chroma $hue)`,insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:U(`Creates a Color from lightness, chroma, and hue values.`)},{label:`oklch relative`,func:`oklch(from $color $lightness $chroma $hue)`,insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:U(`Creates a Color from the lightness, chroma, and hue values of another Color.`)},{label:`color`,func:`color($color-space $red $green $blue)`,insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:U(`Creates a Color in a specific color space from red, green, and blue values.`)},{label:`color relative`,func:`color(from $color $color-space $red $green $blue)`,insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:U(`Creates a Color in a specific color space from the red, green, and blue values of another Color.`)},{label:`color-mix`,func:`color-mix(in $color-space, $color $percentage, $color $percentage)`,insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:U(`Mix two colors together in a rectangular color space.`)},{label:`color-mix hue`,func:`color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)`,insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:U(`Mix two colors together in a polar color space.`)}],jl=/^(rgb|rgba|hsl|hsla|hwb)$/i,Ml={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`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgrey:`#a9a9a9`,darkgreen:`#006400`,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`,grey:`#808080`,green:`#008000`,greenyellow:`#adff2f`,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`,lightgrey:`#d3d3d3`,lightgreen:`#90ee90`,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:`#9370d8`,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:`#d87093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,red:`#ff0000`,rebeccapurple:`#663399`,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`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},Nl=RegExp(`^(${Object.keys(Ml).join(`|`)})$`,`i`),Pl={currentColor:`The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.`,transparent:`Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value.`},Fl=RegExp(`^(${Object.keys(Pl).join(`|`)})$`,`i`);function Il(e,t){let n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);let e=parseFloat(n[1])/t;if(e>=0&&e<=1)return e}throw Error()}function Ll(e){let t=e.getText(),n=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case`deg`:return parseFloat(t)%360;case`rad`:return parseFloat(t)*180/Math.PI%360;case`grad`:return parseFloat(t)*.9%360;case`turn`:return parseFloat(t)*360%360;default:if(n[2]===void 0)return parseFloat(t)%360}throw Error()}function Rl(e){let t=e.getName();return t?jl.test(t):!1}function zl(e){return kl.test(e)||Nl.test(e)||Fl.test(e)}function X(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Bl(e){if(e[0]!==`#`)return null;switch(e.length){case 4:return{red:X(e.charCodeAt(1))*17/255,green:X(e.charCodeAt(2))*17/255,blue:X(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:X(e.charCodeAt(1))*17/255,green:X(e.charCodeAt(2))*17/255,blue:X(e.charCodeAt(3))*17/255,alpha:X(e.charCodeAt(4))*17/255};case 7:return{red:(X(e.charCodeAt(1))*16+X(e.charCodeAt(2)))/255,green:(X(e.charCodeAt(3))*16+X(e.charCodeAt(4)))/255,blue:(X(e.charCodeAt(5))*16+X(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(X(e.charCodeAt(1))*16+X(e.charCodeAt(2)))/255,green:(X(e.charCodeAt(3))*16+X(e.charCodeAt(4)))/255,blue:(X(e.charCodeAt(5))*16+X(e.charCodeAt(6)))/255,alpha:(X(e.charCodeAt(7))*16+X(e.charCodeAt(8)))/255}}return null}function Vl(e,t,n,r=1){if(e/=60,t===0)return{red:n,green:n,blue:n,alpha:r};{let i=(e,t,n)=>{for(;n<0;)n+=6;for(;n>=6;)n-=6;return n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e},a=n<=.5?n*(t+1):n+t-n*t,o=n*2-a;return{red:i(o,a,e+2),green:i(o,a,e),blue:i(o,a,e-2),alpha:r}}}function Hl(e){let t=e.red,n=e.green,r=e.blue,i=e.alpha,a=Math.max(t,n,r),o=Math.min(t,n,r),s=0,c=0,l=(o+a)/2,u=a-o;if(u>0){switch(c=Math.min(l<=.5?u/(2*l):u/(2-2*l),1),a){case t:s=(n-r)/u+(n=1){let e=t/(t+n);return{red:e,green:e,blue:e,alpha:r}}let i=Vl(e,1,.5,r),a=i.red;a*=1-t-n,a+=t;let o=i.green;o*=1-t-n,o+=t;let s=i.blue;return s*=1-t-n,s+=t,{red:a,green:o,blue:s,alpha:r}}function Wl(e){let t=Hl(e),n=Math.min(e.red,e.green,e.blue),r=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:r,a:t.a}}function Gl(e){if(e.type===R.HexColorValue)return Bl(e.getText());if(e.type===R.Function){let t=e,n=t.getName(),r=t.getArguments().getChildren();if(r.length===1){let e=r[0].getChildren();if(e.length===1&&e[0].type===R.Expression&&(r=e[0].getChildren(),r.length===3)){let e=r[2];if(e instanceof Os){let t=e.getLeft(),n=e.getRight(),i=e.getOperator();t&&n&&i&&i.matches(`/`)&&(r=[r[0],r[1],t,n])}}}if(!n||r.length<3||r.length>4)return null;try{let e=r.length===4?Il(r[3],1):1;if(n===`rgb`||n===`rgba`)return{red:Il(r[0],255),green:Il(r[1],255),blue:Il(r[2],255),alpha:e};if(n===`hsl`||n===`hsla`)return Vl(Ll(r[0]),Il(r[1],100),Il(r[2],100),e);if(n===`hwb`)return Ul(Ll(r[0]),Il(r[1],100),Il(r[2],100),e)}catch{return null}}else if(e.type===R.Identifier){if(e.parent&&e.parent.type!==R.Term)return null;let t=e.parent;if(t&&t.parent&&t.parent.type===R.BinaryExpression){let e=t.parent;if(e.parent&&e.parent.type===R.ListEntry&&e.parent.key===e)return null}let n=e.getText().toLowerCase();if(n===`none`)return null;let r=Ml[n];if(r)return Bl(r)}return null}let Kl={bottom:`Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.`,center:`Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.`,left:`Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.`,right:`Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.`,top:`Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset.`},ql={"no-repeat":`Placed once and not repeated in this direction.`,repeat:`Repeated in this direction as often as needed to cover the background painting area.`,"repeat-x":`Computes to ‘repeat no-repeat’.`,"repeat-y":`Computes to ‘no-repeat repeat’.`,round:`Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.`,space:`Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area.`},Jl={dashed:`A series of square-ended dashes.`,dotted:`A series of round dots.`,double:`Two parallel solid lines with some space between them.`,groove:`Looks as if it were carved in the canvas.`,hidden:`Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.`,inset:`Looks as if the content on the inside of the border is sunken into the canvas.`,none:`No border. Color and width are ignored.`,outset:`Looks as if the content on the inside of the border is coming out of the canvas.`,ridge:`Looks as if it were coming out of the canvas.`,solid:`A single line segment.`},Yl=[`medium`,`thick`,`thin`],Xl={"border-box":`The background is painted within (clipped to) the border box.`,"content-box":`The background is painted within (clipped to) the content box.`,"padding-box":`The background is painted within (clipped to) the padding box.`},Zl={"margin-box":`Uses the margin box as reference box.`,"fill-box":`Uses the object bounding box as reference box.`,"stroke-box":`Uses the stroke bounding box as reference box.`,"view-box":`Uses the nearest SVG viewport as reference box.`},Ql={initial:`Represents the value specified as the property’s initial value.`,inherit:`Represents the computed value of the property on the element’s parent.`,unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},$l={"var()":`Evaluates the value of a custom variable.`,"calc()":`Evaluates an mathematical expression. The following operators can be used: + - * /.`},eu={"url()":`Reference an image file by URL`,"image()":`Provide image fallbacks and annotations.`,"-webkit-image-set()":`Provide multiple resolutions. Remember to use unprefixed image-set() in addition.`,"image-set()":`Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.`,"-moz-element()":`Use an element in the document as an image. Remember to use unprefixed element() in addition.`,"element()":`Use an element in the document as an image.`,"cross-fade()":`Indicates the two images to be combined and how far along in the transition the combination is.`,"-webkit-gradient()":`Deprecated. Use modern linear-gradient() or radial-gradient() instead.`,"-webkit-linear-gradient()":`Linear gradient. Remember to use unprefixed version in addition.`,"-moz-linear-gradient()":`Linear gradient. Remember to use unprefixed version in addition.`,"-o-linear-gradient()":`Linear gradient. Remember to use unprefixed version in addition.`,"linear-gradient()":`A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.`,"-webkit-repeating-linear-gradient()":`Repeating Linear gradient. Remember to use unprefixed version in addition.`,"-moz-repeating-linear-gradient()":`Repeating Linear gradient. Remember to use unprefixed version in addition.`,"-o-repeating-linear-gradient()":`Repeating Linear gradient. Remember to use unprefixed version in addition.`,"repeating-linear-gradient()":`Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.`,"-webkit-radial-gradient()":`Radial gradient. Remember to use unprefixed version in addition.`,"-moz-radial-gradient()":`Radial gradient. Remember to use unprefixed version in addition.`,"radial-gradient()":`Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.`,"-webkit-repeating-radial-gradient()":`Repeating radial gradient. Remember to use unprefixed version in addition.`,"-moz-repeating-radial-gradient()":`Repeating radial gradient. Remember to use unprefixed version in addition.`,"repeating-radial-gradient()":`Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.`},tu={ease:`Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).`,"ease-in":`Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).`,"ease-in-out":`Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).`,"ease-out":`Equivalent to cubic-bezier(0, 0, 0.58, 1.0).`,linear:`Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).`,"step-end":`Equivalent to steps(1, end).`,"step-start":`Equivalent to steps(1, start).`,"steps()":`The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.`,"cubic-bezier()":`Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).`,"cubic-bezier(0.6, -0.28, 0.735, 0.045)":`Ease-in Back. Overshoots.`,"cubic-bezier(0.68, -0.55, 0.265, 1.55)":`Ease-in-out Back. Overshoots.`,"cubic-bezier(0.175, 0.885, 0.32, 1.275)":`Ease-out Back. Overshoots.`,"cubic-bezier(0.6, 0.04, 0.98, 0.335)":`Ease-in Circular. Based on half circle.`,"cubic-bezier(0.785, 0.135, 0.15, 0.86)":`Ease-in-out Circular. Based on half circle.`,"cubic-bezier(0.075, 0.82, 0.165, 1)":`Ease-out Circular. Based on half circle.`,"cubic-bezier(0.55, 0.055, 0.675, 0.19)":`Ease-in Cubic. Based on power of three.`,"cubic-bezier(0.645, 0.045, 0.355, 1)":`Ease-in-out Cubic. Based on power of three.`,"cubic-bezier(0.215, 0.610, 0.355, 1)":`Ease-out Cubic. Based on power of three.`,"cubic-bezier(0.95, 0.05, 0.795, 0.035)":`Ease-in Exponential. Based on two to the power ten.`,"cubic-bezier(1, 0, 0, 1)":`Ease-in-out Exponential. Based on two to the power ten.`,"cubic-bezier(0.19, 1, 0.22, 1)":`Ease-out Exponential. Based on two to the power ten.`,"cubic-bezier(0.47, 0, 0.745, 0.715)":`Ease-in Sine.`,"cubic-bezier(0.445, 0.05, 0.55, 0.95)":`Ease-in-out Sine.`,"cubic-bezier(0.39, 0.575, 0.565, 1)":`Ease-out Sine.`,"cubic-bezier(0.55, 0.085, 0.68, 0.53)":`Ease-in Quadratic. Based on power of two.`,"cubic-bezier(0.455, 0.03, 0.515, 0.955)":`Ease-in-out Quadratic. Based on power of two.`,"cubic-bezier(0.25, 0.46, 0.45, 0.94)":`Ease-out Quadratic. Based on power of two.`,"cubic-bezier(0.895, 0.03, 0.685, 0.22)":`Ease-in Quartic. Based on power of four.`,"cubic-bezier(0.77, 0, 0.175, 1)":`Ease-in-out Quartic. Based on power of four.`,"cubic-bezier(0.165, 0.84, 0.44, 1)":`Ease-out Quartic. Based on power of four.`,"cubic-bezier(0.755, 0.05, 0.855, 0.06)":`Ease-in Quintic. Based on power of five.`,"cubic-bezier(0.86, 0, 0.07, 1)":`Ease-in-out Quintic. Based on power of five.`,"cubic-bezier(0.23, 1, 0.320, 1)":`Ease-out Quintic. Based on power of five.`},nu={"circle()":`Defines a circle.`,"ellipse()":`Defines an ellipse.`,"inset()":`Defines an inset rectangle.`,"polygon()":`Defines a polygon.`},ru={length:`cap.ch.cm.cqb.cqh.cqi.cqmax.cqmin.cqw.dvb.dvh.dvi.dvw.em.ex.ic.in.lh.lvb.lvh.lvi.lvw.mm.pc.pt.px.q.rcap.rch.rem.rex.ric.rlh.svb.svh.svi.svw.vb.vh.vi.vmax.vmin.vw`.split(`.`),angle:[`deg`,`rad`,`grad`,`turn`],time:[`ms`,`s`],frequency:[`Hz`,`kHz`],resolution:[`dpi`,`dpcm`,`dppx`],percentage:[`%`,`fr`]},iu=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.const.video.wbr`.split(`.`),au=`circle.clipPath.cursor.defs.desc.ellipse.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.filter.foreignObject.g.hatch.hatchpath.image.line.linearGradient.marker.mask.mesh.meshpatch.meshrow.metadata.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.solidcolor.stop.svg.switch.symbol.text.textPath.tspan.use.view`.split(`.`),ou=[`@bottom-center`,`@bottom-left`,`@bottom-left-corner`,`@bottom-right`,`@bottom-right-corner`,`@left-bottom`,`@left-middle`,`@left-top`,`@right-bottom`,`@right-middle`,`@right-top`,`@top-center`,`@top-left`,`@top-left-corner`,`@top-right`,`@top-right-corner`];function su(e){return Object.keys(e).map(t=>e[t])}function cu(e){return e!==void 0}var lu=class{constructor(e=new Eo){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:F.EOF,offset:-1,len:0,text:``},this.prevToken=void 0}peekIdent(e){return F.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return F.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return F.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return e.indexOf(this.token.type)!==-1}peekRegExp(e,t){return e===this.token.type?t.test(this.token.text):!1}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){let e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){let t=this.mark();return e()||(this.restoreAtMark(t),null)}acceptOneKeyword(e){if(F.AtKeyword===this.token.type){for(let t of e)if(t.length===this.token.text.length&&t===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1}accept(e){return e===this.token.type?(this.consumeToken(),!0):!1}acceptIdent(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1}acceptKeyword(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1}acceptDelim(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1}acceptRegexp(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1}_parseRegexp(e){let t=this.createNode(R.Identifier);do;while(this.acceptRegexp(e));return this.finish(t)}acceptUnquotedString(){let e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);let t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,t){for(;;)if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;else if(t&&t.indexOf(this.token.type)!==-1)return!0;else{if(this.token.type===F.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new B(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,t,n,r){if(!(e instanceof V)&&(t&&this.markError(e,t,n,r),this.prevToken)){let t=this.prevToken.offset+this.prevToken.len;e.length=t>e.offset?t-e.offset:0}return e}markError(e,t,n,r){this.token!==this.lastErrorToken&&(e.addIssue(new Js(e,t,qs.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||r)&&this.resync(n,r)}parseStylesheet(e){let t=e.version,n=e.getText();return this.internalParse(n,this._parseStylesheet,(r,i)=>{if(e.version!==t)throw Error(`Underlying model has changed, AST is no longer valid`);return n.substr(r,i)})}internalParse(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();let r=t.bind(this)();return r&&(n?r.textProvider=n:r.textProvider=(t,n)=>e.substr(t,n)),r}_parseStylesheet(){let e=this.create(Lo);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let n=!1;do{n=!1;let r=this._parseStylesheetStatement();for(r&&(e.addChild(r),n=!0,t=!1,!this.peek(F.EOF)&&this._needsSemicolonAfter(r)&&!this.accept(F.SemiColon)&&this.markError(e,G.SemiColonExpected));this.accept(F.SemiColon)||this.accept(F.CDO)||this.accept(F.CDC);)n=!0,t=!1}while(n);if(this.peek(F.EOF))break;t||=(this.peek(F.AtKeyword)?this.markError(e,G.UnknownAtRule):this.markError(e,G.RuleOrSelectorExpected),!0),this.consumeToken()}while(!this.peek(F.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(F.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){let t=this.mark();if(this._parseSelector(e)){for(;this.accept(F.Comma)&&this._parseSelector(e););if(this.accept(F.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null}_parseRuleset(e=!1){let t=this.create(zo),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(F.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,G.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(F.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(F.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case R.Keyframe:case R.ViewPort:case R.Media:case R.Ruleset:case R.Namespace:case R.If:case R.For:case R.Each:case R.While:case R.MixinDeclaration:case R.FunctionDeclaration:case R.MixinContentDeclaration:return!1;case R.ExtendsReference:case R.MixinContentReference:case R.ReturnStatement:case R.MediaQuery:case R.Debug:case R.Import:case R.AtApplyRule:case R.CustomPropertyDeclaration:return!0;case R.VariableDeclaration:return e.needsSemicolon;case R.MixinReference:return!e.getContent();case R.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){let t=this.create(Ro);if(!this.accept(F.CurlyL))return null;let n=e();for(;t.addChild(n)&&!this.peek(F.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(F.SemiColon))return this.finish(t,G.SemiColonExpected,[F.SemiColon,F.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===F.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(F.SemiColon););n=e()}return this.accept(F.CurlyR)?this.finish(t):this.finish(t,G.RightCurlyExpected,[F.CurlyR,F.SemiColon])}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,G.LeftCurlyExpected,[F.CurlyR,F.SemiColon])}_parseSelector(e){let t=this.create(Bo),n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)n=!0,t.addChild(this._parseCombinator());return n?this.finish(t):null}_parseDeclaration(e){let t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;let n=this.create(Wo);return n.setProperty(this._parseProperty())?this.accept(F.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(F.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,G.PropertyValueExpected)):this.finish(n,G.ColonExpected,[F.Colon],e||[F.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(F.Ident,/^--/))return null;let t=this.create(Go);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(F.Colon))return this.finish(t,G.ColonExpected,[F.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);let n=this.mark();if(this.peek(F.CurlyL)){let e=this.create(Uo),r=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(e.setDeclarations(r)&&!r.isErroneous(!0)&&(e.addChild(this._parsePrio()),this.peek(F.SemiColon)))return this.finish(e),t.setPropertySet(e),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}let r=this._parseExpr();return r&&!r.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],F.SemiColon,F.EOF))?(t.setValue(r),this.peek(F.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),cu(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,G.PropertyValueExpected):this.finish(t))}_parseCustomPropertyValue(e=[F.CurlyR]){let t=this.create(B),n=()=>i===0&&a===0&&o===0,r=()=>e.indexOf(this.token.type)!==-1,i=0,a=0,o=0;done:for(;;){switch(this.token.type){case F.SemiColon:if(n())break done;break;case F.Exclamation:if(n())break done;break;case F.CurlyL:i++;break;case F.CurlyR:if(i--,i<0){if(r()&&a===0&&o===0)break done;return this.finish(t,G.LeftCurlyExpected)}break;case F.ParenthesisL:a++;break;case F.ParenthesisR:if(a--,a<0){if(r()&&o===0&&i===0)break done;return this.finish(t,G.LeftParenthesisExpected)}break;case F.BracketL:o++;break;case F.BracketR:if(o--,o<0)return this.finish(t,G.LeftSquareBracketExpected);break;case F.BadString:break done;case F.EOF:let e=G.RightCurlyExpected;return o>0?e=G.RightSquareBracketExpected:a>0&&(e=G.RightParenthesisExpected),this.finish(t,e)}this.consumeToken()}return this.finish(t)}_tryToParseDeclaration(e){let t=this.mark();return this._parseProperty()&&this.accept(F.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)}_parseProperty(){let e=this.create(Ko),t=this.mark();return(this.acceptDelim(`*`)||this.acceptDelim(`_`))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(F.Charset))return null;let e=this.create(B);return this.consumeToken(),this.accept(F.String)?this.accept(F.SemiColon)?this.finish(e):this.finish(e,G.SemiColonExpected):this.finish(e,G.IdentifierExpected)}_parseImport(){if(!this.peekKeyword(`@import`))return null;let e=this.create(cs);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,G.URIOrStringExpected):this._completeParseImport(e)}_completeParseImport(e){if(this.acceptIdent(`layer`)&&this.accept(F.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,G.IdentifierExpected,[F.SemiColon]);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.ParenthesisR],[])}return this.acceptIdent(`supports`)&&this.accept(F.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(F.ParenthesisR))?this.finish(e,G.RightParenthesisExpected,[F.ParenthesisR],[]):(!this.peek(F.SemiColon)&&!this.peek(F.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword(`@namespace`))return null;let e=this.create(ps);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,G.URIExpected,[F.SemiColon]):this.accept(F.SemiColon)?this.finish(e):this.finish(e,G.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword(`@font-face`))return null;let e=this.create(is);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword(`@-ms-viewport`)&&!this.peekKeyword(`@-o-viewport`)&&!this.peekKeyword(`@viewport`))return null;let e=this.create(rs);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(F.AtKeyword,this.keyframeRegex))return null;let e=this.create(os),t=this.create(B);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches(`@-ms-keyframes`)&&this.markError(t,G.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,G.IdentifierExpected,[F.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([z.Keyframe])}_parseKeyframeSelector(){let e=this.create(ss),t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(F.Percentage)&&(t=!0),!t)return null;for(;this.accept(F.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(F.Percentage)&&(t=!0),!t)return this.finish(e,G.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){let e=this.create(ss),t=this.mark(),n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(F.Percentage)&&(n=!0),!n)return null;for(;this.accept(F.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(F.Percentage)&&(n=!0),!n)return this.restoreAtMark(t),null;return this.peek(F.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)}_parsePropertyAtRule(){if(!this.peekKeyword(`@property`))return null;let e=this.create(_s);return this.consumeToken(),!this.peekRegExp(F.Ident,/^--/)||!e.setName(this._parseIdent([z.Property]))?this.finish(e,G.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseLayer(e=!1){if(!this.peekKeyword(`@layer`))return null;let t=this.create(gs);this.consumeToken();let n=this._parseLayerNameList();return n&&t.setNames(n),(!n||n.getChildren().length===1)&&this.peek(F.CurlyL)?this._parseBody(t,this._parseLayerDeclaration.bind(this,e)):this.accept(F.SemiColon)?this.finish(t):this.finish(t,G.SemiColonExpected)}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){let e=this.createNode(R.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(F.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,G.IdentifierExpected);return this.finish(e)}_parseLayerName(){let e=this.createNode(R.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(`.`);)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,G.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword(`@supports`))return null;let t=this.create(hs);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){let e=this.create(ws);if(this.acceptIdent(`not`))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(F.Ident,/^(and|or)$/i)){let t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){let e=this.create(ws);if(this.accept(F.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([F.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,G.ConditionExpected):this.accept(F.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,G.RightParenthesisExpected,[F.ParenthesisR],[]);if(this.peek(F.Ident)){let t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(F.ParenthesisL)){let t=1;for(;this.token.type!==F.EOF&&t!==0;)this.token.type===F.ParenthesisL?t++:this.token.type===F.ParenthesisR&&t--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(t)}return this.finish(e,G.LeftParenthesisExpected,[],[F.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword(`@media`))return null;let t=this.create(ms);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,G.MediaQueryExpected)}_parseMediaQueryList(){let e=this.create(bs);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,G.MediaQueryExpected);for(;this.accept(F.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,G.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){let e=this.create(xs),t=this.mark();if(this.acceptIdent(`not`),this.peek(F.ParenthesisL))this.restoreAtMark(t),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent(`only`),!e.addChild(this._parseIdent()))return null;this.acceptIdent(`and`)&&e.addChild(this._parseMediaCondition())}return this.finish(e)}_parseRatio(){let e=this.mark(),t=this.create(Ms);return this._parseNumeric()?this.acceptDelim(`/`)?this._parseNumeric()?this.finish(t):this.finish(t,G.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){let e=this.create(Ss);this.acceptIdent(`not`);let t=!0;for(;t;){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[],[F.CurlyL]);if(this.peek(F.ParenthesisL)||this.peekIdent(`not`)?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[],[F.CurlyL]);t=this.acceptIdent(`and`)||this.acceptIdent(`or`)}return this.finish(e)}_parseMediaFeature(){let e=[F.ParenthesisR],t=this.create(Cs);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(F.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,G.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()&&(!t.addChild(this._parseMediaFeatureValue())||this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue())))return this.finish(t,G.TermExpected,[],e)}else if(t.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(t,G.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,G.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,G.TermExpected,[],e)}else return this.finish(t,G.IdentifierExpected,[],e);return this.finish(t)}_parseMediaFeatureRangeOperator(){return this.acceptDelim(`<`)||this.acceptDelim(`>`)?(this.hasWhitespace()||this.acceptDelim(`=`),!0):!!this.acceptDelim(`=`)}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){let e=this.create(B);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword(`@page`))return null;let e=this.create(Ts);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(F.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,G.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(F.AtKeyword))return null;let e=this.create(Es);return this.acceptOneKeyword(ou)||this.markError(e,G.UnknownAtRule,[],[F.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(F.Ident)&&!this.peek(F.Colon))return null;let e=this.create(B);return e.addChild(this._parseIdent()),this.accept(F.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,G.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword(`@-moz-document`))return null;let e=this.create(vs);return this.consumeToken(),this.resync([],[F.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword(`@container`))return null;let t=this.create(ys);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){let e=this.create(B);if(this.acceptIdent(`not`))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent(`and`))for(;this.acceptIdent(`and`);)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent(`or`))for(;this.acceptIdent(`or`);)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){let e=this.create(B);if(this.accept(F.ParenthesisL)){if(this.peekIdent(`not`)||this.peek(F.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[],[F.CurlyL])}else if(this.acceptIdent(`style`)){if(this.hasWhitespace()||!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[],[F.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[],[F.CurlyL])}else return this.finish(e,G.LeftParenthesisExpected,[],[F.CurlyL]);return this.finish(e)}_parseStyleQuery(){let e=this.create(B);if(this.acceptIdent(`not`))e.addChild(this._parseStyleInParens());else if(this.peek(F.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent(`and`))for(;this.acceptIdent(`and`);)e.addChild(this._parseStyleInParens());else if(this.peekIdent(`or`))for(;this.acceptIdent(`or`);)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([F.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){let e=this.create(B);if(this.accept(F.ParenthesisL)){if(e.addChild(this._parseStyleQuery()),!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[],[F.CurlyL])}else return this.finish(e,G.LeftParenthesisExpected,[],[F.CurlyL]);return this.finish(e)}_parseUnknownAtRule(){if(!this.peek(F.AtKeyword))return null;let e=this.create(Hs);e.addChild(this._parseUnknownAtRuleName());let t=()=>r===0&&i===0&&a===0,n=0,r=0,i=0,a=0;done:for(;;){switch(this.token.type){case F.SemiColon:if(t())break done;break;case F.EOF:return r>0?this.finish(e,G.RightCurlyExpected):a>0?this.finish(e,G.RightSquareBracketExpected):i>0?this.finish(e,G.RightParenthesisExpected):this.finish(e);case F.CurlyL:n++,r++;break;case F.CurlyR:if(r--,n>0&&r===0){if(this.consumeToken(),a>0)return this.finish(e,G.RightSquareBracketExpected);if(i>0)return this.finish(e,G.RightParenthesisExpected);break done}if(r<0){if(i===0&&a===0)break done;return this.finish(e,G.LeftCurlyExpected)}break;case F.ParenthesisL:i++;break;case F.ParenthesisR:if(i--,i<0)return this.finish(e,G.LeftParenthesisExpected);break;case F.BracketL:a++;break;case F.BracketR:if(a--,a<0)return this.finish(e,G.LeftSquareBracketExpected);break}this.consumeToken()}return e}_parseUnknownAtRuleName(){let e=this.create(B);return this.accept(F.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim(`/`)||this.peekDelim(`*`)||this.peekDelim(`+`)||this.peekDelim(`-`)||this.peek(F.Dashmatch)||this.peek(F.Includes)||this.peek(F.SubstringOperator)||this.peek(F.PrefixOperator)||this.peek(F.SuffixOperator)||this.peekDelim(`=`)){let e=this.createNode(R.Operator);return this.consumeToken(),this.finish(e)}else return null}_parseUnaryOperator(){if(!this.peekDelim(`+`)&&!this.peekDelim(`-`))return null;let e=this.create(B);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(`>`)){let e=this.create(B);this.consumeToken();let t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(`>`)){if(!this.hasWhitespace()&&this.acceptDelim(`>`))return e.type=R.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=R.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim(`+`)){let e=this.create(B);return this.consumeToken(),e.type=R.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim(`~`)){let e=this.create(B);return this.consumeToken(),e.type=R.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim(`/`)){let e=this.create(B);this.consumeToken();let t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent(`deep`)&&!this.hasWhitespace()&&this.acceptDelim(`/`))return e.type=R.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null}_parseSimpleSelector(){let e=this.create(Vo),t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(t===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim(`&`)){let e=this.createNode(R.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(F.Hash)&&!this.peekDelim(`#`))return null;let e=this.createNode(R.IdentifierSelector);if(this.acceptDelim(`#`)){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,G.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim(`.`))return null;let e=this.createNode(R.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,G.IdentifierExpected):this.finish(e)}_parseElementName(){let e=this.mark(),t=this.createNode(R.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),!t.addChild(this._parseSelectorIdent())&&!this.acceptDelim(`*`)?(this.restoreAtMark(e),null):this.finish(t)}_parseNamespacePrefix(){let e=this.mark(),t=this.createNode(R.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim(`*`),this.acceptDelim(`|`)?this.finish(t):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(F.BracketL))return null;let e=this.create(As);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent(`i`),this.acceptIdent(`s`)),this.accept(F.BracketR)?this.finish(e):this.finish(e,G.RightSquareBracketExpected)):this.finish(e,G.IdentifierExpected)}_parsePseudo(){let e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(F.ParenthesisL)){let t=()=>{let e=this.create(B);if(!e.addChild(this._parseSelector(!0)))return null;for(;this.accept(F.Comma)&&e.addChild(this._parseSelector(!0)););return this.peek(F.ParenthesisR)?this.finish(e):null};if(!e.addChild(this.try(t))&&e.addChild(this._parseBinaryExpr())&&this.acceptIdent(`of`)&&!e.addChild(this.try(t)))return this.finish(e,G.SelectorExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(F.Colon))return null;let e=this.mark(),t=this.createNode(R.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(F.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,G.IdentifierExpected):this.finish(t))}_tryParsePrio(){let e=this.mark();return this._parsePrio()||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(F.Exclamation))return null;let e=this.createNode(R.Prio);return this.accept(F.Exclamation)&&this.acceptIdent(`important`)?this.finish(e):null}_parseExpr(e=!1){let t=this.create(Ds);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(F.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)}_parseUnicodeRange(){if(!this.peekIdent(`u`))return null;let e=this.create(Fo);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(F.BracketL))return null;let e=this.createNode(R.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(F.BracketR)?this.finish(e):this.finish(e,G.RightSquareBracketExpected)}_parseBinaryExpr(e,t){let n=this.create(Os);if(!n.setLeft(e||this._parseTerm()))return null;if(!n.setOperator(t||this._parseOperator()))return this.finish(n);if(!n.setRight(this._parseTerm()))return this.finish(n,G.TermExpected);n=this.finish(n);let r=this._parseOperator();return r&&(n=this._parseBinaryExpr(n,r)),this.finish(n)}_parseTerm(){let e=this.create(ks);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(F.ParenthesisL))return null;let e=this.create(B);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(F.ParenthesisR)?this.finish(e):this.finish(e,G.RightParenthesisExpected)}_parseNumeric(){if(this.peek(F.Num)||this.peek(F.Percentage)||this.peek(F.Resolution)||this.peek(F.Length)||this.peek(F.EMS)||this.peek(F.EXS)||this.peek(F.Angle)||this.peek(F.Time)||this.peek(F.Dimension)||this.peek(F.ContainerQueryLength)||this.peek(F.Freq)){let e=this.create(Ns);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(F.String)&&!this.peek(F.BadString))return null;let e=this.createNode(R.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(F.Ident,/^url(-prefix)?$/i))return null;let e=this.mark(),t=this.createNode(R.URILiteral);return this.accept(F.Ident),this.hasWhitespace()||!this.peek(F.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(F.ParenthesisR)?this.finish(t):this.finish(t,G.RightParenthesisExpected))}_parseURLArgument(){let e=this.create(B);return!this.accept(F.String)&&!this.accept(F.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(F.Ident))return null;let t=this.create(Io);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(F.Ident,/^--/),this.consumeToken(),this.finish(t)}_parseFunction(){let e=this.mark(),t=this.create(Jo);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(F.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,G.ExpressionExpected);return this.accept(F.ParenthesisR)?this.finish(t):this.finish(t,G.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(F.Ident))return null;let e=this.create(Io);if(e.referenceTypes=[z.Function],this.acceptIdent(`progid`)){if(this.accept(F.Colon))for(;this.accept(F.Ident)&&this.acceptDelim(`.`););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){let e=this.create(Xo);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(F.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){let e=this.create(js);return this.consumeToken(),this.finish(e)}else return null}};function uu(e,t){let n=0,r=e.length;if(r===0)return 0;for(;ne+t||this.offset===e&&this.length===t?this.findInScope(e,t):null}findInScope(e,t=0){let n=e+t,r=uu(this.children,e=>e.offset>n);if(r===0)return this;let i=this.children[r-1];return i.offset<=e&&i.offset+i.length>=e+t?i.findInScope(e,t):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,t){for(let n=0;n/g,`>`)}function Su(e,t){if(!e.description||e.description===``)return``;if(typeof e.description!=`string`)return e.description.value;let n=``;if(t?.documentation!==!1){e.status&&(n+=yu(e.status)),n+=e.description;let t=wu(e.browsers);t&&(n+=` +(`+t+`)`),`syntax`in e&&(n+=`\n\nSyntax: ${e.syntax}`)}return e.references&&e.references.length>0&&t?.references!==!1&&(n.length>0&&(n+=` + +`),n+=e.references.map(e=>`${e.name}: ${e.url}`).join(` | `)),n}function Cu(e,t){if(!e.description||e.description===``)return``;let n=``;if(t?.documentation!==!1){e.status&&(n+=yu(e.status)),typeof e.description==`string`?n+=xu(e.description):n+=e.description.kind===Oc.Markdown?e.description.value:xu(e.description.value);let t=wu(e.browsers);t&&(n+=` + +(`+xu(t)+`)`),`syntax`in e&&e.syntax&&(n+=`\n\nSyntax: ${xu(e.syntax)}`)}return e.references&&e.references.length>0&&t?.references!==!1&&(n.length>0&&(n+=` + +`),n+=e.references.map(e=>`[${e.name}](${e.url})`).join(` | `)),n}function wu(e=[]){return e.length===0?null:e.map(e=>{let t=``,n=e.match(/([A-Z]+)(\d+)?/),r=n[1],i=n[2];return r in vu&&(t+=vu[r]),i&&(t+=` `+i),t}).join(`, `)}var Tu;(()=>{var e={470:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}var r={resolve:function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},normalize:function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},isAbsolute:function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,n=0;n0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;il){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>l&&(e.charCodeAt(i+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=i+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r}(0,e)},parse:function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(n.base=n.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(s,o),n.base=e.slice(s,c)),n.ext=e.slice(o,c)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})};var r={};(()=>{let e;n.r(r),n.d(r,{URI:()=>c,Utils:()=>x}),typeof process==`object`?e=process.platform===`win32`:typeof navigator==`object`&&(e=navigator.userAgent.indexOf(`Windows`)>=0);let t=/^\w[\w\d+.-]*$/,i=/^\//,a=/^\/\//;function o(e,n){if(!e.scheme&&n)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!i.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(a.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}let s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=function(e,t){return e||t?e:`file`}(e,a),this.authority=t||``,this.path=function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t}(this.scheme,n||``),this.query=r||``,this.fragment=i||``,o(this,a))}get fsPath(){return m(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new u(t,n,r,i,a)}static parse(e,t=!1){let n=s.exec(e);return n?new u(n[2]||``,v(n[4]||``),v(n[5]||``),v(n[7]||``),v(n[9]||``),t):new u(``,``,``,``,``)}static file(t){let n=``;if(e&&(t=t.replace(/\\/g,`/`)),t[0]===`/`&&t[1]===`/`){let e=t.indexOf(`/`,2);e===-1?(n=t.substring(2),t=`/`):(n=t.substring(2,e),t=t.substring(e)||`/`)}return new u(`file`,n,t,``,``)}static from(e){let t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return h(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{let t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===l?e.fsPath:null,t}}return e}}let l=e?1:void 0;class u extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=m(this),this._fsPath}toString(e=!1){return e?h(this,!0):(this._formatted||=h(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=l),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let d={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function f(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=d[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function p(e){let t;for(let n=0;n1&&t.scheme===`file`?`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,`\\`)),r}function h(e,t){let n=t?p:f,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:f(c,!1,!1)),r}function g(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+g(e.substr(3)):e}}let _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(_)?e.replace(_,(e=>g(e))):e}var y=n(470);let b=y.posix||y;var x;(function(e){e.joinPath=function(e,...t){return e.with({path:b.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=b.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=b.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return b.basename(e.path)},e.extname=function(e){return b.extname(e.path)}})(x||={})})(),Tu=r})();let{URI:Eu,Utils:Du}=Tu;function Ou(e){return Du.dirname(Eu.parse(e)).toString(!0)}function ku(e,...t){return Du.joinPath(Eu.parse(e),...t).toString(!0)}var Au=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,t){let n={items:[],isIncomplete:!1};for(let r of this.literalCompletions){let i=r.uriValue,a=Mu(i);if(a===`.`||a===`..`)n.isIncomplete=!0;else{let a=await this.providePathSuggestions(i,r.position,r.range,e,t);for(let e of a)n.items.push(e)}}for(let r of this.importCompletions){let i=r.pathValue,a=Mu(i);if(a===`.`||a===`..`)n.isIncomplete=!0;else{let a=await this.providePathSuggestions(i,r.position,r.range,e,t);e.languageId===`scss`&&a.forEach(e=>{L(e.label,`_`)&&Do(e.label,`.scss`)&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))});for(let e of a)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,r,i){let a=Mu(e),o=L(e,`'`)||L(e,`"`),s=o?a.slice(0,t.character-(n.start.character+1)):a.slice(0,t.character-n.start.character),c=r.uri,l=Nu(s,a,o?Lu(n,1,-1):n),u=s.substring(0,s.lastIndexOf(`/`)+1),d=i.resolveReference(u||`.`,c);if(d)try{let e=[],t=await this.readDirectory(d);for(let[n,r]of t)n.charCodeAt(0)!==ju&&(r===Ol.Directory||ku(d,n)!==c)&&e.push(Pu(n,r===Ol.Directory,l));return e}catch{}return[]}};let ju=46;function Mu(e){return L(e,`'`)||L(e,`"`)?e.slice(1,-1):e}function Nu(e,t,n){let r,i=e.lastIndexOf(`/`);if(i===-1)r=n;else{let e=t.slice(i+1),a=Iu(n.end,-e.length),o=e.indexOf(` `),s;s=o===-1?n.end:Iu(a,o),r=K.create(a,s)}return r}function Pu(e,t,n){return t?(e+=`/`,{label:Fu(e),kind:J.Folder,textEdit:q.replace(n,Fu(e)),command:{title:`Suggest`,command:`editor.action.triggerSuggest`}}):{label:Fu(e),kind:J.File,textEdit:q.replace(n,Fu(e))}}function Fu(e){return e.replace(/(\s|\(|\)|,|"|')/g,`\\$1`)}function Iu(e,t){return nc.create(e.line,e.character+t)}function Lu(e,t,n){let r=Iu(e.start,t),i=Iu(e.end,n);return K.create(r,i)}let Ru=Ac.Snippet,zu={title:`Suggest`,command:`editor.action.triggerSuggest`};var Bu;(function(e){e.Enums=` `,e.Normal=`d`,e.VendorPrefixed=`x`,e.Term=`y`,e.Variable=`z`})(Bu||={});var Vu=class{constructor(e=null,t,n){this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=n,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||=new _u(this.styleSheet),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,r,i=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,i);let a=new Au(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[a].concat(o);let s=this.doComplete(e,t,n,i);try{let t=await a.computeCompletions(e,r);return{isIncomplete:s.isIncomplete||t.isIncomplete,itemDefaults:s.itemDefaults,items:t.items.concat(s.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,r){this.offset=e.offsetAt(t),this.position=t,this.currentWord=Ju(e,this.offset),this.defaultReplaceRange=K.create(nc.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=r;try{let e={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=No(this.styleSheet,this.offset);for(let t=this.nodePath.length-1;t>=0;t--){let n=this.nodePath[t];if(n instanceof Ko)this.getCompletionsForDeclarationProperty(n.getParent(),e);else if(n instanceof Ds)n.parent instanceof Fs?this.getVariableProposals(null,e):this.getCompletionsForExpression(n,e);else if(n instanceof Vo){let t=n.findAParent(R.ExtendsReference,R.Ruleset);if(t)if(t.type===R.ExtendsReference)this.getCompletionsForExtendsReference(t,n,e);else{let n=t;this.getCompletionsForSelector(n,n&&n.isNested(),e)}}else if(n instanceof Xo)this.getCompletionsForFunctionArgument(n,n.getParent(),e);else if(n instanceof Ro)this.getCompletionsForDeclarations(n,e);else if(n instanceof Ps)this.getCompletionsForVariableDeclaration(n,e);else if(n instanceof zo)this.getCompletionsForRuleSet(n,e);else if(n instanceof Fs)this.getCompletionsForInterpolation(n,e);else if(n instanceof ns)this.getCompletionsForFunctionDeclaration(n,e);else if(n instanceof Bs)this.getCompletionsForMixinReference(n,e);else if(n instanceof Jo)this.getCompletionsForFunctionArgument(null,n,e);else if(n instanceof hs)this.getCompletionsForSupports(n,e);else if(n instanceof ws)this.getCompletionsForSupportsCondition(n,e);else if(n instanceof Ls)this.getCompletionsForExtendsReference(n,null,e);else if(n.type===R.URILiteral)this.getCompletionForUriLiteralValue(n,e);else if(n.parent===null)this.getCompletionForTopLevel(e);else if(n.type===R.StringLiteral&&this.isImportPathParent(n.parent.type))this.getCompletionForImportPath(n,e);else continue;if(e.items.length>0||this.offset>n.offset)return this.finalize(e)}return this.getCompletionsForStylesheet(e),e.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,e),this.finalize(e)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===R.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){let n=this.nodePath[t];if(e.indexOf(n.type)!==-1)return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){let n=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(i=>{let a,o,s=!1;e?(a=this.getCompletionRange(e.getProperty()),o=i.name,cu(e.colonPosition)||(o+=`: `,s=!0)):(a=this.getCompletionRange(null),o=i.name+`: `,s=!0),!e&&r&&(o+=`$0;`),e&&!e.semicolonPosition&&r&&this.offset>=this.textDocument.offsetAt(a.end)&&(o+=`$0;`);let c={label:i.name,documentation:bu(i,this.doesSupportMarkdown()),tags:Hu(i)?[jc.Deprecated]:[],textEdit:q.replace(a,o),insertTextFormat:Ac.Snippet,kind:J.Property};i.restrictions||(s=!1),n&&s&&(c.command=zu);let l=(255-(typeof i.relevance==`number`?Math.min(Math.max(i.relevance,0),99):50)).toString(16);c.sortText=(L(i.name,`-`)?Bu.VendorPrefixed:Bu.Normal)+`_`+l,t.items.push(c)}),this.completionParticipants.forEach(e=>{e.onCssProperty&&e.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),t}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,t){let n=e.getFullPropertyName(),r=this.cssDataManager.getProperty(n),i=e.getValue()||null;for(;i&&i.hasChildren();)i=i.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(e=>{e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(i)})}),r){if(r.restrictions)for(let e of r.restrictions)switch(e){case`color`:this.getColorProposals(r,i,t);break;case`position`:this.getPositionProposals(r,i,t);break;case`repeat`:this.getRepeatStyleProposals(r,i,t);break;case`line-style`:this.getLineStyleProposals(r,i,t);break;case`line-width`:this.getLineWidthProposals(r,i,t);break;case`geometry-box`:this.getGeometryBoxProposals(r,i,t);break;case`box`:this.getBoxProposals(r,i,t);break;case`image`:this.getImageProposals(r,i,t);break;case`timing-function`:this.getTimingFunctionProposals(r,i,t);break;case`shape`:this.getBasicShapeProposals(r,i,t);break}this.getValueEnumProposals(r,i,t),this.getCSSWideKeywordProposals(r,i,t),this.getUnitProposals(r,i,t)}else{let n=Gu(this.styleSheet,e);for(let e of n.getEntries())t.items.push({label:e,textEdit:q.replace(this.getCompletionRange(i),e),kind:J.Value})}return this.getVariableProposals(i,t),this.getTermProposals(r,i,t),t}getValueEnumProposals(e,t,n){if(e.values)for(let r of e.values){let i=r.name,a;if(Do(i,`)`)){let e=i.lastIndexOf(`(`);e!==-1&&(i=i.substring(0,e+1)+`$1`+i.substring(e+1),a=Ru)}let o=Bu.Enums;L(r.name,`-`)&&(o+=Bu.VendorPrefixed);let s={label:r.name,documentation:bu(r,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],textEdit:q.replace(this.getCompletionRange(t),i),sortText:o,kind:J.Value,insertTextFormat:a};n.items.push(s)}return n}getCSSWideKeywordProposals(e,t,n){for(let e in Ql)n.items.push({label:e,documentation:Ql[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});for(let e in $l){let r=Wu(e);n.items.push({label:e,documentation:$l[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:Ru,command:L(e,`var`)?zu:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Variable);for(let r of n){let n=L(r.name,`--`)?`var(${r.name})`:r.name,i={label:r.name,documentation:r.value?ko(r.value):r.value,textEdit:q.replace(this.getCompletionRange(e),n),kind:J.Variable,sortText:Bu.Variable};if(typeof i.documentation==`string`&&zl(i.documentation)&&(i.kind=J.Color),r.node.type===R.FunctionParameter){let e=r.node.getParent();e.type===R.MixinDeclaration&&(i.detail=U(`argument from '{0}'`,e.getName()))}t.items.push(i)}return t}getVariableProposalsForCSSVarFunction(e){let t=new Uu;this.styleSheet.acceptVisitor(new qu(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Variable);for(let r of n){if(L(r.name,`--`)){let t={label:r.name,documentation:r.value?ko(r.value):r.value,textEdit:q.replace(this.getCompletionRange(null),r.name),kind:J.Variable};typeof t.documentation==`string`&&zl(t.documentation)&&(t.kind=J.Color),e.items.push(t)}t.remove(r.name)}for(let n of t.getEntries())if(L(n,`--`)){let t={label:n,textEdit:q.replace(this.getCompletionRange(null),n),kind:J.Variable};e.items.push(t)}return e}getUnitProposals(e,t,n){let r=`0`;if(this.currentWord.length>0){let e=this.currentWord.match(/^-?\d[\.\d+]*/);e&&(r=e[0],n.isIncomplete=r.length===this.currentWord.length)}else this.currentWord.length===0&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===R.Term&&(t=t.getParent()),e.restrictions)for(let i of e.restrictions){let e=ru[i];if(e)for(let i of e){let e=r+i;n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){let t=e.end===-1?this.position:this.textDocument.positionAt(e.end),n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return K.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(let e in Ml)n.items.push({label:e,documentation:Ml[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Color});for(let e in Pl)n.items.push({label:e,documentation:Pl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});let r=new Uu;this.styleSheet.acceptVisitor(new Ku(r,this.offset));for(let e of r.getEntries())n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Color});for(let e of Al)n.items.push({label:e.label,detail:e.func,documentation:e.desc,textEdit:q.replace(this.getCompletionRange(t),e.insertText),insertTextFormat:Ru,kind:J.Function});return n}getPositionProposals(e,t,n){for(let e in Kl)n.items.push({label:e,documentation:Kl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getRepeatStyleProposals(e,t,n){for(let e in ql)n.items.push({label:e,documentation:ql[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getLineStyleProposals(e,t,n){for(let e in Jl)n.items.push({label:e,documentation:Jl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getLineWidthProposals(e,t,n){for(let e of Yl)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getGeometryBoxProposals(e,t,n){for(let e in Zl)n.items.push({label:e,documentation:Zl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getBoxProposals(e,t,n){for(let e in Xl)n.items.push({label:e,documentation:Xl[e],textEdit:q.replace(this.getCompletionRange(t),e),kind:J.Value});return n}getImageProposals(e,t,n){for(let e in eu){let r=Wu(e);n.items.push({label:e,documentation:eu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getTimingFunctionProposals(e,t,n){for(let e in tu){let r=Wu(e);n.items.push({label:e,documentation:tu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getBasicShapeProposals(e,t,n){for(let e in nu){let r=Wu(e);n.items.push({label:e,documentation:nu[e],textEdit:q.replace(this.getCompletionRange(t),r),kind:J.Function,insertTextFormat:e===r?void 0:Ru})}return n}getCompletionsForStylesheet(e){let t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof zo?this.getCompletionsForRuleSet(t,e):t instanceof hs?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(t=>{e.items.push({label:t.name,textEdit:q.replace(this.getCompletionRange(null),t.name),documentation:bu(t,this.doesSupportMarkdown()),tags:Hu(t)?[jc.Deprecated]:[],kind:J.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){let n=e.getDeclarations();return n&&n.endsWith(`}`)&&this.offset>=n.end?this.getCompletionForTopLevel(t):!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){let r=this.findInNodePath(R.PseudoSelector,R.IdentifierSelector,R.ClassSelector,R.ElementNameSelector);if(!r&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,`:`)&&(this.currentWord=`:`+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,`:`)&&(this.currentWord=`:`+this.currentWord),this.defaultReplaceRange=K.create(nc.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(e=>{let t=Wu(e.name),i={label:e.name,textEdit:q.replace(this.getCompletionRange(r),t),documentation:bu(e,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],kind:J.Function,insertTextFormat:e.name===t?void 0:Ru};L(e.name,`:-`)&&(i.sortText=Bu.VendorPrefixed),n.items.push(i)}),this.cssDataManager.getPseudoElements().forEach(e=>{let t=Wu(e.name),i={label:e.name,textEdit:q.replace(this.getCompletionRange(r),t),documentation:bu(e,this.doesSupportMarkdown()),tags:Hu(e)?[jc.Deprecated]:[],kind:J.Function,insertTextFormat:e.name===t?void 0:Ru};L(e.name,`::-`)&&(i.sortText=Bu.VendorPrefixed),n.items.push(i)}),!t){for(let e of iu)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(r),e),kind:J.Keyword});for(let e of au)n.items.push({label:e,textEdit:q.replace(this.getCompletionRange(r),e),kind:J.Keyword})}let i={};i[this.currentWord]=!0;let a=this.textDocument.getText();if(this.styleSheet.accept(e=>{if(e.type===R.SimpleSelector&&e.length>0){let t=a.substr(e.offset,e.length);return t.charAt(0)===`.`&&!i[t]&&(i[t]=!0,n.items.push({label:t,textEdit:q.replace(this.getCompletionRange(r),t),kind:J.Keyword})),!1}return!0}),e&&e.isNested()){let t=e.getSelectors().findFirstChildBeforeOffset(this.offset);t&&e.getSelectors().getChildren().indexOf(t)===0&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;let n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof Ho){let e=n;if(!cu(e.colonPosition)||this.offset<=e.colonPosition)return this.getCompletionsForDeclarationProperty(e,t);if(cu(e.semicolonPosition)&&e.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){let n=e.getParent();if(n instanceof Xo)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;let r=e.findParent(R.Declaration);if(!r)return this.getTermProposals(void 0,null,t),t;let i=e.findChildAtOffset(this.offset,!0);return!i||i instanceof Ns||i instanceof Io?this.getCompletionsForDeclarationValue(r,t):t}getCompletionsForFunctionArgument(e,t,n){let r=t.getIdentifier();return r&&r.matches(`var`)&&(!t.getArguments().hasChildren()||t.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(n),n}getCompletionsForFunctionDeclaration(e,t){let n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset{e.onCssMixinReference&&e.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(r)})}),t}getTermProposals(e,t,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Function);for(let e of r)e.node instanceof ns&&n.items.push(this.makeTermProposal(e,e.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;let r=t.getChildren().map(e=>e instanceof Yo?e.getName():e.getText()),i=e.name+`(`+r.map((e,t)=>"${"+(t+1)+`:`+e+`}`).join(`, `)+`)`;return{label:e.name,detail:e.name+`(`+r.join(`, `)+`)`,textEdit:q.replace(this.getCompletionRange(n),i),insertTextFormat:Ru,kind:J.Function,sortText:Bu.Term}}getCompletionsForSupportsCondition(e,t){let n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof Wo)return!cu(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof ws)return this.getCompletionsForSupportsCondition(n,t)}return cu(e.lParent)&&this.offset>e.lParent&&(!cu(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){let n=e.getDeclarations();if(!n||this.offset<=n.offset){let n=e.findFirstChildBeforeOffset(this.offset);return n instanceof ws?this.getCompletionsForSupportsCondition(n,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,r,i;if(e.hasChildren()){let t=e.getChild(0);n=t.getText(),r=this.position,i=this.getCompletionRange(t)}else{n=``,r=this.position;let t=this.textDocument.positionAt(e.offset+4);i=K.create(t,t)}return this.completionParticipants.forEach(e=>{e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:r,range:i})}),t}getCompletionForImportPath(e,t){return this.completionParticipants.forEach(t=>{t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),t}hasCharacterAtPosition(e,t){let n=this.textDocument.getText();return e>=0&&e=0&&` +\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}var Yu=class e{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes){for(let t of this.attributes)if(t.name===e)return t.value}return null}addChild(t){t instanceof e&&(t.parent=this),this.children||=[],this.children.push(t)}append(e){if(this.attributes){let t=this.attributes[this.attributes.length-1];t.value+=e}}prepend(e){if(this.attributes){let t=this.attributes[0];t.value=e+t.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof Xu);)e=e.parent;return e}removeChild(e){if(this.children){let t=this.children.indexOf(e);if(t!==-1)return this.children.splice(t,1),!0}return!1}addAttr(e,t){this.attributes||=[];for(let n of this.attributes)if(n.name===e){n.value+=` `+t;return}this.attributes.push({name:e,value:t})}clone(t=!0){let n=new e;if(this.attributes){n.attributes=[];for(let e of this.attributes)n.addAttr(e.name,e.value)}if(t&&this.children){n.children=[];for(let e=0;e`),this.writeLine(t,r.join(``))}},$u;(function(e){function t(e,t){return t+n(e)+t}e.ensure=t;function n(e){let t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.remove=n})($u||={});var ed=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function td(e,t){let n=new Yu;for(let r of e.getChildren())switch(r.type){case R.SelectorCombinator:if(t){let e=r.getText().split(`&`);if(e.length===1){n.addAttr(`name`,e[0]);break}n=t.cloneWithParent(),e[0]&&n.findRoot().prepend(e[0]);for(let r=1;r1){let e=t.cloneWithParent();n.addChild(e.findRoot()),n=e}n.append(e[r])}}break;case R.SelectorPlaceholder:if(r.matches(`@at-root`))return n;case R.ElementNameSelector:let e=r.getText();n.addAttr(`name`,e===`*`?`element`:nd(e));break;case R.ClassSelector:n.addAttr(`class`,nd(r.getText().substring(1)));break;case R.IdentifierSelector:n.addAttr(`id`,nd(r.getText().substring(1)));break;case R.MixinDeclaration:n.addAttr(`class`,r.getName());break;case R.PseudoSelector:n.addAttr(nd(r.getText()),``);break;case R.AttributeSelector:let i=r,a=i.getIdentifier();if(a){let e=i.getValue(),t=i.getOperator(),r;if(e&&t)switch(nd(t.getText())){case`|=`:r=`${$u.remove(nd(e.getText()))}-\u2026`;break;case`^=`:r=`${$u.remove(nd(e.getText()))}\u2026`;break;case`$=`:r=`\u2026${$u.remove(nd(e.getText()))}`;break;case`~=`:r=` \u2026 ${$u.remove(nd(e.getText()))} \u2026 `;break;case`*=`:r=`\u2026${$u.remove(nd(e.getText()))}\u2026`;break;default:r=$u.remove(nd(e.getText()));break}n.addAttr(nd(a.getText()),r)}break}return n}function nd(e){let t=new Eo;t.setSource(e);let n=t.scanUnquotedString();return n?n.text:e}var rd=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){let n=od(e);if(n){let r=new Qu(`"`).print(n,t);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]}simpleSelectorToMarkedString(e){let t=td(e),n=new Qu(`"`).print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){let t=e.match(/^::?([\w-]+)/);return t?!!this.cssDataManager.getPseudoElement(`::`+t[1]):!1}selectorToSpecificityMarkedString(e){let t=e=>{let t=new ed,r=new ed;for(let t of e)for(let e of t.getChildren()){let t=n(e);if(t.id>r.id){r=t;continue}else if(t.idr.attr){r=t;continue}else if(t.attrr.tag){r=t;continue}}return t.id+=r.id,t.attr+=r.attr,t.tag+=r.tag,t},n=e=>{let r=new ed;elementLoop:for(let i of e.getChildren()){switch(i.type){case R.IdentifierSelector:r.id++;break;case R.ClassSelector:case R.AttributeSelector:r.attr++;break;case R.ElementNameSelector:if(i.matches(`*`))break;r.tag++;break;case R.PseudoSelector:let e=i.getText(),n=i.getChildren();if(this.isPseudoElementIdentifier(e)){if(e.match(/^::slotted/i)&&n.length>0){r.tag++;let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}r.tag++;continue elementLoop}if(e.match(/^:where/i))continue elementLoop;if(e.match(/^:(?:not|has|is)/i)&&n.length>0){let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}if(e.match(/^:(?:host|host-context)/i)&&n.length>0){r.attr++;let e=t(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}if(e.match(/^:(?:nth-child|nth-last-child)/i)&&n.length>0){if(r.attr++,n.length===3&&n[1].type===23){let e=t(n[2].getChildren());r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue elementLoop}let e=new lu,i=n[1].getText();e.scanner.setSource(i);let a=e.scanner.scan(),o=e.scanner.scan();if(a.text===`n`||a.text===`-n`&&o.text===`of`){let n=[],a=i.slice(o.offset+2).split(`,`);for(let t of a){let r=e.internalParse(t,e._parseSelector);r&&n.push(r)}let s=t(n);r.id+=s.id,r.attr+=s.attr,r.tag+=s.tag;continue elementLoop}continue elementLoop}r.attr++;continue elementLoop}if(i.getChildren().length>0){let e=n(i);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag}}return r},r=n(e);return`[${U(`Selector Specificity`)}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${r.id}, ${r.attr}, ${r.tag})`}},id=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof Xu)&&e.getChildren().some(e=>e.hasChildren()&&e.getChild(0).type===R.SelectorCombinator)){let e=this.element.findRoot();e.parent instanceof Xu&&(t=this.element,this.element=e.parent,this.element.removeChild(e),this.prev=null)}for(let n of e.getChildren()){if(n instanceof Vo){if(this.prev instanceof Vo){let e=new Zu(`…`);this.element.addChild(e),this.element=e}else this.prev&&(this.prev.matches(`+`)||this.prev.matches(`~`))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches(`~`)&&this.element.addChild(new Zu(`⋮`));let e=td(n,t),r=e.findRoot();this.element.addChild(r),this.element=e}(n instanceof Vo||n.type===R.SelectorCombinatorParent||n.type===R.SelectorCombinatorShadowPiercingDescendant||n.type===R.SelectorCombinatorSibling||n.type===R.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function ad(e){switch(e.type){case R.MixinDeclaration:case R.Stylesheet:return!0}return!1}function od(e){if(e.matches(`@at-root`))return null;let t=new Xu,n=[],r=e.getParent();if(r instanceof zo){let e=r.getParent();for(;e&&!ad(e);){if(e instanceof zo){if(e.getSelectors().matches(`@at-root`))break;n.push(e)}e=e.getParent()}}let i=new id(t);for(let e=n.length-1;e>=0;e--){let t=n[e].getSelectors().getChild(0);t&&i.processSelector(t)}return i.processSelector(e),t}var sd=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new rd(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,r=this.defaultSettings){function i(t){return K.create(e.positionAt(t.offset),e.positionAt(t.end))}let a=No(n,e.offsetAt(t)),o=null,s;for(let e=0;etypeof e==`string`?e:e.value):e.value}doesSupportMarkdown(){if(!cu(this.supportsMarkdown)){if(!cu(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(Oc.Markdown)!==-1}return this.supportsMarkdown}};let cd=/^\w+:\/\//,ld=/^data:/;var ud=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){let r=new _u(n),i=Mo(n,e.offsetAt(t));if(!i)return null;let a=r.findSymbolFromNode(i);return a?{uri:e.uri,range:fd(a.node,e)}:null}findReferences(e,t,n){return this.findDocumentHighlights(e,t,n).map(t=>({uri:e.uri,range:t.range}))}getHighlightNode(e,t,n){let r=Mo(n,e.offsetAt(t));if(!(!r||r.type===R.Stylesheet||r.type===R.Declarations))return r.type===R.Identifier&&r.parent&&r.parent.type===R.ClassSelector&&(r=r.parent),r}findDocumentHighlights(e,t,n){let r=[],i=this.getHighlightNode(e,t,n);if(!i)return r;let a=new _u(n),o=a.findSymbolFromNode(i),s=i.getText();return n.accept(t=>{if(o){if(a.matchesSymbol(t,o))return r.push({kind:md(t),range:fd(t,e)}),!1}else i&&i.type===t.type&&t.matches(s)&&r.push({kind:md(t),range:fd(t,e)});return!0}),r}isRawStringDocumentLinkNode(e){return e.type===R.Import}findDocumentLinks(e,t,n){let r=this.findUnresolvedLinks(e,t),i=[];for(let t of r){let r=t.link,a=r.target;if(!(!a||ld.test(a)))if(cd.test(a))i.push(r);else{let t=n.resolveReference(a,e.uri);t&&(r.target=t),i.push(r)}}return i}async findDocumentLinks2(e,t,n){let r=this.findUnresolvedLinks(e,t),i=[];for(let t of r){let r=t.link,a=r.target;if(!(!a||ld.test(a)))if(cd.test(a))i.push(r);else{let o=await this.resolveReference(a,e.uri,n,t.isRawLink);o!==void 0&&(r.target=o,i.push(r))}}return i}findUnresolvedLinks(e,t){let n=[],r=t=>{let r=t.getText(),i=fd(t,e);if(i.start.line===i.end.line&&i.start.character===i.end.character)return;(L(r,`'`)||L(r,`"`))&&(r=r.slice(1,-1));let a=t.parent?this.isRawStringDocumentLinkNode(t.parent):!1;n.push({link:{target:r,range:i},isRawLink:a})};return t.accept(e=>{if(e.type===R.URILiteral){let t=e.getChild(0);return t&&r(t),!1}if(e.parent&&this.isRawStringDocumentLinkNode(e.parent)){let t=e.getText();return(L(t,`'`)||L(t,`"`))&&r(e),!1}return!0}),n}findSymbolInformations(e,t){let n=[];return this.collectDocumentSymbols(e,t,(t,r,i)=>{let a=i instanceof B?fd(i,e):i,o={name:t||U(``),kind:r,location:rc.create(e.uri,a)};n.push(o)}),n}findDocumentSymbols(e,t){let n=[],r=[];return this.collectDocumentSymbols(e,t,(t,i,a,o,s)=>{let c=a instanceof B?fd(a,e):a,l=o instanceof B?fd(o,e):o;(!l||!pd(c,l))&&(l=K.create(c.start,c.start));let u={name:t||U(``),kind:i,range:c,selectionRange:l},d=r.pop();for(;d&&!pd(d[1],c);)d=r.pop();if(d){let e=d[0];e.children||=[],e.children.push(u),r.push(d)}else n.push(u);s&&r.push([u,fd(s,e)])}),n}collectDocumentSymbols(e,t,n){t.accept(t=>{if(t instanceof zo){for(let r of t.getSelectors().getChildren())if(r instanceof Bo){let i=K.create(e.positionAt(r.offset),e.positionAt(t.end));n(r.getText(),Uc.Class,i,r,t.getDeclarations())}}else if(t instanceof Ps)n(t.getName(),Uc.Variable,t,t.getVariable(),void 0);else if(t instanceof Vs)n(t.getName(),Uc.Method,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof ns)n(t.getName(),Uc.Function,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof os)n(U(`@keyframes {0}`,t.getName()),Uc.Class,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof is)n(U(`@font-face`),Uc.Class,t,void 0,t.getDeclarations());else if(t instanceof ms){let e=t.getChild(0);e instanceof bs&&n(`@media `+e.getText(),Uc.Module,t,e,t.getDeclarations())}return!0})}findDocumentColors(e,t){let n=[];return t.accept(t=>{let r=dd(t,e);return r&&n.push(r),!0}),n}getColorPresentations(e,t,n,r){let i=[],a=Math.round(n.red*255),o=Math.round(n.green*255),s=Math.round(n.blue*255),c;c=n.alpha===1?`rgb(${a}, ${o}, ${s})`:`rgba(${a}, ${o}, ${s}, ${n.alpha})`,i.push({label:c,textEdit:q.replace(r,c)}),c=n.alpha===1?`#${hd(a)}${hd(o)}${hd(s)}`:`#${hd(a)}${hd(o)}${hd(s)}${hd(Math.round(n.alpha*255))}`,i.push({label:c,textEdit:q.replace(r,c)});let l=Hl(n);c=l.a===1?`hsl(${l.h}, ${Math.round(l.s*100)}%, ${Math.round(l.l*100)}%)`:`hsla(${l.h}, ${Math.round(l.s*100)}%, ${Math.round(l.l*100)}%, ${l.a})`,i.push({label:c,textEdit:q.replace(r,c)});let u=Wl(n);return c=u.a===1?`hwb(${u.h} ${Math.round(u.w*100)}% ${Math.round(u.b*100)}%)`:`hwb(${u.h} ${Math.round(u.w*100)}% ${Math.round(u.b*100)}% / ${u.a})`,i.push({label:c,textEdit:q.replace(r,c)}),i}prepareRename(e,t,n){let r=this.getHighlightNode(e,t,n);if(r)return K.create(e.positionAt(r.offset),e.positionAt(r.end))}doRename(e,t,n,r){let i=this.findDocumentHighlights(e,t,r).map(e=>q.replace(e.range,n));return{changes:{[e.uri]:i}}}async resolveModuleReference(e,t,n){if(L(t,`file://`)){let r=gd(e);if(r&&r!==`.`&&r!==`..`){let i=n.resolveReference(`/`,t),a=Ou(t),o=await this.resolvePathToModule(r,a,i);if(o)return ku(o,e.substring(r.length+1))}}}async mapReference(e,t){return e}async resolveReference(e,t,n,r=!1,i=this.defaultSettings){if(e[0]===`~`&&e[1]!==`/`&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),r);let a=await this.mapReference(n.resolveReference(e,t),r);if(this.resolveModuleReferences){if(a&&await this.fileExists(a))return a;let i=await this.mapReference(await this.resolveModuleReference(e,t,n),r);if(i)return i}if(a&&!await this.fileExists(a)){let a=n.resolveReference(`/`,t);if(i&&a){if(e in i)return this.mapReference(ku(a,i[e]),r);let t=e.indexOf(`/`),n=`${e.substring(0,t)}/`;if(n in i){let t=ku(a,i[n].slice(0,-1));return this.mapReference(t=ku(t,e.substring(n.length-1)),r)}}}return a}async resolvePathToModule(e,t,n){let r=ku(t,`node_modules`,e,`package.json`);if(await this.fileExists(r))return Ou(r);if(n&&t.startsWith(n)&&t.length!==n.length)return this.resolvePathToModule(e,Ou(t),n)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{let t=await this.fileSystemProvider.stat(e);return!(t.type===Ol.Unknown&&t.size===-1)}catch{return!1}}};function dd(e,t){let n=Gl(e);return n?{color:n,range:fd(e,t)}:null}function fd(e,t){return K.create(t.positionAt(e.offset),t.positionAt(e.end))}function pd(e,t){let n=t.start.line,r=t.end.line,i=e.start.line,a=e.end.line;return!(na||r>a||n===i&&t.start.charactere.end.character)}function md(e){if(e.type===R.Selector||e instanceof Io&&e.parent&&e.parent instanceof Ko&&e.isCustomProperty)return Vc.Write;if(e.parent)switch(e.parent.type){case R.FunctionDeclaration:case R.MixinDeclaration:case R.Keyframe:case R.VariableDeclaration:case R.FunctionParameter:return Vc.Write}return Vc.Read}function hd(e){let t=e.toString(16);return t.length===2?t:`0`+t}function gd(e){let t=e.indexOf(`/`);if(t===-1)return``;if(e[0]===`@`){let n=e.indexOf(`/`,t+1);return n===-1?e:e.substring(0,n)}return e.substring(0,t)}let _d=qs.Warning,vd=qs.Error,yd=qs.Ignore;var Z=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},bd=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}};let Q={AllVendorPrefixes:new Z(`compatibleVendorPrefixes`,U(`When using a vendor-specific prefix make sure to also include all other vendor-specific properties`),yd),IncludeStandardPropertyWhenUsingVendorPrefix:new Z(`vendorPrefix`,U(`When using a vendor-specific prefix also include the standard property`),_d),DuplicateDeclarations:new Z(`duplicateProperties`,U(`Do not use duplicate style definitions`),yd),EmptyRuleSet:new Z(`emptyRules`,U(`Do not use empty rulesets`),_d),ImportStatemement:new Z(`importStatement`,U(`Import statements do not load in parallel`),yd),BewareOfBoxModelSize:new Z(`boxModel`,U(`Do not use width or height when using padding or border`),yd),UniversalSelector:new Z(`universalSelector`,U(`The universal selector (*) is known to be slow`),yd),ZeroWithUnit:new Z(`zeroUnits`,U(`No unit for zero needed`),yd),RequiredPropertiesForFontFace:new Z(`fontFaceProperties`,U(`@font-face rule must define 'src' and 'font-family' properties`),_d),HexColorLength:new Z(`hexColorLength`,U(`Hex colors must consist of three, four, six or eight hex numbers`),vd),ArgsInColorFunction:new Z(`argumentsInColorFunction`,U(`Invalid number of parameters`),vd),UnknownProperty:new Z(`unknownProperties`,U(`Unknown property.`),_d),UnknownAtRules:new Z(`unknownAtRules`,U(`Unknown at-rule.`),_d),IEStarHack:new Z(`ieHack`,U(`IE hacks are only necessary when supporting IE7 and older`),yd),UnknownVendorSpecificProperty:new Z(`unknownVendorSpecificProperties`,U(`Unknown vendor specific property.`),yd),PropertyIgnoredDueToDisplay:new Z(`propertyIgnoredDueToDisplay`,U(`Property is ignored due to the display.`),_d),AvoidImportant:new Z(`important`,U(`Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.`),yd),AvoidFloat:new Z(`float`,U(`Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.`),yd),AvoidIdSelector:new Z(`idSelector`,U(`Selectors should not contain IDs because these rules are too tightly coupled with the HTML.`),yd)},xd={ValidProperties:new bd(`validProperties`,U("A list of properties that are not validated against the `unknownProperties` rule."),[])};var Sd=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){let t=Cd(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}};function Cd(e){switch(e){case`ignore`:return qs.Ignore;case`warning`:return qs.Warning;case`error`:return qs.Error}return null}var wd=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,r){return this.doCodeActions2(e,t,n,r).map(t=>{let n=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return hc.create(t.title,`_css.applyCodeAction`,e.uri,e.version,n&&n.edits)})}doCodeActions2(e,t,n,r){let i=[];if(n.diagnostics)for(let t of n.diagnostics)this.appendFixesForMarker(e,r,t,i);return i}getFixesForUnknownProperty(e,t,n,r){let i=t.getName(),a=[];this.cssDataManager.getProperties().forEach(e=>{let t=Oo(i,e.name);t>=i.length/2&&a.push({property:e.name,score:t})}),a.sort((e,t)=>t.score-e.score||e.property.localeCompare(t.property));let o=3;for(let t of a){let i=t.property,a=U(`Rename to '{0}'`,i),s=q.replace(n.range,i),c=Tc.create(e.uri,e.version),l={documentChanges:[yc.create(c,[s])]},u=Zc.create(a,l,Jc.QuickFix);if(u.diagnostics=[n],r.push(u),--o<=0)return}}appendFixesForMarker(e,t,n,r){if(n.code!==Q.UnknownProperty.id)return;let i=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end),o=No(t,i);for(let t=o.length-1;t>=0;t--){let s=o[t];if(s instanceof Wo){let t=s.getProperty();if(t&&t.offset===i&&t.end===a){this.getFixesForUnknownProperty(e,t,n,r);return}}}}},Td=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function Ed(e,t,n,r){let i=e[t];i.value=n,n&&(du(i.properties,r)||i.properties.push(r))}function Dd(e,t,n){Ed(e,`top`,t,n),Ed(e,`right`,t,n),Ed(e,`bottom`,t,n),Ed(e,`left`,t,n)}function $(e,t,n,r){t===`top`||t===`right`||t===`bottom`||t===`left`?Ed(e,t,n,r):Dd(e,n,r)}function Od(e,t,n){switch(t.length){case 1:$(e,void 0,t[0],n);break;case 2:$(e,`top`,t[0],n),$(e,`bottom`,t[0],n),$(e,`right`,t[1],n),$(e,`left`,t[1],n);break;case 3:$(e,`top`,t[0],n),$(e,`right`,t[1],n),$(e,`left`,t[1],n),$(e,`bottom`,t[2],n);break;case 4:$(e,`top`,t[0],n),$(e,`right`,t[1],n),$(e,`bottom`,t[2],n),$(e,`left`,t[3],n);break}}function kd(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function Ad(e,t=!0){return t&&kd(e,[`initial`,`unset`])?!1:parseFloat(e.getText())!==0}function jd(e,t=!0){return e.map(e=>Ad(e,t))}function Md(e,t=!0){return!(kd(e,[`none`,`hidden`])||t&&kd(e,[`initial`,`unset`]))}function Nd(e,t=!0){return e.map(e=>Md(e,t))}function Pd(e){let t=e.getChildren();if(t.length===1){let e=t[0];return Ad(e)&&Md(e)}for(let e of t){let t=e;if(!Ad(t,!1)||!Md(t,!1))return!1}return!0}function Fd(e){let t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(let n of e){let e=n.node.value;if(e!==void 0)switch(n.fullPropertyName){case`box-sizing`:return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case`width`:t.width=n;break;case`height`:t.height=n;break;default:let r=n.fullPropertyName.split(`-`);switch(r[0]){case`border`:switch(r[1]){case void 0:case`top`:case`right`:case`bottom`:case`left`:switch(r[2]){case void 0:$(t,r[1],Pd(e),n);break;case`width`:$(t,r[1],Ad(e,!1),n);break;case`style`:$(t,r[1],Md(e,!0),n);break}break;case`width`:Od(t,jd(e.getChildren(),!1),n);break;case`style`:Od(t,Nd(e.getChildren(),!0),n);break}break;case`padding`:r.length===1?Od(t,jd(e.getChildren(),!0),n):$(t,r[1],Ad(e,!0),n);break}break}}return t}var Id=class{constructor(){this.data={}}add(e,t,n){let r=this.data[e];r||(r={nodes:[],names:[]},this.data[e]=r),r.names.push(t),n&&r.nodes.push(n)}},Ld=class e{static entries(t,n,r,i,a){let o=new e(n,r,i);return t.acceptVisitor(o),o.completeValidations(),o.getEntries(a)}constructor(e,t,n){this.cssDataManager=n,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new Id,this.validProperties={};let r=t.getSetting(xd.ValidProperties);Array.isArray(r)&&r.forEach(e=>{if(typeof e==`string`){let t=e.trim().toLowerCase();t.length&&(this.validProperties[t]=!0)}})}isValidPropertyDeclaration(e){let t=e.fullPropertyName;return this.validProperties[t]}fetch(e,t){let n=[];for(let r of e)r.fullPropertyName===t&&n.push(r);return n}fetchWithValue(e,t,n){let r=[];for(let i of e)if(i.fullPropertyName===t){let e=i.node.getValue();e&&this.findValueInExpression(e,n)&&r.push(i)}return r}findValueInExpression(e,t){let n=!1;return e.accept(e=>(e.type===R.Identifier&&e.matches(t)&&(n=!0),!n)),n}getEntries(e=qs.Warning|qs.Error){return this.warnings.filter(t=>(t.getLevel()&e)!==0)}addEntry(e,t,n){let r=new Js(e,t,this.settings.getRule(t),n);this.warnings.push(r)}getMissingNames(e,t){let n=e.slice(0);for(let e=0;e0){let e=this.fetch(r,`float`);for(let t=0;t0){let e=this.fetch(r,`vertical-align`);for(let t=0;t1)for(let n=0;ne.startsWith(i))&&s.delete(t)}}let c=[];for(let t=0,n=e.prefixes.length;te instanceof Os?(r+=1,!1):!0),r!==n&&this.addEntry(e,Q.ArgsInColorFunction)),!0}};Ld.prefixes=[`-ms-`,`-moz-`,`-o-`,`-webkit-`];var Rd=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&n.validate===!1)return[];let r=[];r.push.apply(r,Ys.entries(t)),r.push.apply(r,Ld.entries(t,e,new Sd(n&&n.lint),this.cssDataManager));let i=[];for(let e in Q)i.push(Q[e].id);function a(t){let n=K.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),r=e.languageId;return{code:t.getRule().id,source:r,message:t.getMessage(),severity:t.getLevel()===qs.Warning?dc.Warning:dc.Error,range:n}}return r.filter(e=>e.getLevel()!==qs.Ignore).map(a)}};let zd=F.CustomToken,Bd=zd++,Vd=zd++;zd++;let Hd=zd++,Ud=zd++,Wd=zd++,Gd=zd++,Kd=zd++;zd++;var qd=class extends Eo{scanNext(e){if(this.stream.advanceIfChar(36)){let t=[`$`];if(this.ident(t))return this.finishToken(e,Bd,t.join(``));this.stream.goBackTo(e)}return this.stream.advanceIfChars([35,123])?this.finishToken(e,Vd):this.stream.advanceIfChars([61,61])?this.finishToken(e,Hd):this.stream.advanceIfChars([33,61])?this.finishToken(e,Ud):this.stream.advanceIfChar(60)?this.stream.advanceIfChar(61)?this.finishToken(e,Gd):this.finishToken(e,F.Delim):this.stream.advanceIfChar(62)?this.stream.advanceIfChar(61)?this.finishToken(e,Wd):this.finishToken(e,F.Delim):this.stream.advanceIfChars([46,46,46])?this.finishToken(e,Kd):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([47,47])?(this.stream.advanceWhileChar(e=>{switch(e){case 10:case 13:case 12:return!1;default:return!0}}),!0):!1}},Jd=class{constructor(e,t){this.id=e,this.message=t}};let Yd={FromExpected:new Jd(`scss-fromexpected`,U(`'from' expected`)),ThroughOrToExpected:new Jd(`scss-throughexpected`,U(`'through' or 'to' expected`)),InExpected:new Jd(`scss-fromexpected`,U(`'in' expected`))};var Xd=class extends lu{constructor(){super(new qd)}_parseStylesheetStatement(e=!1){return this.peek(F.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration()}_parseImport(){if(!this.peekKeyword(`@import`))return null;let e=this.create(cs);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,G.URIOrStringExpected);for(;this.accept(F.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,G.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Bd))return null;let t=this.create(Ps);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(F.Colon))return this.finish(t,G.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,G.VariableValueExpected,[],e);for(;this.peek(F.Exclamation);)if(!t.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(F.Ident,/^(default|global)$/))return this.finish(t,G.UnknownKeyword);this.consumeToken()}return this.peek(F.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Gd)||this.accept(Wd)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(Bd))return null;let e=this.create(Is);return this.consumeToken(),e}_parseModuleMember(){let e=this.mark(),t=this.create(Ks);return t.setIdentifier(this._parseIdent([z.Module]))?this.hasWhitespace()||!this.acceptDelim(`.`)||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,G.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(F.Ident)&&!this.peek(Vd)&&!this.peekDelim(`-`))return null;let t=this.create(Io);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(F.Ident,/^--/);let n=!1,r=()=>{let e=this.mark();return this.acceptDelim(`-`)&&(this.hasWhitespace()||this.acceptDelim(`-`),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()};for(;(this.accept(F.Ident)||t.addChild(r())||n&&this.acceptRegexp(/^[\w-]/))&&(n=!0,!this.hasWhitespace()););return n?this.finish(t):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(Vd)){let e=this.create(Fs);return this.consumeToken(),!e.addChild(this._parseExpr())&&!this._parseNestingSelector()?this.accept(F.CurlyR)?this.finish(e):this.finish(e,G.ExpressionExpected):this.accept(F.CurlyR)?this.finish(e):this.finish(e,G.RightCurlyExpected)}return null}_parseOperator(){if(this.peek(Hd)||this.peek(Ud)||this.peek(Wd)||this.peek(Gd)||this.peekDelim(`>`)||this.peekDelim(`<`)||this.peekIdent(`and`)||this.peekIdent(`or`)||this.peekDelim(`%`)){let e=this.createNode(R.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent(`not`)){let e=this.create(B);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(F.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration()}_parseDeclaration(e){let t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;let n=this.create(Wo);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(F.Colon))return this.finish(n,G.ColonExpected,[F.Colon],e||[F.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let r=!1;if(n.setValue(this._parseExpr())&&(r=!0,n.addChild(this._parsePrio())),this.peek(F.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!r)return this.finish(n,G.PropertyValueExpected);return this.peek(F.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){let e=this.create(as);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword(`@extend`)){let e=this.create(Ls);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,G.SelectorExpected);for(;this.accept(F.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(F.Exclamation)&&!this.acceptIdent(`optional`)?this.finish(e,G.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim(`&`)){let e=this.createNode(R.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim(`-`)||this.accept(F.Num)||this.accept(F.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim(`&`)););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim(`%`)){let e=this.createNode(R.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}else if(this.peekKeyword(`@at-root`)){let e=this.createNode(R.SelectorPlaceholder);if(this.consumeToken(),this.accept(F.ParenthesisL)){if(!this.acceptIdent(`with`)&&!this.acceptIdent(`without`))return this.finish(e,G.IdentifierExpected);if(!this.accept(F.Colon))return this.finish(e,G.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,G.IdentifierExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}return this.finish(e)}return null}_parseElementName(){let e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(F.ParenthesisL)?(this.restoreAtMark(e),null):t}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword(`@debug`)&&!this.peekKeyword(`@warn`)&&!this.peekKeyword(`@error`))return null;let e=this.createNode(R.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(F.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null}_parseIfStatement(e){return this.peekKeyword(`@if`)?this._internalParseIfStatement(e):null}_internalParseIfStatement(e){let t=this.create(Zo);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,G.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword(`@else`)){if(this.peekIdent(`if`))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(F.CurlyL)){let n=this.create(ts);this._parseBody(n,e),t.setElseClause(n)}}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword(`@for`))return null;let t=this.create(Qo);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent(`from`)?t.addChild(this._parseBinaryExpr())?!this.acceptIdent(`to`)&&!this.acceptIdent(`through`)?this.finish(t,Yd.ThroughOrToExpected,[F.CurlyR]):t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,Yd.FromExpected,[F.CurlyR]):this.finish(t,G.VariableNameExpected,[F.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword(`@each`))return null;let t=this.create($o);this.consumeToken();let n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,G.VariableNameExpected,[F.CurlyR]);for(;this.accept(F.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,G.VariableNameExpected,[F.CurlyR]);return this.finish(n),this.acceptIdent(`in`)?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR]):this.finish(t,Yd.InExpected,[F.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword(`@while`))return null;let t=this.create(es);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,G.ExpressionExpected,[F.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword(`@function`))return null;let e=this.create(ns);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([z.Function])))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}return this.accept(F.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword(`@return`))return null;let e=this.createNode(R.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,G.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword(`@mixin`))return null;let e=this.create(Vs);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([z.Mixin])))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(this.accept(F.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){let e=this.create(Yo);return e.setIdentifier(this._parseVariable())?(this.accept(Kd),this.accept(F.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,G.VariableValueExpected,[],[F.Comma,F.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword(`@content`))return null;let e=this.create(Rs);if(this.consumeToken(),this.accept(F.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,G.ExpressionExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword(`@include`))return null;let e=this.create(Bs);this.consumeToken();let t=this._parseIdent([z.Mixin]);if(!e.setIdentifier(t))return this.finish(e,G.IdentifierExpected,[F.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(`.`)&&!this.hasWhitespace()){let n=this._parseIdent([z.Mixin]);if(!n)return this.finish(e,G.IdentifierExpected,[F.CurlyR]);let r=this.create(Ks);t.referenceTypes=[z.Module],r.setIdentifier(t),e.setIdentifier(n),e.addChild(r)}if(this.accept(F.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,G.ExpressionExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}return(this.peekIdent(`using`)||this.peek(F.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){let e=this.create(zs);if(this.acceptIdent(`using`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,G.VariableNameExpected)}if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.CurlyL])}return this.peek(F.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){let e=this.create(Xo),t=this.mark(),n=this._parseVariable();if(n)if(this.accept(F.Colon))e.setIdentifier(n);else{if(this.accept(Kd))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(Kd),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){let e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(F.ParenthesisR)){this.restoreAtMark(e);let t=this.create(B);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}_parseOperation(){if(!this.peek(F.ParenthesisL))return null;let e=this.create(B);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(F.Comma);return this.accept(F.ParenthesisR)?this.finish(e):this.finish(e,G.RightParenthesisExpected)}_parseListElement(){let e=this.create(Us),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(F.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,G.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword(`@use`))return null;let e=this.create(ls);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,G.StringLiteralExpected);if(!this.peek(F.SemiColon)&&!this.peek(F.EOF)){if(!this.peekRegExp(F.Ident,/as|with/))return this.finish(e,G.UnknownKeyword);if(this.acceptIdent(`as`)&&!e.setIdentifier(this._parseIdent([z.Module]))&&!this.acceptDelim(`*`))return this.finish(e,G.IdentifierOrWildcardExpected);if(this.acceptIdent(`with`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}}return!this.accept(F.SemiColon)&&!this.accept(F.EOF)?this.finish(e,G.SemiColonExpected):this.finish(e)}_parseModuleConfigDeclaration(){let e=this.create(us);return e.setIdentifier(this._parseVariable())?!this.accept(F.Colon)||!e.setValue(this._parseExpr(!0))?this.finish(e,G.VariableValueExpected,[],[F.Comma,F.ParenthesisR]):this.accept(F.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent(`default`))?this.finish(e,G.UnknownKeyword):this.finish(e):null}_parseForward(){if(!this.peekKeyword(`@forward`))return null;let e=this.create(ds);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,G.StringLiteralExpected);if(this.acceptIdent(`as`)){let t=this._parseIdent([z.Forward]);if(!e.setIdentifier(t))return this.finish(e,G.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim(`*`))return this.finish(e,G.WildcardExpected)}if(this.acceptIdent(`with`)){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected,[F.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);for(;this.accept(F.Comma)&&!this.peek(F.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,G.VariableNameExpected);if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected)}else if((this.peekIdent(`hide`)||this.peekIdent(`show`))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,G.IdentifierOrVariableExpected);return!this.accept(F.SemiColon)&&!this.accept(F.EOF)?this.finish(e,G.SemiColonExpected):this.finish(e)}_parseForwardVisibility(){let e=this.create(fs);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(F.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}};let Zd=U(`Sass documentation`);var Qd=class e extends Vu{constructor(t,n){super(`$`,t,n),$d(e.scssModuleLoaders),$d(e.scssModuleBuiltIns)}isImportPathParent(e){return e===R.Forward||e===R.Use||super.isImportPathParent(e)}getCompletionForImportPath(t,n){let r=t.getParent().type;if(r===R.Forward||r===R.Use)for(let r of e.scssModuleBuiltIns){let e={label:r.label,documentation:r.documentation,textEdit:q.replace(this.getCompletionRange(t),`'${r.label}'`),kind:J.Module};n.items.push(e)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,r)=>`\\`+r+": ${"+ t+++`:`+(e.variableDefaults[r]||``)+`}`}createFunctionProposals(e,t,n,r){for(let i of e){let e=i.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),a={label:i.func.substr(0,i.func.indexOf(`(`)),detail:i.func,documentation:i.desc,textEdit:q.replace(this.getCompletionRange(t),e),insertTextFormat:Ac.Snippet,kind:J.Function};n&&(a.sortText=`z`),r.items.push(a)}return r}getCompletionsForSelector(t,n,r){return this.createFunctionProposals(e.selectorFuncs,null,!0,r),super.getCompletionsForSelector(t,n,r)}getTermProposals(t,n,r){let i=e.builtInFuncs;return t&&(i=i.filter(e=>!e.type||!t.restrictions||t.restrictions.indexOf(e.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(t,n,r)}getColorProposals(t,n,r){return this.createFunctionProposals(e.colorProposals,n,!1,r),super.getColorProposals(t,n,r)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}getCompletionsForExtendsReference(e,t,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,z.Rule);for(let e of r){let r={label:e.name,textEdit:q.replace(this.getCompletionRange(t),e.name),kind:J.Function};n.items.push(r)}return n}getCompletionForAtDirectives(t){return t.items.push(...e.scssAtDirectives),t}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(t){return t.items.push(...e.scssModuleLoaders),t}};Qd.variableDefaults={$red:`1`,$green:`2`,$blue:`3`,$alpha:`1.0`,$color:`#000000`,$weight:`0.5`,$hue:`0`,$saturation:`0%`,$lightness:`0%`,$degrees:`0`,$amount:`0`,$string:`""`,$substring:`"s"`,$number:`0`,$limit:`1`},Qd.colorProposals=[{func:`red($color)`,desc:U(`Gets the red component of a color.`)},{func:`green($color)`,desc:U(`Gets the green component of a color.`)},{func:`blue($color)`,desc:U(`Gets the blue component of a color.`)},{func:`mix($color, $color, [$weight])`,desc:U(`Mixes two colors together.`)},{func:`hue($color)`,desc:U(`Gets the hue component of a color.`)},{func:`saturation($color)`,desc:U(`Gets the saturation component of a color.`)},{func:`lightness($color)`,desc:U(`Gets the lightness component of a color.`)},{func:`adjust-hue($color, $degrees)`,desc:U(`Changes the hue of a color.`)},{func:`lighten($color, $amount)`,desc:U(`Makes a color lighter.`)},{func:`darken($color, $amount)`,desc:U(`Makes a color darker.`)},{func:`saturate($color, $amount)`,desc:U(`Makes a color more saturated.`)},{func:`desaturate($color, $amount)`,desc:U(`Makes a color less saturated.`)},{func:`grayscale($color)`,desc:U(`Converts a color to grayscale.`)},{func:`complement($color)`,desc:U(`Returns the complement of a color.`)},{func:`invert($color)`,desc:U(`Returns the inverse of a color.`)},{func:`alpha($color)`,desc:U(`Gets the opacity component of a color.`)},{func:`opacity($color)`,desc:`Gets the alpha component (opacity) of a color.`},{func:`rgba($color, $alpha)`,desc:U(`Changes the alpha component for a color.`)},{func:`opacify($color, $amount)`,desc:U(`Makes a color more opaque.`)},{func:`fade-in($color, $amount)`,desc:U(`Makes a color more opaque.`)},{func:`transparentize($color, $amount)`,desc:U(`Makes a color more transparent.`)},{func:`fade-out($color, $amount)`,desc:U(`Makes a color more transparent.`)},{func:`adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])`,desc:U(`Increases or decreases one or more components of a color.`)},{func:`scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])`,desc:U(`Fluidly scales one or more properties of a color.`)},{func:`change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])`,desc:U(`Changes one or more properties of a color.`)},{func:`ie-hex-str($color)`,desc:U(`Converts a color into the format understood by IE filters.`)}],Qd.selectorFuncs=[{func:`selector-nest($selectors…)`,desc:U(`Nests selector beneath one another like they would be nested in the stylesheet.`)},{func:`selector-append($selectors…)`,desc:U(`Appends selectors to one another without spaces in between.`)},{func:`selector-extend($selector, $extendee, $extender)`,desc:U(`Extends $extendee with $extender within $selector.`)},{func:`selector-replace($selector, $original, $replacement)`,desc:U(`Replaces $original with $replacement within $selector.`)},{func:`selector-unify($selector1, $selector2)`,desc:U(`Unifies two selectors to produce a selector that matches elements matched by both.`)},{func:`is-superselector($super, $sub)`,desc:U(`Returns whether $super matches all the elements $sub does, and possibly more.`)},{func:`simple-selectors($selector)`,desc:U(`Returns the simple selectors that comprise a compound selector.`)},{func:`selector-parse($selector)`,desc:U(`Parses a selector into the format returned by &.`)}],Qd.builtInFuncs=[{func:`unquote($string)`,desc:U(`Removes quotes from a string.`)},{func:`quote($string)`,desc:U(`Adds quotes to a string.`)},{func:`str-length($string)`,desc:U(`Returns the number of characters in a string.`)},{func:`str-insert($string, $insert, $index)`,desc:U(`Inserts $insert into $string at $index.`)},{func:`str-index($string, $substring)`,desc:U(`Returns the index of the first occurance of $substring in $string.`)},{func:`str-slice($string, $start-at, [$end-at])`,desc:U(`Extracts a substring from $string.`)},{func:`to-upper-case($string)`,desc:U(`Converts a string to upper case.`)},{func:`to-lower-case($string)`,desc:U(`Converts a string to lower case.`)},{func:`percentage($number)`,desc:U(`Converts a unitless number to a percentage.`),type:`percentage`},{func:`round($number)`,desc:U(`Rounds a number to the nearest whole number.`)},{func:`ceil($number)`,desc:U(`Rounds a number up to the next whole number.`)},{func:`floor($number)`,desc:U(`Rounds a number down to the previous whole number.`)},{func:`abs($number)`,desc:U(`Returns the absolute value of a number.`)},{func:`min($numbers)`,desc:U(`Finds the minimum of several numbers.`)},{func:`max($numbers)`,desc:U(`Finds the maximum of several numbers.`)},{func:`random([$limit])`,desc:U(`Returns a random number.`)},{func:`length($list)`,desc:U(`Returns the length of a list.`)},{func:`nth($list, $n)`,desc:U(`Returns a specific item in a list.`)},{func:`set-nth($list, $n, $value)`,desc:U(`Replaces the nth item in a list.`)},{func:`join($list1, $list2, [$separator])`,desc:U(`Joins together two lists into one.`)},{func:`append($list1, $val, [$separator])`,desc:U(`Appends a single value onto the end of a list.`)},{func:`zip($lists)`,desc:U(`Combines several lists into a single multidimensional list.`)},{func:`index($list, $value)`,desc:U(`Returns the position of a value within a list.`)},{func:`list-separator(#list)`,desc:U(`Returns the separator of a list.`)},{func:`map-get($map, $key)`,desc:U(`Returns the value in a map associated with a given key.`)},{func:`map-merge($map1, $map2)`,desc:U(`Merges two maps together into a new map.`)},{func:`map-remove($map, $keys)`,desc:U(`Returns a new map with keys removed.`)},{func:`map-keys($map)`,desc:U(`Returns a list of all keys in a map.`)},{func:`map-values($map)`,desc:U(`Returns a list of all values in a map.`)},{func:`map-has-key($map, $key)`,desc:U(`Returns whether a map has a value associated with a given key.`)},{func:`keywords($args)`,desc:U(`Returns the keywords passed to a function that takes variable arguments.`)},{func:`feature-exists($feature)`,desc:U(`Returns whether a feature exists in the current Sass runtime.`)},{func:`variable-exists($name)`,desc:U(`Returns whether a variable with the given name exists in the current scope.`)},{func:`global-variable-exists($name)`,desc:U(`Returns whether a variable with the given name exists in the global scope.`)},{func:`function-exists($name)`,desc:U(`Returns whether a function with the given name exists.`)},{func:`mixin-exists($name)`,desc:U(`Returns whether a mixin with the given name exists.`)},{func:`inspect($value)`,desc:U(`Returns the string representation of a value as it would be represented in Sass.`)},{func:`type-of($value)`,desc:U(`Returns the type of a value.`)},{func:`unit($number)`,desc:U(`Returns the unit(s) associated with a number.`)},{func:`unitless($number)`,desc:U(`Returns whether a number has units.`)},{func:`comparable($number1, $number2)`,desc:U(`Returns whether two numbers can be added, subtracted, or compared.`)},{func:`call($name, $args…)`,desc:U(`Dynamically calls a Sass function.`)}],Qd.scssAtDirectives=[{label:`@extend`,documentation:U(`Inherits the styles of another selector.`),kind:J.Keyword},{label:`@at-root`,documentation:U(`Causes one or more rules to be emitted at the root of the document.`),kind:J.Keyword},{label:`@debug`,documentation:U(`Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files.`),kind:J.Keyword},{label:`@warn`,documentation:U("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:J.Keyword},{label:`@error`,documentation:U(`Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions.`),kind:J.Keyword},{label:`@if`,documentation:U("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} { + $0 +}`,insertTextFormat:Ac.Snippet,kind:J.Keyword},{label:`@for`,documentation:U("For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}",insertTextFormat:Ac.Snippet,kind:J.Keyword},{label:`@each`,documentation:U("Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:`@each \\$\${1:var} in \${2:list} { + $0 +}`,insertTextFormat:Ac.Snippet,kind:J.Keyword},{label:`@while`,documentation:U("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:`@while \${1:condition} { + $0 +}`,insertTextFormat:Ac.Snippet,kind:J.Keyword},{label:`@mixin`,documentation:U("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:`@mixin \${1:name} { + $0 +}`,insertTextFormat:Ac.Snippet,kind:J.Keyword},{label:`@include`,documentation:U(`Includes the styles defined by another mixin into the current rule.`),kind:J.Keyword},{label:`@function`,documentation:U(`Defines complex operations that can be re-used throughout stylesheets.`),kind:J.Keyword}],Qd.scssModuleLoaders=[{label:`@use`,documentation:U(`Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/at-rules/use`}],insertText:`@use $0;`,insertTextFormat:Ac.Snippet,kind:J.Keyword},{label:`@forward`,documentation:U(`Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/at-rules/forward`}],insertText:`@forward $0;`,insertTextFormat:Ac.Snippet,kind:J.Keyword}],Qd.scssModuleBuiltIns=[{label:`sass:math`,documentation:U(`Provides functions that operate on numbers.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/modules/math`}]},{label:`sass:string`,documentation:U(`Makes it easy to combine, search, or split apart strings.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/modules/string`}]},{label:`sass:color`,documentation:U(`Generates new colors based on existing ones, making it easy to build color themes.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/modules/color`}]},{label:`sass:list`,documentation:U(`Lets you access and modify values in lists.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/modules/list`}]},{label:`sass:map`,documentation:U(`Makes it possible to look up the value associated with a key in a map, and much more.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/modules/map`}]},{label:`sass:selector`,documentation:U(`Provides access to Sass’s powerful selector engine.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/modules/selector`}]},{label:`sass:meta`,documentation:U(`Exposes the details of Sass’s inner workings.`),references:[{name:Zd,url:`https://sass-lang.com/documentation/modules/meta`}]}];function $d(e){e.forEach(e=>{if(e.documentation&&e.references&&e.references.length>0){let t=typeof e.documentation==`string`?{kind:`markdown`,value:e.documentation}:{kind:`markdown`,value:e.documentation.value};t.value+=` + +`,t.value+=e.references.map(e=>`[${e.name}](${e.url})`).join(` | `),e.documentation=t}})}let ef=F.CustomToken,tf=ef++;var nf=class extends Eo{scanNext(e){let t=this.escapedJavaScript();return t===null?this.stream.advanceIfChars([46,46,46])?this.finishToken(e,tf):super.scanNext(e):this.finishToken(e,t)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([47,47])?(this.stream.advanceWhileChar(e=>{switch(e){case 10:case 13:case 12:return!1;default:return!0}}),!0):!1}escapedJavaScript(){return this.stream.peekChar()===96?(this.stream.advance(1),this.stream.advanceWhileChar(e=>e!==96),this.stream.advanceIfChar(96)?F.EscapedJavaScript:F.BadEscapedJavaScript):null}},rf=class extends lu{constructor(){super(new nf)}_parseStylesheetStatement(e=!1){return this.peek(F.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)}_parseImport(){if(!this.peekKeyword(`@import`)&&!this.peekKeyword(`@import-once`))return null;let e=this.create(cs);if(this.consumeToken(),this.accept(F.ParenthesisL)){if(!this.accept(F.Ident))return this.finish(e,G.IdentifierExpected,[F.SemiColon]);do if(!this.accept(F.Comma))break;while(this.accept(F.Ident));if(!this.accept(F.ParenthesisR))return this.finish(e,G.RightParenthesisExpected,[F.SemiColon])}return!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,G.URIOrStringExpected,[F.SemiColon]):(!this.peek(F.SemiColon)&&!this.peek(F.EOF)&&e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e))}_parsePlugin(){if(!this.peekKeyword(`@plugin`))return null;let e=this.createNode(R.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(F.SemiColon)?this.finish(e):this.finish(e,G.SemiColonExpected):this.finish(e,G.StringLiteralExpected)}_parseMediaQuery(){let e=super._parseMediaQuery();if(!e){let e=this.create(xs);return e.addChild(this._parseVariable())?this.finish(e):null}return e}_parseMediaDeclaration(e=!1){return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable()}_parseVariableDeclaration(e=[]){let t=this.create(Ps),n=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(this.accept(F.Colon)){if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,G.VariableValueExpected,[],e);t.addChild(this._parsePrio())}else return this.restoreAtMark(n),null;return this.peek(F.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim(`#`)||this.peekDelim(`.`))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(F.ParenthesisL)){let t=this.create(Vs);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(F.Comma)||this.accept(F.SemiColon))&&!this.peek(F.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,G.IdentifierExpected,[],[F.ParenthesisR]);if(!this.accept(F.ParenthesisR))return this.restoreAtMark(e),null}else return this.restoreAtMark(e),null;if(!this.peek(F.CurlyL))return null;let t=this.create(H);return this._parseBody(t,this._parseDetachedRuleSetBody.bind(this)),this.finish(t)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let t=!1;for(;this.peek(F.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t}_parseLookupValue(){let e=this.create(B),t=this.mark();return this.accept(F.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(F.BracketR)||this.accept(F.BracketR))?e:(this.restoreAtMark(t),null)}_parseVariable(e=!1,t=!1){let n=!e&&this.peekDelim(`$`);if(!this.peekDelim(`@`)&&!n&&!this.peek(F.AtKeyword))return null;let r=this.create(Is),i=this.mark();for(;this.acceptDelim(`@`)||!e&&this.acceptDelim(`$`);)if(this.hasWhitespace())return this.restoreAtMark(i),null;return!this.accept(F.AtKeyword)&&!this.accept(F.Ident)||!t&&this.peek(F.BracketL)&&!this._addLookupChildren(r)?(this.restoreAtMark(i),null):r}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(F.EscapedJavaScript)||this.peek(F.BadEscapedJavaScript)){let e=this.createNode(R.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim(`~`)){let e=this.createNode(R.EscapedValue);return this.consumeToken(),this.accept(F.String)||this.accept(F.EscapedJavaScript)?this.finish(e):this.finish(e,G.TermExpected)}return null}_parseOperator(){return this._parseGuardOperator()||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(`>`)){let e=this.createNode(R.Operator);return this.consumeToken(),this.acceptDelim(`=`),e}else if(this.peekDelim(`=`)){let e=this.createNode(R.Operator);return this.consumeToken(),this.acceptDelim(`<`),e}else if(this.peekDelim(`<`)){let e=this.createNode(R.Operator);return this.consumeToken(),this.acceptDelim(`=`),e}return null}_parseRuleSetDeclaration(){return this.peek(F.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration()}_parseKeyframeIdent(){return this._parseIdent([z.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSelector(e){let t=this.create(Bo),n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){n=!0;let e=this.mark();if(t.addChild(this._parseGuard())&&this.peek(F.CurlyL))break;this.restoreAtMark(e),t.addChild(this._parseCombinator())}return n?this.finish(t):null}_parseNestingSelector(){if(this.peekDelim(`&`)){let e=this.createNode(R.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim(`-`)||this.accept(F.Num)||this.accept(F.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim(`&`)););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;let e=this.createNode(R.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){let t=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;let n=this.mark(),r=this.create(Io);r.isCustomProperty=this.acceptDelim(`-`)&&this.acceptDelim(`-`);let i=!1;return i=e?r.isCustomProperty?r.addChild(this._parseIdent()):r.addChild(this._parseRegexp(t)):r.isCustomProperty?this._acceptInterpolatedIdent(r):this._acceptInterpolatedIdent(r,t),i?(!e&&!this.hasWhitespace()&&(this.acceptDelim(`+`),this.hasWhitespace()||this.acceptIdent(`_`)),this.finish(r)):(this.restoreAtMark(n),null)}peekInterpolatedIdent(){return this.peek(F.Ident)||this.peekDelim(`@`)||this.peekDelim(`$`)||this.peekDelim(`-`)}_acceptInterpolatedIdent(e,t){let n=!1,r=()=>{let e=this.mark();return this.acceptDelim(`-`)&&(this.hasWhitespace()||this.acceptDelim(`-`),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()},i=t?()=>this.acceptRegexp(t):()=>this.accept(F.Ident);for(;(i()||e.addChild(this._parseInterpolation()||this.try(r)))&&(n=!0,!this.hasWhitespace()););return n}_parseInterpolation(){let e=this.mark();if(this.peekDelim(`@`)||this.peekDelim(`$`)){let t=this.createNode(R.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(F.CurlyL)?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(F.CurlyR)?this.finish(t):this.finish(t,G.RightCurlyExpected):this.finish(t,G.IdentifierExpected)}return null}_tryParseMixinDeclaration(){let e=this.mark(),t=this.create(Vs);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(F.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(F.Comma)||this.accept(F.SemiColon))&&!this.peek(F.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,G.IdentifierExpected,[],[F.ParenthesisR]);return!this.accept(F.ParenthesisR)||(t.setGuard(this._parseGuard()),!this.peek(F.CurlyL))?(this.restoreAtMark(e),null):this._parseBody(t,this._parseMixInBodyDeclaration.bind(this))}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration()}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim(`#`)||this.peekDelim(`.`)){if(e=this.create(Io),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else if(this.peek(F.Hash))e=this.create(Io),this.consumeToken();else return null;return e.referenceTypes=[z.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(F.Colon))return null;let e=this.mark(),t=this.create(Ls);return this.consumeToken(),this.acceptIdent(`extend`)?this._completeExtends(t):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim(`&`))return null;let e=this.mark(),t=this.create(Ls);return this.consumeToken(),this.hasWhitespace()||!this.accept(F.Colon)||!this.acceptIdent(`extend`)?(this.restoreAtMark(e),null):this._completeExtends(t)}_completeExtends(e){if(!this.accept(F.ParenthesisL))return this.finish(e,G.LeftParenthesisExpected);let t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,G.SelectorExpected);for(;this.accept(F.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,G.SelectorExpected);return this.accept(F.ParenthesisR)?this.finish(e):this.finish(e,G.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(F.AtKeyword))return null;let e=this.mark(),t=this.create(Bs);return t.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(F.ParenthesisL))?(this.restoreAtMark(e),null):this.accept(F.ParenthesisR)?this.finish(t):this.finish(t,G.RightParenthesisExpected)}_tryParseMixinReference(e=!0){let t=this.mark(),n=this.create(Bs),r=this._parseMixinDeclarationIdentifier();for(;r;){this.acceptDelim(`>`);let e=this._parseMixinDeclarationIdentifier();if(e)n.getNamespaces().addChild(r),r=e;else break}if(!n.setIdentifier(r))return this.restoreAtMark(t),null;let i=!1;if(this.accept(F.ParenthesisL)){if(i=!0,n.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(F.Comma)||this.accept(F.SemiColon))&&!this.peek(F.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,G.ExpressionExpected)}if(!this.accept(F.ParenthesisR))return this.finish(n,G.RightParenthesisExpected);r.referenceTypes=[z.Mixin]}else r.referenceTypes=[z.Mixin,z.Rule];return this.peek(F.BracketL)?e||this._addLookupChildren(n):n.addChild(this._parsePrio()),!i&&!this.peek(F.SemiColon)&&!this.peek(F.CurlyR)&&!this.peek(F.EOF)?(this.restoreAtMark(t),null):this.finish(n)}_parseMixinArgument(){let e=this.create(Xo),t=this.mark(),n=this._parseVariable();return n&&(this.accept(F.Colon)?e.setIdentifier(n):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)}_parseMixinParameter(){let e=this.create(Yo);if(this.peekKeyword(`@rest`)){let t=this.create(B);return this.consumeToken(),this.accept(tf)?(e.setIdentifier(this.finish(t)),this.finish(e)):this.finish(e,G.DotExpected,[],[F.Comma,F.ParenthesisR])}if(this.peek(tf)){let t=this.create(B);return this.consumeToken(),e.setIdentifier(this.finish(t)),this.finish(e)}let t=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(F.Colon),t=!0),!e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!t?null:this.finish(e)}_parseGuard(){if(!this.peekIdent(`when`))return null;let e=this.create(Ws);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,G.ConditionExpected);for(;this.acceptIdent(`and`)||this.accept(F.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,G.ConditionExpected);return this.finish(e)}_parseGuardCondition(){let e=this.create(Gs);return e.isNegated=this.acceptIdent(`not`),this.accept(F.ParenthesisL)?(e.addChild(this._parseExpr()),this.accept(F.ParenthesisR)?this.finish(e):this.finish(e,G.RightParenthesisExpected)):e.isNegated?this.finish(e,G.LeftParenthesisExpected):null}_parseFunction(){let e=this.mark(),t=this.create(Jo);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(F.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(F.Comma)||this.accept(F.SemiColon))&&!this.peek(F.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,G.ExpressionExpected)}return this.accept(F.ParenthesisR)?this.finish(t):this.finish(t,G.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim(`%`)){let e=this.create(Io);return e.referenceTypes=[z.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){let e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(F.ParenthesisR)){this.restoreAtMark(e);let t=this.create(B);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}},af=class e extends Vu{constructor(e,t){super(`@`,e,t)}createFunctionProposals(e,t,n,r){for(let i of e){let e={label:i.name,detail:i.example,documentation:i.description,textEdit:q.replace(this.getCompletionRange(t),i.name+`($0)`),insertTextFormat:Ac.Snippet,kind:J.Function};n&&(e.sortText=`z`),r.items.push(e)}return r}getTermProposals(t,n,r){let i=e.builtInProposals;return t&&(i=i.filter(e=>!e.type||!t.restrictions||t.restrictions.indexOf(e.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(t,n,r)}getColorProposals(t,n,r){return this.createFunctionProposals(e.colorProposals,n,!1,r),super.getColorProposals(t,n,r)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}};af.builtInProposals=[{name:`if`,example:`if(condition, trueValue [, falseValue]);`,description:U(`returns one of two values depending on a condition.`)},{name:`boolean`,example:`boolean(condition);`,description:U(`"store" a boolean test for later evaluation in a guard or if().`)},{name:`length`,example:`length(@list);`,description:U(`returns the number of elements in a value list`)},{name:`extract`,example:`extract(@list, index);`,description:U(`returns a value at the specified position in the list`)},{name:`range`,example:`range([start, ] end [, step]);`,description:U(`generate a list spanning a range of values`)},{name:`each`,example:`each(@list, ruleset);`,description:U(`bind the evaluation of a ruleset to each member of a list.`)},{name:`escape`,example:`escape(@string);`,description:U(`URL encodes a string`)},{name:`e`,example:`e(@string);`,description:U(`escape string content`)},{name:`replace`,example:`replace(@string, @pattern, @replacement[, @flags]);`,description:U(`string replace`)},{name:`unit`,example:`unit(@dimension, [@unit: '']);`,description:U(`remove or change the unit of a dimension`)},{name:`color`,example:`color(@string);`,description:U(`parses a string to a color`),type:`color`},{name:`convert`,example:`convert(@value, unit);`,description:U(`converts numbers from one type into another`)},{name:`data-uri`,example:`data-uri([mimetype,] url);`,description:U("inlines a resource and falls back to `url()`"),type:`url`},{name:`abs`,description:U(`absolute value of a number`),example:`abs(number);`},{name:`acos`,description:U(`arccosine - inverse of cosine function`),example:`acos(number);`},{name:`asin`,description:U(`arcsine - inverse of sine function`),example:`asin(number);`},{name:`ceil`,example:`ceil(@number);`,description:U(`rounds up to an integer`)},{name:`cos`,description:U(`cosine function`),example:`cos(number);`},{name:`floor`,description:U(`rounds down to an integer`),example:`floor(@number);`},{name:`percentage`,description:U(`converts to a %, e.g. 0.5 > 50%`),example:`percentage(@number);`,type:`percentage`},{name:`round`,description:U(`rounds a number to a number of places`),example:`round(number, [places: 0]);`},{name:`sqrt`,description:U(`calculates square root of a number`),example:`sqrt(number);`},{name:`sin`,description:U(`sine function`),example:`sin(number);`},{name:`tan`,description:U(`tangent function`),example:`tan(number);`},{name:`atan`,description:U(`arctangent - inverse of tangent function`),example:`atan(number);`},{name:`pi`,description:U(`returns pi`),example:`pi();`},{name:`pow`,description:U(`first argument raised to the power of the second argument`),example:`pow(@base, @exponent);`},{name:`mod`,description:U(`first argument modulus second argument`),example:`mod(number, number);`},{name:`min`,description:U(`returns the lowest of one or more values`),example:`min(@x, @y);`},{name:`max`,description:U(`returns the lowest of one or more values`),example:`max(@x, @y);`}],af.colorProposals=[{name:`argb`,example:`argb(@color);`,description:U(`creates a #AARRGGBB`)},{name:`hsl`,example:`hsl(@hue, @saturation, @lightness);`,description:U(`creates a color`)},{name:`hsla`,example:`hsla(@hue, @saturation, @lightness, @alpha);`,description:U(`creates a color`)},{name:`hsv`,example:`hsv(@hue, @saturation, @value);`,description:U(`creates a color`)},{name:`hsva`,example:`hsva(@hue, @saturation, @value, @alpha);`,description:U(`creates a color`)},{name:`hue`,example:`hue(@color);`,description:U("returns the `hue` channel of `@color` in the HSL space")},{name:`saturation`,example:`saturation(@color);`,description:U("returns the `saturation` channel of `@color` in the HSL space")},{name:`lightness`,example:`lightness(@color);`,description:U("returns the `lightness` channel of `@color` in the HSL space")},{name:`hsvhue`,example:`hsvhue(@color);`,description:U("returns the `hue` channel of `@color` in the HSV space")},{name:`hsvsaturation`,example:`hsvsaturation(@color);`,description:U("returns the `saturation` channel of `@color` in the HSV space")},{name:`hsvvalue`,example:`hsvvalue(@color);`,description:U("returns the `value` channel of `@color` in the HSV space")},{name:`red`,example:`red(@color);`,description:U("returns the `red` channel of `@color`")},{name:`green`,example:`green(@color);`,description:U("returns the `green` channel of `@color`")},{name:`blue`,example:`blue(@color);`,description:U("returns the `blue` channel of `@color`")},{name:`alpha`,example:`alpha(@color);`,description:U("returns the `alpha` channel of `@color`")},{name:`luma`,example:`luma(@color);`,description:U("returns the `luma` value (perceptual brightness) of `@color`")},{name:`saturate`,example:`saturate(@color, 10%);`,description:U("return `@color` 10% points more saturated")},{name:`desaturate`,example:`desaturate(@color, 10%);`,description:U("return `@color` 10% points less saturated")},{name:`lighten`,example:`lighten(@color, 10%);`,description:U("return `@color` 10% points lighter")},{name:`darken`,example:`darken(@color, 10%);`,description:U("return `@color` 10% points darker")},{name:`fadein`,example:`fadein(@color, 10%);`,description:U("return `@color` 10% points less transparent")},{name:`fadeout`,example:`fadeout(@color, 10%);`,description:U("return `@color` 10% points more transparent")},{name:`fade`,example:`fade(@color, 50%);`,description:U("return `@color` with 50% transparency")},{name:`spin`,example:`spin(@color, 10);`,description:U("return `@color` with a 10 degree larger in hue")},{name:`mix`,example:`mix(@color1, @color2, [@weight: 50%]);`,description:U("return a mix of `@color1` and `@color2`")},{name:`greyscale`,example:`greyscale(@color);`,description:U(`returns a grey, 100% desaturated color`)},{name:`contrast`,example:`contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);`,description:U("return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:`multiply`,example:`multiply(@color1, @color2);`},{name:`screen`,example:`screen(@color1, @color2);`},{name:`overlay`,example:`overlay(@color1, @color2);`},{name:`softlight`,example:`softlight(@color1, @color2);`},{name:`hardlight`,example:`hardlight(@color1, @color2);`},{name:`difference`,example:`difference(@color1, @color2);`},{name:`exclusion`,example:`exclusion(@color1, @color2);`},{name:`average`,example:`average(@color1, @color2);`},{name:`negation`,example:`negation(@color1, @color2);`}];function of(e,t){return lf(sf(e),t)}function sf(e){function t(t){return e.positionAt(t.offset).line}function n(t){return e.positionAt(t.offset+t.len).line}function r(){switch(e.languageId){case`scss`:return new qd;case`less`:return new nf;default:return new Eo}}function i(e,r){let i=t(e),a=n(e);return i===a?null:{startLine:i,endLine:a,kind:r}}let a=[],o=[],s=r();s.ignoreComment=!1,s.setSource(e.getText());let c=s.scan(),l=null;for(;c.type!==F.EOF;){switch(c.type){case F.CurlyL:case Vd:o.push({line:t(c),type:`brace`,isStart:!0});break;case F.CurlyR:if(o.length!==0){let e=cf(o,`brace`);if(!e)break;let t=n(c);e.type===`brace`&&(l&&n(l)!==t&&t--,e.line!==t&&a.push({startLine:e.line,endLine:t,kind:void 0}))}break;case F.Comment:{let r=e=>e===`#region`?{line:t(c),type:`comment`,isStart:!0}:{line:n(c),type:`comment`,isStart:!1},s=(t=>{let n=t.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(n)return r(n[1]);if(e.languageId===`scss`||e.languageId===`less`){let e=t.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(e)return r(e[1])}return null})(c);if(s)if(s.isStart)o.push(s);else{let e=cf(o,`comment`);if(!e)break;e.type===`comment`&&e.line!==s.line&&a.push({startLine:e.line,endLine:s.line,kind:`region`})}else{let e=i(c,`comment`);e&&a.push(e)}break}}l=c,c=s.scan()}return a}function cf(e,t){if(e.length===0)return null;for(let n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}function lf(e,t){let n=t&&t.rangeLimit||Number.MAX_VALUE,r=e.sort((e,t)=>{let n=e.startLine-t.startLine;return n===0&&(n=e.endLine-t.endLine),n}),i=[],a=-1;return r.forEach(e=>{e.startLine=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===` `&&(e.__items.splice(0,1),--e.__character_count),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf(` +`);t===-1?this.__character_count+=e.length:this.__character_count=e.length-t},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&--this.__wrap_point_indent_count},t.prototype.trim=function(){for(;this.last()===` `;)this.__items.pop(),--this.__character_count},t.prototype.toString=function(){var e=``;return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join(``)),e};function n(e,t){this.__cache=[``],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=Array(e.indent_size+1).join(e.indent_char)),t||=``,e.indent_level>0&&(t=Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t||=0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t||=0,e<0&&(e=0,n=``),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n=``;this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=Array(t+1).join(this.__indent_string)),e&&(n+=Array(e+1).join(` `)),this.__cache.push(n)};function r(e,r){this.__indent_cache=new n(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&(t[t.length-1]===` +`&&(t=t.replace(/\n+$/g,``)),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(` +`);return e!==` +`&&(n=n.replace(/[\n]/g,e)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return e||=0,t||=0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){for(var r=this.__lines.length-2;r>=0;){var i=this.__lines[r];if(i.is_empty())break;if(i.item(0).indexOf(e)!==0&&i.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r}),,,,(function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean(`disabled`),this.eol=this._get_characters(`eol`,`auto`),this.end_with_newline=this._get_boolean(`end_with_newline`),this.indent_size=this._get_number(`indent_size`,4),this.indent_char=this._get_characters(`indent_char`,` `),this.indent_level=this._get_number(`indent_level`),this.preserve_newlines=this._get_boolean(`preserve_newlines`,!0),this.max_preserve_newlines=this._get_number(`max_preserve_newlines`,32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean(`indent_with_tabs`,this.indent_char===` `),this.indent_with_tabs&&(this.indent_char=` `,this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number(`wrap_line_length`,this._get_number(`max_char`)),this.indent_empty_lines=this._get_boolean(`indent_empty_lines`),this.templating=this._get_selection_list(`templating`,[`auto`,`none`,`angular`,`django`,`erb`,`handlebars`,`php`,`smarty`],[`auto`])}t.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return typeof n==`object`?n!==null&&typeof n.concat==`function`&&(r=n.concat()):typeof n==`string`&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return n===void 0?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||``;return typeof n==`string`&&(r=n.replace(/\\r/,`\r`).replace(/\\n/,` +`).replace(/\\t/,` `)),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(r.length!==1)throw Error(`Invalid Option Value: The option '`+e+`' can only be one of the following values: +`+t+` +You passed in: '`+this.raw_options[e]+`'`);return r[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||t.length===0)throw Error(`Selection list cannot be empty.`);if(n||=[t[0]],!this._is_valid_selection(n,t))throw Error(`Invalid Default Value!`);var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw Error(`Invalid Option Value: The option '`+e+`' can contain only the following values: +`+t+` +You passed in: '`+this.raw_options[e]+`'`);return r},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return t.indexOf(e)===-1})};function n(e,t){var n={};for(var i in e=r(e),e)i!==t&&(n[i]=e[i]);if(t&&e[t])for(i in e[t])n[i]=e[t][i];return n}function r(e){var t={},n;for(n in e){var r=n.replace(/-/g,`_`);t[r]=e[n]}return t}e.exports.Options=t,e.exports.normalizeOpts=r,e.exports.mergeOpts=n}),,(function(e){var t=RegExp.prototype.hasOwnProperty(`sticky`);function n(e){this.__input=e||``,this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&--this.__position},n.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n}),,,,,(function(e){function t(e,t){e=typeof e==`string`?e:e.source,t=typeof t==`string`?t:t.source,this.__directives_block_pattern=RegExp(e+` beautify( \\w+[:]\\w+)+ `+t,`g`),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=RegExp(e+`\\sbeautify\\signore:end\\s`+t,`g`)}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t}),,(function(e,t,n){var r=n(16).Beautifier,i=n(17).Options;function a(e,t){return new r(e,t).beautify()}e.exports=a,e.exports.defaultOptions=function(){return new i}}),(function(e,t,n){var r=n(17).Options,i=n(2).Output,a=n(8).InputScanner,o=n(13).Directives,s=new o(/\/\*/,/\*\//),c=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=/\s/,d=/(?:\s|\n)+/g,f=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function m(e,t){this._source_text=e||``,this._options=new r(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=[`grid-template-areas`,`grid-template`]}m.prototype.eatString=function(e){var t=``;for(this._ch=this._input.next();this._ch;){if(t+=this._ch,this._ch===`\\`)t+=this._input.next();else if(e.indexOf(this._ch)!==-1||this._ch===` +`)break;this._ch=this._input.next()}return t},m.prototype.eatWhitespace=function(e){for(var t=u.test(this._input.peek()),n=0;u.test(this._input.peek());)this._ch=this._input.next(),e&&this._ch===` +`&&(n===0||n0&&this._indentLevel--},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;t===`auto`&&(t=` +`,e&&c.test(e||``)&&(t=e.match(c)[0])),e=e.replace(l,` +`);var n=e.match(/^[\t ]*/)[0];this._output=new i(this._options,n),this._input=new a(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var r=0,o=!1,m=!1,h=!1,g=!1,_=!1,v=this._ch,y=!1,b,x,S;b=this._input.read(d),x=b!==``,S=v,this._ch=this._input.next(),this._ch===`\\`&&this._input.hasNext()&&(this._ch+=this._input.next()),v=this._ch,this._ch;)if(this._ch===`/`&&this._input.peek()===`*`){this._output.add_new_line(),this._input.back();var C=this._input.read(f),w=s.get_directives(C);w&&w.ignore===`start`&&(C+=s.readIgnored(this._input)),this.print_string(C),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch===`/`&&this._input.peek()===`/`)this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(p)),this.eatWhitespace(!0);else if(this._ch===`$`){this.preserveSingleSpace(x),this.print_string(this._ch);var ee=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ee.match(/[ :]$/)&&(ee=this.eatString(`: `).replace(/\s+$/,``),this.print_string(ee),this._output.space_before_token=!0),r===0&&ee.indexOf(`:`)!==-1&&(m=!0,this.indent())}else if(this._ch===`@`)if(this.preserveSingleSpace(x),this._input.peek()===`{`)this.print_string(this._ch+this.eatString(`}`));else{this.print_string(this._ch);var te=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);te.match(/[ :]$/)&&(te=this.eatString(`: `).replace(/\s+$/,``),this.print_string(te),this._output.space_before_token=!0),r===0&&te.indexOf(`:`)!==-1?(m=!0,this.indent()):te in this.NESTED_AT_RULE?(this._nestedLevel+=1,te in this.CONDITIONAL_GROUP_RULE&&(h=!0)):r===0&&!m&&(g=!0)}else if(this._ch===`#`&&this._input.peek()===`{`)this.preserveSingleSpace(x),this.print_string(this._ch+this.eatString(`}`));else if(this._ch===`{`)m&&(m=!1,this.outdent()),g=!1,h?(h=!1,o=this._indentLevel>=this._nestedLevel):o=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&o&&this._output.previous_line&&this._output.previous_line.item(-1)!==`{`&&this._output.ensure_empty_line_above(`/`,`,`),this._output.space_before_token=!0,this._options.brace_style===`expand`?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(S===`(`?this._output.space_before_token=!1:S!==`,`&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch===`}`)this.outdent(),this._output.add_new_line(),S===`{`&&this._output.trim(!0),m&&=(this.outdent(),!1),this.print_string(this._ch),o=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!==`}`&&this._output.add_new_line(!0),this._input.peek()===`)`&&(this._output.trim(!0),this._options.brace_style===`expand`&&this._output.add_new_line(!0));else if(this._ch===`:`){for(var ne=0;ne`||this._ch===`+`||this._ch===`~`)&&!m&&r===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&u.test(this._ch)&&(this._ch=``));else if(this._ch===`]`)this.print_string(this._ch);else if(this._ch===`[`)this.preserveSingleSpace(x),this.print_string(this._ch);else if(this._ch===`=`)this.eatWhitespace(),this.print_string(`=`),u.test(this._ch)&&(this._ch=``);else if(this._ch===`!`&&!this._input.lookBack(`\\`))this._output.space_before_token=!0,this.print_string(this._ch);else{var ae=S===`"`||S===`'`;this.preserveSingleSpace(ae||x),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` +`&&y&&this._output.add_new_line()}return this._output.get_code(t)},e.exports.Beautifier=m}),(function(e,t,n){var r=n(6).Options;function i(e){r.call(this,e,`css`),this.selector_separator_newline=this._get_boolean(`selector_separator_newline`,!0),this.newline_between_rules=this._get_boolean(`newline_between_rules`,!0);var t=this._get_boolean(`space_around_selector_separator`);this.space_around_combinator=this._get_boolean(`space_around_combinator`)||t;var n=this._get_selection_list(`brace_style`,[`collapse`,`expand`,`end-expand`,`none`,`preserve-inline`]);this.brace_style=`collapse`;for(var i=0;i0&&vf(r,c-1);)c--;c===0||_f(r,c-1)?s=c:c0){let e=n.insertSpaces?jo(` `,s*a):jo(` `,a);l=l.split(` +`).join(` +`+e),t.start.character===0&&(l=e+l)}return[{range:t,newText:l}]}function pf(e){return e.replace(/^\s+/,``)}function mf(e,t){for(;t>=0;){let n=e.charCodeAt(t);if(n===123)return!0;if(n===125)return!1;t--}return!1}function hf(e,t,n){if(e&&e.hasOwnProperty(t)){let n=e[t];if(n!==null)return n}return n}function gf(e,t,n){let r=t,i=0,a=n.tabSize||4;for(;r && ]#`,relevance:50,description:`@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.`,restrictions:[`integer`,`string`,`image`,`identifier`]},{name:`align-content`,browsers:[`E12`,`FF28`,`S9`,`C29`,`IE11`,`O16`],values:[{name:`center`,description:`Lines are packed toward the center of the flex container.`},{name:`flex-end`,description:`Lines are packed toward the end of the flex container.`},{name:`flex-start`,description:`Lines are packed toward the start of the flex container.`},{name:`space-around`,description:`Lines are evenly distributed in the flex container, with half-size spaces on either end.`},{name:`space-between`,description:`Lines are evenly distributed in the flex container.`},{name:`stretch`,description:`Lines stretch to take up the remaining space.`},{name:`start`},{name:`end`},{name:`normal`},{name:`baseline`},{name:`first baseline`},{name:`last baseline`},{name:`space-around`},{name:`space-between`},{name:`space-evenly`},{name:`stretch`},{name:`safe`},{name:`unsafe`}],syntax:`normal | | | ? `,relevance:66,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/align-content`}],description:`Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.`,restrictions:[`enum`]},{name:`align-items`,browsers:[`E12`,`FF20`,`S9`,`C29`,`IE11`,`O16`],values:[{name:`baseline`,description:`If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment.`},{name:`center`,description:`The flex item's margin box is centered in the cross axis within the line.`},{name:`flex-end`,description:`The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line.`},{name:`flex-start`,description:`The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line.`},{name:`stretch`,description:`If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched.`},{name:`normal`},{name:`start`},{name:`end`},{name:`self-start`},{name:`self-end`},{name:`first baseline`},{name:`last baseline`},{name:`stretch`},{name:`safe`},{name:`unsafe`}],syntax:`normal | stretch | | [ ? ]`,relevance:87,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/align-items`}],description:`Aligns flex items along the cross axis of the current line of the flex container.`,restrictions:[`enum`]},{name:`justify-items`,browsers:[`E12`,`FF20`,`S9`,`C52`,`IE11`,`O12.1`],values:[{name:`auto`},{name:`normal`},{name:`end`},{name:`start`},{name:`flex-end`,description:`"Flex items are packed toward the end of the line."`},{name:`flex-start`,description:`"Flex items are packed toward the start of the line."`},{name:`self-end`,description:`The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis.`},{name:`self-start`,description:`The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis..`},{name:`center`,description:`The items are packed flush to each other toward the center of the of the alignment container.`},{name:`left`},{name:`right`},{name:`baseline`},{name:`first baseline`},{name:`last baseline`},{name:`stretch`,description:`If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched.`},{name:`safe`},{name:`unsafe`},{name:`legacy`}],syntax:`normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]`,relevance:53,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/justify-items`}],description:`Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis`,restrictions:[`enum`]},{name:`justify-self`,browsers:[`E16`,`FF45`,`S10.1`,`C57`,`IE10`,`O44`],values:[{name:`auto`},{name:`normal`},{name:`end`},{name:`start`},{name:`flex-end`,description:`"Flex items are packed toward the end of the line."`},{name:`flex-start`,description:`"Flex items are packed toward the start of the line."`},{name:`self-end`,description:`The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis.`},{name:`self-start`,description:`The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis..`},{name:`center`,description:`The items are packed flush to each other toward the center of the of the alignment container.`},{name:`left`},{name:`right`},{name:`baseline`},{name:`first baseline`},{name:`last baseline`},{name:`stretch`,description:`If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched.`},{name:`save`},{name:`unsave`}],syntax:`auto | normal | stretch | | ? [ | left | right ]`,relevance:55,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/justify-self`}],description:`Defines the way of justifying a box inside its container along the appropriate axis.`,restrictions:[`enum`]},{name:`align-self`,browsers:[`E12`,`FF20`,`S9`,`C29`,`IE10`,`O12.1`],values:[{name:`auto`,description:`Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself.`},{name:`normal`},{name:`self-end`},{name:`self-start`},{name:`baseline`,description:`If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment.`},{name:`center`,description:`The flex item's margin box is centered in the cross axis within the line.`},{name:`flex-end`,description:`The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line.`},{name:`flex-start`,description:`The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line.`},{name:`stretch`,description:`If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched.`},{name:`baseline`},{name:`first baseline`},{name:`last baseline`},{name:`safe`},{name:`unsafe`}],syntax:`auto | normal | stretch | | ? `,relevance:73,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/align-self`}],description:`Allows the default alignment along the cross axis to be overridden for individual flex items.`,restrictions:[`enum`]},{name:`all`,browsers:[`E79`,`FF27`,`S9.1`,`C37`,`O24`],values:[],syntax:`initial | inherit | unset | revert | revert-layer`,relevance:53,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/all`}],description:`Shorthand that resets all properties except 'direction' and 'unicode-bidi'.`,restrictions:[`enum`]},{name:`alt`,browsers:[`S9`],values:[],relevance:50,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/alt`}],description:`Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.`,restrictions:[`string`,`enum`]},{name:`animation`,browsers:[`E12`,`FF16`,`S9`,`C43`,`IE10`,`O30`],values:[{name:`alternate`,description:`The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction.`},{name:`alternate-reverse`,description:`The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction.`},{name:`backwards`,description:`The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'.`},{name:`both`,description:`Both forwards and backwards fill modes are applied.`},{name:`forwards`,description:`The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes.`},{name:`infinite`,description:`Causes the animation to repeat forever.`},{name:`none`,description:`No animation is performed`},{name:`normal`,description:`Normal playback.`},{name:`reverse`,description:`All iterations of the animation are played in the reverse direction from the way they were specified.`}],syntax:`#`,relevance:82,references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/CSS/animation`}],description:`Shorthand property combines six of the animation properties into a single property.`,restrictions:[`time`,`timing-function`,`enum`,`identifier`,`number`]},{name:`animation-delay`,browsers:[`E12`,`FF16`,`S9`,`C43`,`IE10`,`O30`],syntax:`